OpenBlend v6 (Mixer K): Engineering an Open, Automated Nitrox & Trimix Gas Blender
Deep technical diving, closed-circuit rebreather (CCR) operations, and specialized commercial subsea missions all depend on one critical foundation: accurate, repeatable breathing gas mixtures. Whether preparing Nitrox (EAN32) for shallow decompression or Trimix (21/35 down to 10/70) for deep Baltic wreck and infrastructure work, gas blending sits at the intersection of fluid mechanics, thermodynamics, embedded control, and strict life-support safety.
OpenBlend is an open, prototype engineering project designed to build a fully automated continuous Nitrox and Trimix gas blender for a 266 L/min breathing-air compressor (Coltri MCH16 class)—bringing commercial-grade automation, real-gas top-off calculations, and multi-layered safety down to an open, serviceable platform costing roughly €1,220 in parts delivered.
The Main Problem It Solves
Today, dive stations and small technical diving operations face an awkward gap when blending Nitrox and Trimix:
- Commercial automatic blenders are expensive and closed. Systems such as the Nardi TT-MIX PRO retail around €5,800 and rely on proprietary spare parts (a single replacement mixer oxygen cell can cost ~€199) and closed firmware that operators cannot inspect, log deeply, or adapt.
- Manual continuous blending sticks are labor-intensive and wasteful. Hand-adjusting needle valves while watching two handheld analyzers requires constant attention as cylinder backpressure changes compressor intake flow. Stabilizing a manual mix vents significant amounts of increasingly expensive helium before the fill even begins.
- Partial-pressure and top-off blending is error-prone. Topping off a half-full cylinder of one Trimix into another requires accounting for real-gas compressibility (helium and oxygen deviate in opposite directions from the ideal gas law at 200–300 bar) and thermal heating during the fill.
OpenBlend solves all three problems in one system:
- Accessible & repairable hardware: Standard off-the-shelf industrial relays, brass valves, stepper motors, ESP32 microcontrollers, and standard galvanic oxygen cells—at roughly one-fifth the cost of commercial units.
- Automated closed-loop precision: Motorized needle valves continuously regulate helium and oxygen into the compressor intake, compensating automatically for intake humidity, flow drift, and mixer transport delay.
- Minimal helium waste & automatic real-gas top-offs: A “rolling top-off” algorithm opens the cylinder early and dynamically steers the blend using NIST real-gas compressibility data, cutting vented pre-fill helium by roughly 80% and automatically stopping gas flow and the compressor at the exact temperature-compensated target pressure.
How OpenBlend Works: Architecture Overview
Rather than relying on an expensive thermal-conductivity helium sensor as the primary control feedback, OpenBlend automates a proven two-stage dilution principle:
- Stage 1 (Helium Dilution): Pure helium (6 bar feed) is injected into incoming air. Oxygen cell S1 measures how far helium has diluted the air’s natural 20.95% O₂ fraction—directly giving the helium share.
- Stage 2 (Oxygen Enrichment): After a separation zone and blowback barrier, pure oxygen (3 bar feed) is injected. Two independent oxygen cells (S2 and S3) vote on the finished mixture.
- Dry-Gas Compensation: Because ambient intake air carries water vapor while the compressor’s high-pressure separators strip it out, a BME280 sensor at the air intake lets the controller compute and regulate the exact dry gas composition that will end up inside the cylinder.
- Delivered-Gas Verification: A fourth oxygen cell (S4) samples a low-pressure bleed directly off the high-pressure fill panel to verify that the gas leaving the compressor matches the intake blend—and also lets the operator analyze leftover gas in a cylinder before a top-off.
| Parameter | OpenBlend v6 (Prototype Target) | Commercial Benchmark (e.g. Nardi TT-MIX PRO) |
|---|---|---|
| Estimated Build Cost | ~€1,220 delivered (EU-first BOM) | ~€5,799 incl. VAT |
| Compressor Class | 266 L/min (Coltri MCH16 class) | 50–850 L/min (3–51 m³/h) |
| Oxygen Sensing | 3 mixing cells (S1 + S2/S3 voting) + S4 delivered-gas + room monitor | 2 oxygen cells |
| Helium Measurement | Exact two-stage dilution math (+ optional He cross-check sensor) | Proprietary |
| Top-Off Control | Real-gas NIST Z-factors, live cylinder temp, rolling helium saver, auto-stop | Automatic top-off |
| Control & UI | Dual-board ESP32-S3 (valve node + 7″ touchscreen) + read-only Wi-Fi view | 7″ touchscreen + remote |
| Safety Architecture | Hardware interlock + fixed O₂ orifice + independent XIAO ESP32-C3 supervisor | Electronic cutoff + compressor interlock |
Core Engineering Challenges
Turning a continuous blending stick into a reliable, fail-safe automated machine exposed five major engineering challenges—each driving major iterations from v1 through v6 (Mixer K).
1. Fluid Dynamics: Solving Helium Stratification (“Mixer K”)
Early versions followed conventional DIY nitrox stick practice: a wide DN110 pipe with drilled baffle plates. Fluid-dynamic analysis revealed a hidden trap for Trimix: at 266 L/min in DN110, gas velocity drops to 0.52 m/s. Because helium has very low density and high kinematic viscosity, a 10/70 stage-1 mix falls into laminar flow (Re ≈ 1,275) with a high buoyancy Richardson number (Ri ≈ 2.32)—allowing helium to float as a stratified layer along the top of the pipe.
Because every 0.1% error in S1 multiplies roughly 5× into the calculated helium percentage, poor mixing ruins Trimix accuracy.
In v6 (Mixer K), the team benchmarked 11 static mixer concepts and 4 pipe diameters against the live firmware controller:
- Shrinking the tube to a folded DN50 U-pipe raised gas velocity to
2.62 m/s, restoring turbulent flow (Re ≈ 2,874) and crushing buoyancy stratification (Ri ≈ 0.04) while keeping pressure drop low (3.4 mbar). - Replacing hand-drilled plates with 6 alternating 3D-printed Kenics-style helical elements per stage improved radial mixing in both turbulent and transitional regimes without drilling 160+ holes.
- Adding 6-point averaging sample rakes feeding external flow-through cell housings eliminated single-point wall bias across the pipe cross-section.
2. Multi-Layered Life-Support Safety (Zero Single Points of Failure)
A gas blender has two catastrophic failure modes: oxygen fire (exceeding safe O₂ fractions or feed pressures into a non-oxygen-clean compressor) and hypoxic/wrong breathing gas in a diver’s cylinder.
OpenBlend implements three independent shutdown layers so no single software hang or sensor failure can run gas uncontrolled:
- Pure Hardware Interlock & Mechanical Cap: Emergency stop, key switch, compressor-running contact, and supervisor relay
K1sit in series with normally closed (NC) 24 V solenoids—loss of power anywhere shuts both gases immediately. On the oxygen line, lowering feed pressure to 3.0 bar with a 3.5 bar relief valve and a fixed Ø1.45 mm brass orifice physically limits oxygen flow to ~55 L/min, mechanically capping O₂ below 40% even if a needle valve sticks wide open. - Independent Safety Supervisor: A dedicated
Seeed XIAO ESP32-C3with its own I²C bus and ADCs independently monitorsS2,S3, oxygen feed pressure, and a 1 Hz heartbeat from the main controller. Its limits (36% O₂ trip, 1% cell disagreement, 3.3 bar O₂ feed ceiling) are compile-time constants enforced bystatic_assert. - Ambient Room Protection: An
ME2-O2sensor mounted high in the compressor room trips both gases if a helium or oxygen leak pushes room air outside 19.5–23.5% O₂.
3. Control Loop Stability Under Delay & Reciprocating Pulsation
Galvanic oxygen cells respond with a ~3–6 s time constant on top of pipe transport delay, while a piston compressor generates intake pulsation that can push oxygen-rich gas backward toward S1 (blowback). Standard PI loops easily wind up and overshoot under dead time.
OpenBlend tackles this in pure-C++ control logic (lib/obcore):
- Self-learning valve maps estimate each needle valve’s flow-per-step curve directly from the cells, eliminating expensive mass-flow controllers and placing the valves near target via feedforward before closing the loop.
- Automatic delay measurement & gain scheduling holds the loops on feedforward until the cells first detect gas, measures actual transport lag, and softens PI gains—keeping all six standard gases stable across
0.3to12 sof delay. - Separated UI and real-time control: The 7″ touchscreen (
Waveshare ESP32-S3) communicates over RS485 with a dedicatedESP32-S3valve node so display redraws or Wi-Fi dashboard traffic can never stall control loops. Furthermore,STARTis enforced in firmware to be accepted only at the physical machine, never remotely over Wi-Fi or USB (except in dry simulation mode).
4. Real-Gas Top-Offs Without Wasting Helium
Standard continuous blenders vent gas to atmosphere until the mix holds strictly in spec—wasting ~200 L of helium before a single 21/35 top-off even begins. OpenBlend’s rolling top-off lets the operator open the cylinder once the stream is close to target, tracks cumulative moles entering the cylinder via NIST compressibility tables (realgas.h) and a live cylinder temperature probe (DS18B20), and gently retargets the stream every 5 seconds so the final cooled cylinder lands on target while cutting vented helium to ~40 L.
5. Bridging Simulation to Physical Hardware (Design Review Lessons)
A key strength of OpenBlend is its software-in-the-loop discipline: all control, safety, and top-off math runs in 193 automated host tests against a simulated compressor plant before ever touching hardware.
Just as importantly, rigorous pre-build engineering review before first print and commissioning caught critical real-world subtleties that simulations alone miss:
- CAD tolerances & sealing: Ensuring external 3D-printed cell housings keep M8 hose-barb ports clear of O-ring sealing grooves, closing blind cross-passages in printed helium injectors, and sealing pipe-wall barb penetrations against compressor suction.
- Sample-rake hydraulics: Because dynamic pressure in a DN50 pipe at
2.6 m/sis only a few Pascals (and even lower with 70% helium), narrow2.5 mm IDsample tubing can starve cell flush rates—requiring larger-bore tubing or higher ΔP placement and bench verification. - Stagnant-gas supervisor traps & fault isolation: Ensuring external cell housings cannot trap oxygen-rich gas after shutdown and trick an auto-calibrating supervisor, keeping supervisor interlock sensing upstream of relay
K1, enabling hardware watchdogs, and isolating shared pressure-sensor signals between the valve node and supervisor. - Oxygen-service boundaries: Keeping pure-O₂ injector plumes diluted before contacting 3D-printed PETG elements, and protecting the ambient
S4cell from high-pressure sample-line overpressure.
Project Status & Safety Notice
OpenBlend v6 is currently an active R&D prototype transitioning from simulation and CAD verification into phased bench commissioning:
- Phase 0: Desk simulation with real boards and moving stepper valves (no gas).
- Phase 1–2: Hardware interlock verification, leak/relief/orifice flow testing, blowback calibration, and Nitrox/Trimix bench runs.
- Phase 3–4: Top-off validation and 30-fill acceptance testing against independent calibrated O₂ and helium analyzers.
Important engineering disclaimer: OpenBlend is an experimental DIY/R&D prototype, not a certified commercial gas blender. High-pressure oxygen and hypoxic breathing mixtures carry severe fire and life-safety risks. Any helium blending limit must be confirmed in writing with the compressor manufacturer (helium compresses hotter than air), oxygen-wetted hardware must be properly cleaned for oxygen service, and every filled cylinder must be independently analyzed for both oxygen and helium before diving.
Meta Description: How the OpenBlend v6 (Mixer K) engineering prototype solves the cost, precision, and helium-waste problems of continuous Nitrox and Trimix gas blending using 3D-printed static mixers, real-gas physics, and multi-layered safety.
