Make Your Own Crude Cocktail Machine

46,669

247

40

About: Awesome Electronics Tutorials, Projects and How To´s

In this project I will show you how I combined an Arduino Nano, an LCD, a rotary encoder, three peristaltic pumps with motor drivers, a load cell and a couple pieces of wood to create a crude, but functional Cocktail Machine. Along the way I will demonstrate how peristaltic pumps work and in which way they can interact with the other components in order to pump a precise amount of liquid. Let's get started!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Watch the Video!

The video gives you a good idea of what is necessary to create your own Cocktail Machine. In the next steps though, I will present you more detailed information.

Step 2: Order Your Components!

Here you can find a parts list with example seller:

Amazon.com:

1x Arduino Nano: http://amzn.to/2iMDj2k

1x I2C LCD: http://amzn.to/2BR2nwD

1x Rotary Encoder: http://amzn.to/2iLT7SF

1x Load Cell (1kg) + HX711 ADC IC: http://amzn.to/2AIadcu

2x L298N Breakout Board: http://amzn.to/2iL0IRx

3x Peristaltic Pump: http://amzn.to/2AU2Qkr

1x DC Jack: http://amzn.to/2ATAvuv

1x 15V 5A Power Supply: http://amzn.to/2iKENtL

Ebay:

1x Arduino Nano: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x I2C LCD: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x Rotary Encoder: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x Load Cell (1kg) + HX711 ADC IC: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

2x L298N Breakout Board: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

3x Peristaltic Pump: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x DC Jack: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x 15V 5A Power Supply: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Amazon.de:

1x Arduino Nano: http://amzn.to/2kia87h

1x I2C LCD: http://amzn.to/2ArC1oJ

1x Rotary Encoder: http://amzn.to/2khsqFK

1x Load Cell (1kg) + HX711 ADC IC: http://amzn.to/2B37Y6d

2x L298N Breakout Board: http://amzn.to/2yc6scc

3x Peristaltic Pump: http://amzn.to/2khsAgk

1x DC Jack: http://amzn.to/2ycjHKh

1x 15V 5A Power Supply: http://amzn.to/2B6SWfK

You can get the beech plywood and the food safe silicone tube in your next home improvement store.

Step 3: Build the Enclosure!

Here you can find the plan of my enclosure and a couple of pictures. Use them as a reference to create your own housing.

Step 4: Do the Wiring and Programming!

Here you can find the schematic of the project, along with the final Cocktail Machine code and the first Test Code. Along with the included pictures, you can use them once again as a reference.

If you do not like the picture of the schematic, then you can also have a look at it here: https://easyeda.com/editor#id=397e5435ebe143e1918a...

Before uploading the code to the Arduino, make sure to include those libraries:

https://github.com/sparkfun/HX711-Load-Cell-Amplif...

https://github.com/fdebrabander/Arduino-LiquidCrys...

Step 5: Success!

You did it! You just created your crude Cocktail Machine!

Feel free to check out my YouTube channel for more awesome projects: http://www.youtube.com/user/greatscottlab

You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes information:

https://twitter.com/GreatScottLab

https://www.facebook.com/greatscottlab

1 Person Made This Project!

Recommendations

  • Made with Math Contest

    Made with Math Contest
  • Multi-Discipline Contest

    Multi-Discipline Contest
  • Robotics Contest

    Robotics Contest

40 Discussions

None
nickbtag23

1 year ago on Step 4

I keep on trying to add the library HX711-Load-Cell-Amplifier-master.zip as you instructed, and I keep receiving the error:

Arduino: 1.8.7 (Mac OS X), Board: "Arduino Nano, ATmega328P"

Build options changed, rebuilding all

CocktailMaker:3:19: error: HX711.h: No such file or directory

compilation terminated.

exit status 1

HX711.h: No such file or directory

Specified folder/zip file does not contain a valid library

Specified folder/zip file does not contain a valid library

Specified folder/zip file does not contain a valid library

Can someone please help me!!

2 replies
None
Chupke47nickbtag23

Reply 6 months ago

Hi,
did you found a solution? im having the same problem.
Totally new to arduino.
Thanks in advance.

None
DJK25

Question 6 months ago

Greetings. I didn't quite understand how weight was used here. Could I ask for an explanation? Thank you

1 answer
None
Tornadoboy28DJK25

Answer 4 months ago

I think its main function is to simply detect that the liquid has reached and is being poured into the glass, it basically times it starting from the moment it detects ANY increase in weight. This is because it takes a little bit for the liquid to go from the bottle, through the pump and to the glass, this way the timer only starts when it actually begins being added. I've been thinking of messing with the code so it measures actual amounts added by weight rather than just trying to guess by timing it by flow rates, in theory that should be a lot more accurate, but I haven't tried it yet.

None
ruthhh

7 months ago on Step 3

I could use some help with the wiring. I dont quite understand what im supposed to do with the ground, vcc, and 5v

1 reply
None
DartNinjaruthhh

Reply 6 months ago

Hello. Every ground connection in those circuits refers to the ground potential of the main power source at the DC-Jack. There are many ways to connect different wires to one potential, for instance how Scott has done it. This way you have a clamp whose intputs are all connected together.

None
MatthewB50

Question 7 months ago on Step 5


Hello and thank you so much for this tutorial. I have been attempting to replicate this project but am getting a bit of trouble with the LCD screen not lighting up correctly. This is my first arduino project so I am not sure how to correct it. The screen lights up and both rows show solid blocks. When I look at the screen from an angle I can see that it has the text printing and is functional.

I have gone through your instructions as well as reviewed your video multiple times. I noticed that you have what looks like18 gauge wire coming in from the power source as well as your ground. You have this same wire running to each pump. Is this a requirement?
I also noticed that your schematic has 1 ground being used from the arduino but in the video you have it sauldered to the opposite ground. Does it matter what ground is used?

Could you possibly explain your ACC and GROUND configuration a bit more so that I can isolate the problem?

(I am aware that my LCD in the photo is not connected. I fried it and had to order a new one.)

None
DominicM54

11 months ago

Hello, why are you using a 15v adapter if the regulator on the Arduino Nano is built for 7-10 and can blow up at 15V? In addition, where are you sourcing the 5V+ from? Is it the motor control?

None
enstain

1 year ago

A very nice project. Never occurred to me to use peristaltic pumps! I am trying to build a Gin&Tonic machine, but one thing I can not figure out (and maybe someone can point me in the right direction). Many of these cocktail machines use non-carbonated drinks, but how would one go about dispensing fizzy drinks (like tonic or ginger ale)? I have tried using a mechanical dosser they use in bars for liqour, but that ended badly (it shot off due to the increased pressure when you agitate the drink). Anyone got any ideas of have seen projects dealing with this?

2 replies
None
Tornadoboy28enstain

Reply 1 year ago

I wonder if you could still use a peristaltic pump but also add a solenoid valve between it and the bottle to keep the C02 from bleeding through the pump when it's not in use, thus keeping it from going flat?

ndalton3's idea sounds good too!

None
ndalton3enstain

Reply 1 year ago

Fizzy drinks can be dispensed by using air pressure into the headspace of the bottle. So you have an air pump pumping air into the air space of a sealed bottle, and a liquid line coming from the liquid space of the bottle.

None
shawnalfaro

1 year ago

im gonna take this project and use it to make a liquid acrylic paint dispenser for my desk. I paint at my desk and real estate on it is at a premium. so im going to make this to accurately dispense paint for my palette and keep the bottles/pumps under my desk and just have a dispenser. if i do manage to make it, ill make an ible for it

1 reply
None
Tornadoboy28shawnalfaro

Reply 1 year ago

Great idea! Better yet build in a color censor so it can look at samples and try to duplicate them!

None
Tornadoboy28

1 year ago

Great stuff as always! I've started building my own, I'm hoping once I get the original design working 100% as intended I'm going to try to make some mods, like adding 3 more pumps and creating a "purge" cycle for cleaning, maybe bling it out a little with LEDs among other things lighting up the pumps in use. Then perhaps if I start to wrap my brain around Arduino coding enough I'm going to try to make a menu for multiple drinks and a way for it to monitor it's source bottle's content levels by weight and give alerts when they're low.

I can probably figure it out myself and just wing it but are the plans for the enclosure posted anywhere? If there are I can't find it.

None
Tornadoboy28黄拔雄

Reply 1 year ago

It's available on this page for download, it's under Test.ino and CocktailMaker.ino or you can just click on the links in this message. You also need to included these libraries: https://github.com/sparkfun/HX711-Load-Cell-Amplifier and https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library Although that particular library for the LCD seems to be giving people a lot of trouble when compiling, so if you have trouble try this one: https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/

None
Tornadoboy28黄拔雄

Answer 1 year ago

It's available on this page for download, it's under Test.ino and CocktailMaker.ino or you can just click on the links in this message. You also need to included these libraries: https://github.com/sparkfun/HX711-Load-Cell-Amplifier and https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library Although that particular library for the LCD seems to be giving people a lot of trouble when compiling, so if you have trouble try this one: https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/