Make Your Own Crude Cocktail Machine

20,792

212

17

Published

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:

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

Share

    Recommendations

    • Casting Contest

      Casting Contest
    • Woodworking Contest

      Woodworking Contest
    • Clocks Contest

      Clocks Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    6 Questions

    0

    R, Bon apparement jai regle le problème avec une autre librairie mes la c'est un autre problème avec HX711' doses not name a type Help lol.

    Arduino.jpg

    0

    Bonjour,

    Je voudrais construire ce superbe projet et pour quoi pas l'amélioré, mais il compile pas correctement je pense que sa viens de la Librairies, niveau L'IDE Arduino j'utilise la version 1.0.6, si quelle qu'un peux m'aidées sa serais cool Merci.

    Arduino.jpg

    Hi its very nice project.
    I am currently setting it up.
    in my setup non of the motors working. Do i need to earth the ENA pins on motor control
    thx

    Awesome! Is there a GitHub link? I've got an idea for a great next iteration of this gadget and when I build it I will give you full proper credit in my fork of it.

    I like this video , i want to make the same proyect simulating a manufacturing batch but in the end of the mix i want to put a agitator for mixing like it was in a product to be filled , want to know many ideas in how can i do that ? Thank u

    Can you give me the code of this project?

    17 Comments

    CAN you advierte me my friend?

    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

    Who have the code? Can u give the code?

    Hi thanks a lot for sharing this interessting project!

    But it will not compile. I always get this error:

    src/CocktailMaker.ino:4:53: error: 'POSITIVE' was not declared in this scope

    Are you sure that you are using exactly this LiquidCrystal_I2C library here?

    https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library

    Thanks a lot for your help and best regards,

    Philippe

    can i also use a 12v adapter or is it recomended to use 15v

    1 reply

    if you watch the video you'll see that l298n has a noticble voltage dropout in the output

    Looks delicious .... Give me cocktail

    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?

    Hey Scott,

    You did outstanding work! I am trying to get the code working but i cant figure it out. If i use my encoder on the serial monitor it works like a charm. but when i use you're sketch the encoder refuses to work. only the push button works.

    maybe you can help me.

    best regards Lorenzo

    From the Netherlands

    Great job! Is there any way you could use this but with a raspberry pi? Thanks!

    1 reply

    well you could add an esp 32 wifi module and use it from your phone. But if u were to do it with a raspberry pi, then just look for the pin outs on the raspberry. But i am not sure if u have enough pin to drive the to motors and a standard screen, but maybe whrong

    No, I don't tink this :)

    food safe silicone tubes with a diameter of 10mm. But next time I would use 8mm tubes instead.