Hey guys! In this video I'm going to build an automatic bartending robot. A BarBot.
Those are good designs, right? But I think there's still some room to make changes.
So let me show you what I have got so far.
So I have been working with the code from a Lithuanian coder.
I hope I got his name right it's from Lukas Šidlauskas.
With his code, it requires more components but I want to keep my project as simple as possible.
So I only use standard 3D printer parts. Let me show you what I've got.
This is the RAMPS board. I use it to control the stepper motor and the servo.
So this is the stepper motor and the servo is here.
But on the top I 3d printed a bracket to test its strength.
And this is the button I am going to use.
This is a SD card holder (reader).
This is the stepper driver and this is a power jack, it delivers 12V to the board.
This is the end stop switch. It tells where the stepper motor stops.
I already uploaded the Arduino sketch to the Mega board. So let's put everything together and see if it works.
Oh right. In order to let you see it's movement I'm going to put some blue tape on it.
Now let's hit the power button and see what's going to happen.
Right now the motor is spinning. It's trying to find home.
Then I click the end stop.That means it thinks it found home, so it stopped.
Here I have the button it reads off the SD card file. There's a JSON file which I am going to show you later.
And it connects the first pin here and the second pin here.
It means no matter what the first one (pin) is screwdriver. So first it is going to pour vodka and then orange juice.
So let me press it now.
The motor is spinning, now is pouring the vodka.
And it is spinning again, this time it is going for the orange juice.
I think I've got all the basic electronics but I won't know until I get the framework set up.
Now let's start to build the framework.
So I'm working with the V-Slot system. I'm using OpenBuilds parts.
These are the standard OpenBuilds parts. Usually they are meant for CNC machines.
I guess a BarBot is no more different than a CNC machine.
So this is the wheel and the screw then put the spacer in.
On each corner.
On this side I am going to put the washer and then the nut to tighten it.
On the other side I'm going to use the eccentric nut.
So I can change the distance between the wheels.
I'm going to try this on the V-Slot aluminum extrusion now.
All the screws I'm using is just M5 screws.
Now this is a little bit loose, so I'm going to use my wrench to tighten it a little bit.
It feels about right. Now I'm going to cut some metal for the rest of the frame.
Sorry guys. No small clothes in this one because some of the metal here is sharp.
Now looks about right. Ok I'm going to grab the dispenser and see where to put it.
In my head it should work like this but I guess it doesn't work.
I am going to think of something else.
I've been playing around with the servo and the frame for the last couple of days.
But I don't think the servo is strong enough and it doesn't fit.
So I am going to switch it to the stepper motor instead.
I've got this kit here, it has all the parts I need. I just need to assemble it for the Z-axis.
I found out that I put the wrong screw in. I'm going to change it to a shorter screw.
So I have to take all the stuff out and put it back together again.
Looks like the leadscrew moves smoothly. Now I'm going to add on the stepper motor.
Alright now I'm going to try to mount it on the frame.
I know what you're thinking you must be like oh Naomi is so smart, so brilliant!
She knows all the engineering stuff- but actually I just copy all of this from the OpenBuilds.
All of these plans are for a CNC router but I just modify it for my BarBot.
So they are very similar but I removes the Y-axis from here.
It is supposed to be a motor here for spinning (milling).
But on my BarBot there's only X-axis and Z-axis to control.
At the end I am going to put all the Bill Of Materials online.
So that you guys can find all the parts and make one for yourself.
So no I am not a genius, I just used other people's code and modify it.
But if you want to give me all the credit, I am ok with that too.
What I have here is the end stop.
It is a standard parts for 3D printers or maybe for a CNC machine.
Really nothing special. It tells the stepper motor where is the end and then it stops.
That's why it's call the end stop.
The only part I did for this is I designed this in TinkerCAD and 3D printed it.
It's a holder for the end stop it has some screw holes inside.
Let me put it here, this camera is clearer.
There's just some screw holes here and I'm going to put it on the top.
Then I guess I could mount it to my BarBot frame later.
You hear that click click sound?
It means it knows where to stop.
And looks like it worked.
I am going to add these cables for the stepper motors and the sensors.
Again they are all just 3D printer parts, so they come like this.
I guess you can make them yourself too. But I am just going to connect them now.
Now I'm going to add the drink dispenser for the frame.
The one I am using for my BarBot is made in China. It's just the cheap one.
Most BarBots use the good ones that are made in UK.
But for my budget I think this is more suitable and I want to see if it will work for my project.
So let's unbox it and put it on.
This is what it looks like. For one set there are three in a row.
This is the tap I think. Is that what it called? For pouring drinks.
First let's screw this down.
I should put it over here.
Looks like is all set. Let's test it out, let's turn on the power.
Looks like it is homing Z and then it is going to the X-axis.
Alright, let's try to pour a drink.
It's not supposed to do that. It is supposed to go to the end and then pour a drink.
It seems something is wrong with the variables.
In Arduino I thought it was all set.
Let me go back and check the configuration file.
So on the left I have the configuration file and on the right I have the Arduino sketch.
Let me see I think the problem is the stepper motor.
Let's try to change the max speed to 1500 and then hit save and see what happens.
And let's upload it.
Alright let's upload it now
Ok let's try one more time I've changed it. I am sure this time I could probably get it right.
Again homing to X-axis.
No, it just not right.
It is not smooth and it is wobbly so probably too fast. I still have to dial it down a little bit.
Ok, I will change it.
I still think the problem is max speed, let's try it one more time.
If this time it doesn't work, then something else must be wrong.
Usually it is this. Now let's save it again.
And plug in the USB.
Let's upload the file.
Alright, on more time.
It is definitely a little bit smoother than last time.
I think it's okay for now. Not sure it's perfect or not but for me it looks fine this time.
But obviously it is not hitting the tab at the right position.
So it's either changing the variable again or I can physically change the end stop.
It is probably the end stop so let's try to change the end stop first.
Let's stop the stepper motor, let's turn it off and let me get my Allen key.
Ok now let's see if I adjust it to the right position.
A little bit better but still wrong.
A little bit better.
What I have here is just water. I am going to use it to test the height for the rings.
I'm going to put it on this one because it is right above the bucket.
Let me take this off first.
It's not touching the tap at all, so let's make it a litlle bit higher.
Let's stop that.
Now let's try it again.
Needs to go a bit higher, if just touching a little bit, it won't be strong enough.
Looks like that's it. This is good. Now let's try some real alcohol.
So the first drink we're testing is a Screwdriver. I've got vodka and orange juice here.
Let me put the vodka down and put the orange juice in first and I've got a cup.
Okay I'm going to open the vodka on camera so that you know is real.
This is not water.
And we're going to put it on the first tap.
Looks like a lot of alcohol.
Give me that robot! Let's give it a taste
It's not as good as I imagined.
I thought it would turn out great. Maybe the orange juice is wrong, it just doesn't taste right.
So I am going to work on my recipes. See you in part two!
Không có nhận xét nào:
Đăng nhận xét