The oxygen lab

Oxygen is the enemy of finished beer. Even small amounts picked up during dry hopping, transfers or packaging dull the hop aroma and start the slow slide towards stale flavours – and you can’t see it or taste it until it’s too late. So we measure it.

This page describes the instrument we use and collects everything we’ve measured with it: from how much oxygen gets in through a single gasket to what ends up in the headspace of a can.

The instrument

The heart of the system is a PyroScience Pico-O2, a small OEM meter for optical oxygen sensors. It needs no membrane or electrolyte and doesn’t consume any oxygen: it shines red light on a sensor spot and reads how the spot’s glow changes with the oxygen partial pressure. The meter is connected to a Raspberry Pi 5 and gives us:

  • dissolved oxygen, in mg/L and µmol/L
  • the oxygen partial pressure, the oxygen percentage and the air saturation
  • the sample temperature, from a separate temperature probe
  • the ambient pressure and humidity, from sensors inside the meter
  • the signal intensity and the ambient light, which tell us whether the optics are working
MeterPyroScience Pico-O2, a fibre-optic OEM meter with a Pt100 input and UART
Oxygen sensorsSensor spots, Ø5 mm on 75 µm PET foil: standard range (OXSP5) and trace range (TROXSP5)
TemperatureTSUB21-NC, a Pt100 probe, Teflon-coated and submersible, Ø2.1 mm
OpticsPICFIB2 optical fibre, and 3 mm acrylic rods as light guides
Zero calibrationOXCAL capsules for a 0 % oxygen solution
ComputerRaspberry Pi 5, serial connection
MeasuringEvery second, 10-second averages to Home Assistant

Sensors and probes

Optical sensors come in two ranges. Standard sensors cover everything up to air saturation and beyond. Trace sensors are far more sensitive at low levels but don’t reach as high, and they’re what it takes to see the last few parts per billion in a fermenter under CO₂ or in a filled can.

The spots sit where the oxygen is: on a rod that goes into the beer, in the dry-hop tower and inside a 330 ml can. Each place has its own profile – STD rod, TRACE rod, TRACE DH tower and TRACE 330 can – with its own settings and calibration, and we switch between them from Home Assistant.

In the fermenter the spots sit on rods. Each rod is a 3 mm extruded acrylic rod with its end ground at an angle, and a printed DOT holder on the tip carries the sensor spot. The spot sits at an angle, so CO₂ bubbles from the fermentation don’t get stuck on it. The rod goes down through the lid and is clamped with an EPDM gasket in a modified 316L compression fitting, welded into the lid. On top of the fitting sits a printed holder for the Pico-O2 itself, so the light goes straight from the meter down the rod. There are two rods – one with a standard spot and one with a trace spot – each with its own holder, so the meter can be moved between them.

In the dry-hop tower the probe sits in the lid, next to a pressure sensor.

Most of the mechanics are our own, designed in SolidWorks, and everything printed that touches wort or beer is printed in Formlabs BioMed Clear resin:

  • a holder for the Pico-O2
  • light guides, and a jig for grinding their ends
  • a thermowell for the temperature probe
  • a clamp adapter for the rods, and bulkheads for the fermenter and the dry-hop tower
  • DOT holders: an angled one for the long rods in fermenting beer, resin-printed in five sizes from 2.95 to 3.3 mm, and a flat one for the top of the dry-hop tower
  • a holder for the 23-litre carboy we use for starters

Calibration

Every profile has its own two-point calibration, done from Home Assistant: turn on calibration mode, let the sensor settle, then press “zero” with the sensor in an oxygen-free standard and “high” with it in air. The high point uses the meter’s own pressure and humidity readings. The calibration is saved with the profile, so it survives restarts and profile changes.

The zero point is set with PyroScience’s OXCAL capsules, which make 50 ml of oxygen-free solution. We calibrate before a series of measurements – once before the gasket study and once before brewing.

Measuring under pressure

In the fermenter the sensor isn’t at ambient pressure. The oxygen percentage is the oxygen partial pressure divided by the total pressure, and at 1 bar over-pressure the total is about twice the ambient. When “use fermenter pressure” is switched on, the program asks the fermenter’s Raspberry Pi for its pressure over the network, adds the ambient pressure and gives the meter the absolute pressure instead. If the pressure readings stop coming, we get a notification.

The software

The meter is run by a Python program of our own on the Raspberry Pi. It measures every second and sends 10-second averages to Home Assistant over MQTT, where the sensors show up automatically, and Grafana draws the curves together with the rest of the fermenter data. Calibration, profiles and the pressure setting are all controlled from Home Assistant, and if something goes wrong we get a push notification.

What we’ve measured

Each study gets its own post: