Raspberry Pi Bartender

by Peter_Fischer in Workshop > Home Improvement

9152 Views, 78 Favorites, 0 Comments

Raspberry Pi Bartender

IMG_4723 Kopie.jpg

As passionate cocktail drinkers we hate it, when cocktails are poorly made and don't get us wrong, it isn't easy to spontaneously mix cocktails at parties. When the mixing ratio is slightly off they sometimes just don't have a good tasting. Therefore we built an electronic Bartender using a Raspberry Pi. With precise coding and German engineering you can't get the mixtures wrong and all you have to do is press one button.

Supplies

These are all the components we used for our project:

  • Raspberry Pi 3 Model B+
  • 6 x 24V Pumps
  • 24V Power Supply
  • 12V Power Supply
  • 5V Regulator
  • 8-Channel Relay
  • 4-Channel Relay
  • OLED Display (0.96 inches)
  • 2 LED-Buttons
  • LED Stripes
  • RFID Sensor
  • RFID Chip + Cards
  • Wires
  • Wooden Plates
  • Wooden Planks
  • Plexiglas
  • Silicone Tubing
  • Funnel
  • Aluminium Strips
  • Hinges
  • Vinyl Foil
  • Screws

Building the Framework

IMG_5639.jpg
IMG_5675.jpg
IMG_5676.jpg
IMG_5678.jpg

Firstly we started by cutting the wooden planks into smaller pieces and screwed them to a wooden plate we used as foundation.

Afterwards we cut off to more smaller pieces from the wooden planks and screwed them in between two of the other planks we had screwed on the foundation.

Then we put a wooden plate on these planks in order to create 2 layers, one for the mixing area and the bottom one for the electronics, to keep them separated.

Adjusting the Backplate

IMG_5674.jpg

Next up we used another wooden plate for the backside of the bartender. We cut 6 squared holes to attach the pumps later on.

Attaching the Pumps to the Back Plate

5917E699-5780-4B4F-80D1-B65E7FC9B2F0.JPG
IMG_5672.jpg
IMG_5673.jpg
IMG_5759.jpg

For an easy access to the electronic area, we cut the back plate into two parts and connected them with a hinge to create a flap.

Before we mounted the pumps to the back plate, we had sticked a black vinyl foil on it.

For our pumps to fit, we attached them to small metal frames we used as mounts for the pumps.

After we did that we screwed the pumps to the back plate, which we also mounted to the framework.

Interior

IMG_5765.jpg

For the inside we used 3 small wooden plates to create the mixing area for the drinks. In two of them we cut rectangles which we used to attach the mount for the funnel later on.

We also screwed another wooden plank with small holes into the upper part of the interior which will be later on our mount for the silicone tubings.

Also we added a hole that connects the upper layer to the electronic layer. We then laid cables to hook up the pumps and the other electronic devices.

Display and Buttons

IMG_5764.jpg
44D34EED-3F4E-429A-BE7A-4043598945CB.JPG

In our next step we sewed the holes for our display, buttons and the main opening for the mixing area. We then screwed the buttons and the display to the front wooden plate and used plexiglas to add additional protection for the screen.

Lighting It Up!

IMG_5798.jpg

For better looking we attached black vinyl foil to the interior plates. Additionally we added an LED stripe that generates smooth lighting while preparing the drinks.

Minor Adjustments

We now added the mount for the funnel (can be seen on final picture in the last step) and the silicone tubings.

Electronics

IMG_2432.jpg

In the next step we wired everything up.

We used a 24V power supply and connected it with an 8-Channel Relay which powers the 6 pumps.

The Raspberry Pi is also powered by the 24V power supply, but we had to reduce the voltage with a regulator to 5V, because the Raspberry Pi can't handle more voltage and would break if we would power it with 24V.

We also installed a 12V power supply which is connected with the 4-Channel Relay for powering the LED stripe.

Both relays are controlled by the Raspberry Pi. We hooked up the display and the buttons with the Raspberry Pi and installed a RFID sensor on the upper right corner of the front side and connected it with the Raspberry Pi as well.

Final Building Steps

For the last steps we covered the remaining wooden plates with black vinyl foil and mounted them to the bartender.

We attached 4 aluminum strips to the edge of the main opening in order to create a metal frame which gives the bartender a nicer look.

On the right and left side we added self-made logo for a better appearance.

On the front side we added a RFID sticker for showing the RFID sensor's location and a big Raspberry Pi logo in the center of the mixing area as an indicator on where to put the glasses.

Icons

16c02c44-c05f-48e3-8ca4-fda75bd1d6fc.JPG

We created a few icons for each ingredient which will be shown on the display during the mixing process.

Code

We only used Python 3 for our code and for our first project by using Python it turned out pretty awesome. We accessed the buttons, LEDs, RFID-sensor and Pumps via the GPIOS on the Raspberry Pi. We created menu screens with the OLED Display and functions for our cocktails. Lastly, we let the script run when the Raspberry Pi is powered on, so the Bartender starts automatically as soon as the Raspberry Pi turns on.

You can look at our Code by using this link: https: //github.com/PietFisch/Raspberry-Pi-Bartender

Final Product

Raspberry Pi Bartender
IMG_4571.jpg
IMG_4723.jpg
IMG_3160.jpg
IMG_8173.jpg
IMG_7748.jpg

Finally the Raspberry Pi Bartender is done and ready to serve drinks.

Features:

  • Easy button control
    • left button for switching threw the menu
    • right button for confirming
  • multiple sets with different drinks by using a RFID card for selecting
  • changing LED color and filling glass animation while preparing the drink
  • icons for each ingredients and cocktails
  • three different types of drinks to choose from
    • four pre-made cocktails
    • custom mixtures
    • shots
  • choosable size for cocktails and mixtures
  • easy cleaning function via RFID chip
  • easy access to electronics and interior
    • flap
    • liftable top

As ingredients we used Vodka, Tequila, Bacardi Razz, Gin, Orange juice and a Raspberry-Apple juice.

The pre-made cocktails are created by us.

Raspi Cocktail:

  • Gin
  • Tequila
  • Vodka
  • Bacardi Razz
  • Raspberry-Apple Juice
  • Orange Juice

Gin-Teq-HMA:

  • Gin
  • Tequila
  • Raspberry-Apple Juice

Wet-Dream:

  • Vodka
  • Bacardi Razz
  • Orange Juice
  • Raspberry-Apple Juice

All cocktails and mixtures have a 2:1 mixing ratio.

We hope you enjoyed our project and a cheers to you or how we say in Germany "ein Prosit"!