Project · Arduino Nano

The Aperol machine

I built this machine around an Arduino Nano. You choose the strength and glass size, press start, and the machine pours sparkling wine, Aperol and soda water in the right proportions.

The machine in 30 seconds, with sound.

Try the machine in your browser

The simulator uses the same recipes and pump times as the real firmware, only faster.

Aperol machine v1 · Arduino Nano ready
1 · Sparkling
-
-
2 · Aperol
-
-
3 · Water
-
-
Mix 3/6 · 2/6 · 1/6
Total volume 200 ml
Pouring time - s
Drinks poured 0
Sparkling wine first, then Aperol, then water, never at the same time.

The five strength levels

Level 3 is the default; level 5 gets a skull on the display.

LevelSparklingAperol WaterCharacter

Build and wiring

An Arduino Nano drives a display over I2C and switches the three pumps via N-channel MOSFETs.

Front of the Aperol machine with display, rotary knob and two buttons
Display, knob and two buttons
The machine from the side, with the bottles of sparkling wine, Aperol and water below
The bottles stand right underneath
Underside of the machine with the spout that delivers all three ingredients
One spout for all three ingredients
Opened housing with three pumps and tubes
Three pumps inside
PinFunction
A0Potentiometer for strength
A4 / A5LCD 16×2 via I2C
D2“Next/Menu” button
D3“Start” button
D9MOSFET gate, pump Water
D10MOSFET gate, pump Sparkling
D11MOSFET gate, pump Aperol
D5Piezo buzzer (optional)
How to connect the pumps correctly

Each pump needs a flyback diode (e.g. 1N4007), otherwise the MOSFET will fail. Each gate also needs a series resistor of about 220 Ω and a 10 kΩ resistor to GND, so that the pumps stay off at power-up.

What the menu can do

Hold the “Weiter” (next) button for 3 seconds to open the menu.

01

Party round

The machine pours 1 to 9 glasses in a row, and you swap the glass in between.

02

Cleaning

Each pump is flushed for 10 seconds from a cleaning bottle.

03

Manual

You run a pump by hand, for example to prime the tubes.

04

Calibration

A pump runs into a measuring jug for 10 seconds. You enter the measured amount and save it.

05

Statistics

The machine counts the drinks it has poured.

06

Screensaver

After 60 seconds without use, a glass bounces across the display.

Two tricky points in the build

Dosing

Amount via pump time

The firmware controls the amount via the pump time. Hose length, height and viscosity change the flow, so each pump is calibrated once.

Hardware limit

No reverse running with one MOSFET

A MOSFET only switches on and off, so the pump cannot suck back. Instead, the firmware waits briefly after each pump until nothing drips any more.

Building your own

The package contains the commented Arduino sketch, the guide with wiring and a quick-start guide as a PDF. You will also need the “LiquidCrystal I2C” library by Frank de Brabander.

Request the source code

The download is available on request: sign in, and I will unlock it for you.

Contact

Write to me if you have questions about building the machine or would like to build one yourself.

Arithmetic check Arithmetic task, shown as an image

Your details are processed in order to answer your enquiry. More in the privacy policy.

No Google captcha, no cookies, no disclosure to third parties. Alternatively by e-mail to info@timobritz.de.