Skip to content

Building instructions ​

To use CocktailPi you need to build your own machine. CocktailPi controls a relay board (or stepper drivers / valves) that switches the pumps, which pump the different liquids into the glass. You can build the machine however you like – the only requirement is a Raspberry Pi (NanoPi, BananaPi etc. are not supported).

Not every component below is required; pick what fits your setup. Pay special attention to the power supply: pumps and power supply must match, and you may need voltage converters.

Once your hardware is ready, continue with the installation.

INFO

The blueprints and parts are suggestions only and are provided without warranty.

Blueprints ​

Click on a blueprint to see it in full resolution. The Fritzing source files (.fzz) can be downloaded here: basic, reverse pumping, complex.

Basic setup ​

A minimal setup. Pumps cannot run in reverse.

Basic setup

Basic setup with reverse pumping ​

Two additional relays reverse the voltage of the pumps. This allows the software to run pumps backwards, e.g. to pump leftover liquid from the hoses back into the bottles.

Setup with voltage director for reverse pumping

Complex setup ​

An example of what can be connected: I²C GPIO expanders (up to 8), a voltage director, and a mix of DC and stepper pumps.

Complex setup with GPIO expander, voltage director, stepper and DC pumps

Which pumps to use? ​

CocktailPi supports DC pumps, stepper pumps and valves – see Choosing pumps for a comparison.

Hardware list ​

The components are suggestions and not all of them are required. Most parts are available on both AliExpress and Amazon.

Basic hardware ​

QtyPartWhere to buyNotes
1Raspberry PiAmazonPi 4 or 5 recommended with a touchscreen
1Relay boardAmazonone channel per DC pump
8Dosing pumpsAmazon, AliExpress
8Diodesreverse current protection, one per pump
1Power supplyadjustable 0–24 V: Amazonmust suit your pumps and their power consumption
or higher voltage + buck converter: Amazonthis converter only supplies 3 A – you may need more than one
Silicone hoseAmazon
Cableschoose a cable cross section suitable for the current

Faster pumps ​

PartWhere to buy
12 V / 24 V dosing pumpAmazon, AliExpress

Stepper pumps ​

PartWhere to buyNotes
Stepper motor pumpAmazon, AliExpressworks with 12 V, 24 V recommended
Stepper motor driverAmazon, AliExpressone per stepper motor
Stepper driver board (optional)Amazon, AliExpressone per driver

Power supplies ​

PartWhere to buyNotes
5 V step-down converterAmazonto power the Raspberry Pi
12 V power supplyAmazonfor 12 V pumps
12 V power stabiliserAmazonfor battery operation
24 V power supplyAmazon
0–24 V adjustable power supplyAmazon
Voltage converter / buck converterAmazon

Other ​

PartWhere to buyNotes
7" touchscreenAmazon
16-pin I²C GPIO expanderAmazonfor more pumps
I²C relay board (1/2/4/8/16 channels)AliExpress
16-channel relay boardAmazonneeds 5 V to trigger, the Pi's GPIOs use 3.3 V – use a level shifter
2-channel relay boardAmazonvoltage director for reverse pumping
Rectifier diodeAmazonwhen combining power supply and power stabiliser
LAN cable feed-throughAmazonfor the case

Try the online demo

Log in with the credentials below. The demo is shared with other visitors and is reset from time to time, so your changes may be lost.

User
Admin
Password
123456