MIS 1.0
Mobile Intoxication System
Motivation:
It’s a robot that makes cocktails, also known as a barbot. Do you need anymore motivation than that?
Parts:
Tools:
- Wire Cutting/Stripper Tool
- Pliers
- Soldering Iron
- Drill
- Calipers
- Screwdrivers
Procedure:
The following sections provide all of the knowledge needed for the electric/mechanical components of a barbot. Creating a fun and interesting housing for your barbot is up to you. To see how my housing was made please see the Barbot 2.0 page.
Arduino Setup
The first thing that needs to be done is to setup the arduino IDE on your computer. This is where the programs, called sketches, are written and uploaded from to the arduino itself. Follow this tutorial that is from the arduino creators to set it up.
Pump Circuitry


The diagram above represents the circuit for a single pump. The node on the far left represents a digital pin on the arduino, R1 is a 2.2K ohm resistor, Q1 is the TIP120, D1 is the diode included with the TIP120, M1 is the peristaltic pump, and the power supply needs to be 12 volts direct current, DC.

To make trouble shooting easier L1, which is an LED is added. The LED needs to have 5 volts within in working range because this is what the output signal will be from the arduino. This will help with trouble shooting because if the LED lights up, the signal from the arduino is working and means any issue is with the motor, TIP120, or power supply.


The two diagrams above provide valuable information for making this circuit. First, the transistor/TIP120 schematic diagram makes it look like the middle pin is the collector, but in actuality its the left pin. I originally wired mine incorrect and it took about an hour to figure out my problem after searching the web for the TIP120 data sheet.
Second, the long lead on the LED is the anode, so connect this towards the direction that the current is flowing from. LED stands for “light emitting diode,” so it only allows current to flow in one direction. For those that do not know, a diode is a circuit component that only allows current to flow in a single direction. For more information there is Google.
The .txt file above is a simple arduino sketch to test the single pump circuit. Download the .txt, copy and paste it into an arduino sketch, then upload it to the arduino with the circuit build. This code uses digital pin 10 on the arduino as the output. If your LED turns on and off with a 1 second pause and the motor/pump turns on and off with it, then your circuit is fully operational and you are ready to move on.
Now that one pump is working, multiple pumps can be added. The final barbot has 6 pumps, so 5 more pumps and their circuits will be added. All circuits are identical, but only one 12V power supply is needed.


To test his circuit use the following code:
This code uses digital pins 8 through 13, with pin 13 controlling pump A and 8 controlling pump F. This code cycles through turning pumps on and off at different times to see if they all work together. Once this is operational, it is time to add some human control.
Push Button Circuitry
The schematic shown below is for a simple push button circuit. The 5V power supply comes from the arduino, and is next to the analog ports. R1 is a resistor, I think I used 1KOhm. S1 is the push button, and the node on the right side is the input port on the arduino.

The following code can be used to test that the bush button circuit is working. This code is the basic building block for the barbot’s program.
Peristaltic Pumps
Obviously the hose that comes in the peristaltic pumps is way too short. Rather than try and find fitting to add more hose length, it much simpler to replace the hose in side the pump with a longer one. It is important to use food safe silicone tubing. A 25′ strand is inexpensive, and provides six 4′ lengths.

The 4′ lengths turned out to be exactly the perfect length for the final housing I made.

It is actually very easy to exchange the tubing inside of the pump head. The following video does an excellent job of showing how to disassemble and change the tubing.
Final Code and Assembly
Now that all of the individual subsystems are functioning properly, it is time to put everything together to make some drinks. Below is the final code/sketch needed to run the barbot. Pay attention to the comments, as I shifted some of the output/input pins from the above diagrams. This code is setup to make Rum and Cokes, and Screw Drivers. Cheers!

2 thoughts on “Barbot 1.0”