Cocktail Maker

by TobyB2322 in Circuits > Raspberry Pi

461 Views, 3 Favorites, 0 Comments

Cocktail Maker

IMG_3449.jpg

At a certain moment in our lives we all had a day where we didn't want to work but still have a cocktail. With this cocktail maker this dream can come true. You don't need to make a whole cocktail by yourself and you don't even have to spent a lot of money. All you need are the drinks and you can order a cocktail online or with a keypad. This cocktail maker isn't the hardest to make when you have all the right equipments. In this instructable I will tell you guys how to make this exact cocktail maker.

Supplies

Electronics:

  • 1x Raspberry Pi 4B --> 41,95€
  • 1x T-cobbler + flat cable --> 3,91€
  • 2x breadbord --> 13,50€
  • 1x breadbord power supply --> 3,99€
  • 1x Battery 12V 1A --> 13,45€
  • 3x Debo relais 2 ch --> 8,70€
  • 5x 12V DC waterpump --> 44,75€
  • 1x DS18B20 temperature sensor --> 3,34€
  • 1x waterflow sensor --> 6,95€
  • 1x ard sen pressure weight sensor --> 5,24€
  • 1x LCD 16x2 --> 6,78€
  • 1x Keypad 3x4 --> 1,95€
  • 1x potentiometer 10kΩ --> 3,96€
  • 1x resistor 4k7Ω --> 0,95€
  • 1x PCF8574 --> 1,97€
  • 1x MCP3008 --> 2,47€

Casing big box:

  • 2x 400x500 mm MDF WR 12mm
  • 2x 400x400 mm MDF WR 12mm
  • 1x 400x500 mm MDF WR 12mm with a hole in the middle at the bottom of 200x200 mm
  • 1x 400x500 mm MDF WR 12mm with a hole in the middel of 370x470 mm
  • 1x 365 x 465 mm MDF WR 12mm

Casing small box:

  • 1x 200x185 mm MDF WR 12mm
  • 2x 200x140 mm MDF WR 12mm
  • 1x 130x185 mm MDF WR 12mm

Price MDF WR 12mm = 50€

Step 1: Constructing the Big Box

IMG_3412.jpg
IMG_3415.jpg
IMG_3416.jpg

We’ll start with constructing the casing because it’ll be easy to place the electronics in it afterwards. In our casing we have 2 boxes. We’ll start with constructing the big box first. The big box will be 400 x 400 x 500 mm big. So first cut two sides of 400 x 500 mm, then the front and the back of 400 x 500 mm but here we’ll need to cut holes and at last the top and the bottom of 400 x 400 mm. In the frontside there will be a hole in the middle on the bottom of 200 x 200 mm where the little box will be later on. On the backside there will be a hole in the middle of 370 x 470 mm for the door. If we have all the sides we’re going to glue them together with wood glue and let it dry for some time.

Step 2: Constructing the Small Box

IMG_3418.jpg
IMG_3419.jpg

Now we’re going to need the little box for the cup to be placed in. There will only be 4 sides to this box. We have two sides of 140 x 200 mm, the back of 200 x 140 mm and the top of 200 x 200 mm. These sides will also be glued together with wood glue and then we can place this box in the hole on the front of the big box.

Step 3: Cutting Holes

IMG_3427.jpg

Now we’ll need holes for the LCD and the keypad in the front. For the LCD we just want to see the screen at the front so we just cut a hole of 20 x 70 mm. For the keypad we cut a little hole of 5 x 30 mm to put the cables through. In the corner of the right side I cut a circle of 10 mm so I can put a cable through to power the Raspberry Pi and a cable to power the breadboard powersupply. The next hole will be in the backside of the little box so we can put the weight sensor from the back through to the front where the cup will be. This is a hole of 5 x 15 so we can easily put the cables through. The last hole will be on the top of the little box so we can put the waterflow sensor through. This hole is a circle of 20mm.

Step 4: Connect the Electronics

schema klaar_schema.png
breadbord_klaar_bb.png

It’s time to connect all the electronics. In the schematics you’ll see how I connected everything. We can connect everything using little jumperwires but the pumps use 12V so for those we’ll use bigger wires. We start by soldering those wires to the pumps so we can connect them to the relais and the power supply. On the relais we have a NO and a COM we’re going to use. On the COM side we put the 12V from the power supply and on the NO we put the 12V from the water pump. The ground of the water pump we directly connect with the ground of the power supply. On the other side of the relais we have DC+, DC-, IN1 and IN2. For DC+ we connect this to 5V, on DC- we connect this to GND and on IN1 and IN2 we connect those to GPIO pins.

Step 5: Put the Electronics in the Case

IMG_3426.jpg

Now we can put all the electronics in our case and put screws in the holes of certain components so that nothing can move anymore. The breadbords need to be glued to the side so that we have more space for our power supply and for the drinks. We can now put the LCD in the hole that we made earlier and the keypad can be placed on the front of the big box. The weight sensor can now also be placed in the little box with the cables on the backside. At last we can put the waterflow sensor on top of the small box.

Step 6: Making a Funnel

trechter.JPG

We can't put all the tubes into the waterflow sensor so we'll need a small funnel for this. I made a drawing of this funnel with Fusion360 and it can be made with a 3D printer. The tubes fit on the holes at the top and it fits on top of the waterfow sensor.

Step 7: Cutting Tubes for the Drinks

IMG_3452.jpg

To transport the drinks to the funnel we need tubes. With the first five tubes we connect the pumps with the drinks so we can pump up the drinks. The other five tubes will go from the pump to the funnel so we can transport it to the cup.

Step 8: Make a Database

EERD.png

Before we start programming we need a database to store all of the data and so we can show the data on the website. On the image you’ll see the EERD scheme of my database. I have made this database with the use of MySQL. In the tables Ingredient, Cocktail, Actie and Component I already put the data because we’ll only add data to Historiek and Consumptie.

Step 9: Make the Door for the Big Box

IMG_3454.jpg

To make sure nothing will fall out of our case we'll have a door at the back. We can open this door to work on the electronics or to add new bottles. We need three hinges to assemble the door to the big box.

Step 10: Paint the Box

IMG_3447.jpg

For the last step I'm going to paint the box because this will cover all the imperfections and it will look better with a color on it. I started with a primer and after that I used a white paint to finish it.