Raspberry Pi drink mixer written in Go
So, have you ever been to a party with a terrible bartender? No bartender? Who wants to pour their own drink like a peasant? BarBot can and will change all that! BarBot is a simple, effective way to entertain and intoxicate your guests. Four liquids can be installed and mixed for creative compositions. I designed BarBot so party guests can simply walk up, place their cup on the platform and select a drink from the simple interface (accessible from a smart phone or tablet). A fun loading screen lets you know that your drink is being compiled! The menu then comes back for another selection to be made. Drink up!
How it works:
The Raspberry Pi is listening on 2 ports; apache2 webserver on 80 and Golang on 8080. The menu page is loaded onto your tablet or smart phone. Once a button is selected from the web interface, the options are hidden so multiple selections cannot be made. Then an AJAX request to the BarBot program is made. BarBot receives the request, and then compiles the selected drink by triggering the relays to corresponding pumps, (A pump normally pours at the rate of 1ml per second). After the drink is poured, the BarBot program responds to the AJAX request by loading the page. The menu buttons then return.
DRINK IS DONE COMPILING!
BarBot Parts list:
Raspberry Pi A
SainSmart 8-Channel Relay Module
Adafruit Peristaltic Liquid Pumps
WiFi USB adapter
2 amp USB charger for Pi
12v Power adapter for the Pumps
12v green LED strips
Black project board
Why this configuration?
Simple and most of all CHEAP!
Raspberry Pi A was selected because it can correctly power and trigger the 8-Channel Relay Module. If you have a Raspberry Pi B and this relay module it’s more difficult. Adafruit Peristaltic Liquid pumps were selected because the peristaltic pump never touches the liquid, instead it massages the tube to pull the liquid through.
After modeling what I wanted in 123D Design I went to my local hardware store and scoped out possible materials. I settled on chalkboard. It is lightweight, and looks cool, but mostly because I like the idea of being able to write the menu or BevOps math on the side. The front was crafted with transparent acrylic so everyone could see and admire the handy work. Plus, the sweet green lights make it look super futuristic and awesome!
I hard coded BarBot to use four liquids. Later I may add the ability to use a config file but for now it’s locked in with Whiskey, Vodka, OJ, and Cranberry Juice. GET THE CODE HERE. Compile the code to ARM run on boot, then drop the index.html file into an Apache server on the Raspberry Pi.
BarBot has been a big hit at every party I’ve brought it too, and also the office loves it (yes, we drink at work). Why pour a drink with your own hands when a robot could do it for you? I, for one welcome our new robot overlords. As long as they get me drunk.