Pumps in daily use
Pumps are set up under Administration → Pumps. The page shows every pump with its ingredient, filling level and state, and on the right a Status box with the machine-wide settings: reverse pumping, load cell and power limit.

A pump card shows:
- Ready / Incomplete – incomplete pumps (e.g. no calibration or no tube capacity yet) are not used for cocktails.
- Pumped Up / Pumped Down – whether the tube is filled with liquid.
- Running... / Suspended – suspended means the pump waits for its turn because of the power limit.
The buttons on a card: edit (pencil), pump back, pump up and run/stop.
Calibration
The pencil button opens the Pump Setup Assistant. Its Calibrate step tells CocktailPi how much a pump delivers:
- DC pumps: Time per cl in ms – how long the pump needs for 10 ml.
- Stepper pumps: Steps per cl, plus Acceleration and Max steps per second.
- Valves don't need a rate: they dispense by weight with the load cell.
The easiest way is the Motor tester in the same step: let the pump dispense e.g. 100 ml into a measuring cup, enter the Actual ml pumped and press Apply. CocktailPi corrects the value for you. Repeat once to check. Tube capacity (in ml) is the amount of liquid in the tube between bottle and outlet; it is needed for pumping up and back.

Calibrate with water first, then check thick ingredients like syrups. For those, raise the ingredient's Pump time multiplier (see Ingredients & recipes) instead of changing the pump.
Pumping up and back
Pumping up fills the tube from the bottle to the outlet, pumping back empties it into the bottle again.
- When you order a cocktail, every pump it needs that isn't Pumped Up is filled first. So you never have to remember it.
- You can also pump up by hand: the pump-up button on the card or in the Pumps section of the order dialog.
- The Pumped Up flag can be set by hand in the setup assistant (step State), e.g. after you have emptied the tubes yourself.
Reverse pumping
Without reverse pumping, the liquid stays in the tubes after a cocktail. That is fine for spirits during a party, but juice and syrups get sticky or spoil when the machine stands for a day. With reverse pumping CocktailPi can run the pumps backwards and put that liquid back into the bottles.
It needs hardware support: one GPIO, the Director-Pin, switches the direction of all pumps (e.g. via relays that swap the polarity of the DC motors, or the direction input of the stepper drivers). It is configured under Pumps → Status → Reverse pumping → Configure. Turning it on and choosing the pin is for Super-Admins; admins can change the other values.

- Forward state – the level of the Director-Pin (High/Low) for pumping forwards. If all pumps run the wrong way, flip this.
- Overshoot – pump back more than the tube capacity, in % (0–200). 20 % means 1.2 × the tube capacity, so the tube is really empty.
- Inactive time till automatic pump back – Never, 10, 20, 30 or 60 minutes. After this time without any pump activity, CocktailPi pumps back every pumped-up pump (not valves). The timer starts again after every cocktail and every pump job. The next order pumps the needed pumps up again automatically.
With reverse pumping enabled, the pump cards get a pump back button. Pumping forwards and backwards at the same time isn't possible, so a pump back waits until no pump runs forwards.
Power limit
Every pump draws current, and a small power supply can't run eight pumps at once. Give every pump its Power consumption (in mW) (setup assistant, step Calibrate) and enable Power limit (in mW) under Pumps → Status → Power limit (Super-Admin). The limit must be at least as high as the hungriest pump.

CocktailPi then never runs more pumps at the same time than the limit allows:
- Production steps are split into several rounds. The pumps with the lowest filling level go first, and one ingredient may be split between rounds. The cocktail takes longer, but the amounts stay the same.
- Pumping up before a cocktail runs in batches below the limit.
- Manual jobs like Start all take turns: a group of pumps runs about 10 seconds, then the next group. Waiting pumps show Suspended.
Example: with 6000 mW per pump and a limit of 24000 mW, at most four pumps run at the same time.
Load cell and valves
Valves can't measure what they dispense, so they need a scale (an HX711 load cell) under the glass. Set it up under Pumps → Status → Load cell → Configure:
- Enable load cell and choose the CLK-Pin and DT-Pin (Super-Admin).
- Calibration: Zero-Point Calibration with nothing on the scale, then Known Weights Calibration with a weight you know (in g), then a Validation Test.
Valves can only be used once the load cell is calibrated. They run one at a time at the end of a step: the valve opens until the scale shows the target amount (1 g is treated as 1 ml).
With a load cell, two more options are available:
- Check if glass placed in dispensing area – orders are blocked while the scale reads less than 20 g.
- Use measured weight to detect glass type – the glass is recognised by its weight. Enter each glass's Empty weight (in g) under Administration → Glasses (the Measure button weighs it for you).
Manual control and cleaning
The pumps can be controlled by hand on the Pumps page (admins) – for cleaning, testing or filling tubes:
- Start all / Stop all – runs every pump forwards until you stop it.
- The run/stop button on a pump card runs a single pump.
- Pump up and pump back as described above.
While pumps run like this, no cocktail can be ordered (Pumps are running (cleaning or pumping up)).
A simple cleaning routine:
- If you use reverse pumping: pump back all pumps, so the liquid goes back into the bottles.
- Take the tubes out of the bottles and put them into a container of warm water. Put an empty container under the outlet.
- Start all and let the pumps run until clean water comes out, then Stop all.
- Take the tubes out of the water and Start all again until the tubes are empty. Stop all.
- Put the tubes back into the bottles. Since the tubes are empty now, untick Pumped Up (setup assistant, step State, or the Pumps section of the order dialog), so the next cocktail fills them first.
Which ingredients belong on a pump?
Pumps are the scarce resource, the bar is unlimited. Good candidates for pumps:
- ingredients used in many of the recipes you make – the Statistics tab of the order history shows what is dispensed most,
- large amounts: spirits, juices, simple syrup,
- carbonated drinks only with valves, because pumps take the fizz out (see Choosing pumps).
Better added by hand: things that aren't liquids or that you need rarely (mint, egg white, cream, a dash of an exotic liqueur). The Shopping advisor → What should I connect? computes the best assignment for your recipes.