Gaggiuino: adding pressure profiling to a Gaggia Classic
March 2026 — on why a €400 espresso machine can pull shots a €4000 machine can’t
The Gaggia Classic is a semi-automatic espresso machine with a straightforward design: a pump, a boiler, a solenoid valve, and a group head. It’s been in production in roughly the same form since 1991. It’s not a cheap machine, but it’s not expensive either — around €400 new, often found secondhand for less. It is, by design, simple.
That simplicity is also why it’s moddable. Gaggiuino is an open-source project that adds microcontroller-based pressure profiling to the Gaggia Classic without replacing any core hardware. The machine still works exactly as before. It just also does things that machines ten times the price don’t.
What pressure profiling actually does
A standard espresso machine runs its pump at full power throughout the shot. The pressure at the puck is whatever the pump produces minus the restriction of the coffee and the plumbing — typically 9 bar. It doesn’t change during the shot.
Pressure profiling changes the pressure over time. Common profiles:
- Pre-infusion: start at low pressure (2–3 bar) to wet the puck evenly before ramping to full extraction pressure. Reduces channelling.
- Decline profile: start high, drop pressure as the shot develops. Produces a different extraction curve, often with more sweetness and less bitterness.
- Flat: 6 bar throughout instead of 9 — useful for lighter roasts that don’t need the extraction pressure designed for Italian espresso.
The difference in the cup is real and repeatable, not audiophile-level placebo. A well-dialled pre-infusion profile on a medium roast produces a noticeably better shot than the same coffee at flat 9 bar.
How Gaggiuino works
The Gaggia Classic’s pump is a vibratory pump — a solenoid that oscillates at mains frequency and drives a piston through magnetic attraction and a spring return. The pump’s output pressure is roughly proportional to how often the solenoid fires, which is proportional to mains frequency.
Gaggiuino intercepts the pump power line and inserts a relay (or triac for AC control) that can chop the mains signal — effectively applying PWM to an AC pump. At 100% duty cycle, the pump runs normally. At 50%, it produces approximately half the pressure. At 20%, you get gentle pre-infusion flow.
The control system also needs to know what’s happening:
- Pressure sensor: a small transducer tapped into the boiler circuit via a T-fitting and short silicone tube reads actual pressure in real time
- Temperature sensor: the existing thermostat is supplemented or replaced with a thermocouple for accurate boiler temperature
- Flow sensor (optional, on some builds): measures volumetric flow for dose-by-weight or dose-by-volume control
An ESP32 or STM32 microcontroller runs the Gaggiuino firmware, reads the sensors, and drives the pump relay to execute whatever profile you’ve configured. A small display shows shot time, pressure curve, and temperature in real time.
The install
Opening a Gaggia Classic is straightforward — six screws and the top panel lifts off. The internals are not complicated: the pump, the boiler, the 3-way solenoid valve, and the wiring harness connecting them.
The wiring harness is the critical part. Before touching anything, label every connector. The photo documentation exists for a reason — connectors that look different are different, but connectors that look identical are not always interchangeable, and reassembling a mains-voltage appliance with two wires swapped is not an experiment you want to run on your kitchen worktop.
The relay module mounts inside the case — there’s enough space above the pump if you’re deliberate about cable routing. The pressure sensor taps into the low-pressure side of the boiler circuit via a T-fitting; the clear silicone tube from the sensor to the fitting needs to be short enough to avoid water hammer but long enough to route cleanly without kinking.
The labeled cable harness is the part that takes patience. Every wire that gets intercepted or extended gets a label: position, function, direction. This is not because the Gaggia wiring is complex — it isn’t — but because you’re working around 230V components in a confined space, and clarity is the difference between a working machine and a service call.
What the firmware gives you
The Gaggiuino firmware runs a web interface accessible from the local network. You define pressure profiles graphically: a time-pressure curve with settable breakpoints. The machine executes it shot by shot, repeating the profile exactly each time.
The shot history logs pressure, temperature, and flow data for every extraction. Over time, this is genuinely useful: you can see whether your grind adjustment actually moved the extraction profile, whether the puck prep technique affects channelling (visible as pressure spikes), and whether the beans aged off over the week.
For a machine that was designed to pull a single repeatable shot at 9 bar, this is a substantial capability extension.
The economics
The Gaggiuino hardware — ESP32 board, relay module, pressure sensor, connectors — costs around €30–50 in components. The firmware is free and open source. The install takes an afternoon.
A commercial machine with built-in pressure profiling starts at around €2000 and goes up from there. The profiles available on those machines are often preset curves from the manufacturer, not freely programmable. The shot data is often locked to a proprietary app.
None of this means commercial machines are bad. It means that a €400 Gaggia Classic with a €40 Gaggiuino install is not competing on brand or fit and finish — it’s competing on what it can actually do with coffee. On that metric, it holds its own against machines that cost significantly more.
The espresso is better. The machine costs less. The system is yours to understand, modify, and repair.
That’s the whole point.


