Make Your Own Crude Cocktail Machine

86,449

326

50

Introduction: Make Your Own Crude Cocktail Machine

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!

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 (affiliate links):

Aliexpress:

1x Arduino Nano: https://s.click.aliexpress.com/e/_dULoNXh

1x I2C LCD: https://s.click.aliexpress.com/e/_dXRxiG7

1x Rotary Encoder: https://s.click.aliexpress.com/e/_d7IrScL

1x Load Cell (1kg) + HX711 ADC IC: https://s.click.aliexpress.com/e/_dZS8Oif

2x L298N Breakout Board: https://s.click.aliexpress.com/e/_d6BfypN

3x Peristaltic Pump: https://s.click.aliexpress.com/e/_dUzOZCf

1x DC Jack: https://s.click.aliexpress.com/e/_d6cVZVl

1x 15V 5A Power Supply: https://s.click.aliexpress.com/e/_dSg9X5Z

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

3 People Made This Project!

Recommendations

  • Stick It Challenge

    Stick It Challenge
  • Trash to Treasure Contest

    Trash to Treasure Contest
  • Make It Modular: Student Design Challenge

    Make It Modular: Student Design Challenge

50 Comments

0
xyl983915913
xyl983915913

10 months ago


Hi anyone know where could I find HX711.h file?

0
konstantin.ladner75
konstantin.ladner75

10 months ago

Können sie stl.geben für 3d Modell.
Vielen Dank.

0
黄拔雄
黄拔雄

4 years ago

Who have the code? Can u give the code?

0
Tornadoboy28
Tornadoboy28

Reply 3 years 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/

0
Vale66
Vale66

Reply 1 year ago

hey that bitbucket link isnt working do you have a working one or can you send me the file


0
arnoldcenac
arnoldcenac

Reply 2 years ago

Do u still have copies of the codes?

0
uros.lenarcic1
uros.lenarcic1

Question 1 year ago

Does anyone still have a working code? This one is not working for me. :(

0
charlie914byron
charlie914byron

Question 1 year ago

Did anyone ever figure out where the 5v+ comes from? Was planning on doing this as my first arduino project but I cannot see how this was done. The motor driver has a voltage regulator but 15v would fry it would it not?

0
TomášS111
TomášS111

Question 2 years ago

Sorry but i have problem with this programme he doesn't work.Know someone send me functioning programm

0
arnoldcenac
arnoldcenac

Answer 2 years ago

Did you ever get the program to work?

0
SirawitS2
SirawitS2

2 years ago

what should I do


65949329_207573756809439_3278068642608054272_n.jpg65912702_2396912883920956_5263345841287987200_n.jpg
0
robi007
robi007

Reply 2 years ago

I changed it a little bit because I use a LCD keypad shield but you can search for the library at gihub and include it into the arduino library

0
R10000
R10000

2 years ago

Hi, i'm trying to understand the code - how does the doonce function work, what does it do?

0
nickbtag23
nickbtag23

3 years 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!!

0
Chupke47
Chupke47

Reply 3 years ago

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

0
mauriag10
mauriag10

Reply 2 years ago

Did you find a solution? Same problem here!

0
DJK25
DJK25

Question 3 years ago

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

0
Tornadoboy28
Tornadoboy28

Answer 2 years 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.

0
ruthhh
ruthhh

3 years 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

0
DartNinja
DartNinja

Reply 3 years 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.