The Lateralus HHO Genesis project applies the same pipeline-first
philosophy behind the Lateralus programming language to physical energy systems.
Water flows in, electricity splits it into hydrogen and oxygen (oxyhydrogen / Brown's Gas),
and the resulting HHO gas flows through a pipeline of machines — torches, burners, heaters,
fuel cells — that convert it into useful work.
Every Genesis machine is controlled by Lateralus. The same pipeline operator |>
that transforms data in code now transforms energy in hardware — reading sensors, adjusting PWM duty cycles,
managing safety interlocks, and streaming telemetry through typed pipelines. Safety protocol codes and
compliance references follow industry standards (IEC 60079, NFPA 2); everything else runs on Lateralus.
The same |> that transforms data now transforms energy.
|> genesis_pipeline.lat
lateralus runtime
// Lateralus controls the full HHO energy pipeline
// Safety protocol codes (IEC 60079, NFPA 2) enforced at runtime
import { Electrolyzer, Bubbler, Torch } from "genesis/machines"
import { SensorArray, PWMController } from "genesis/hardware"
import { safety_interlock } from "genesis/compliance" // IEC 60079
fn run_genesis_pipeline(config: GenesisConfig) |> PipelineStatus {
config
|> init_sensors("temp", "pressure", "water_level", "h2_leak")
|> safety_interlock() // IEC 60079 compliance check
|> start_electrolyzer(volts: 12.0, amps_max: 30.0)
|> ramp_pwm(duty: 0.0 .. 0.85, over: 5.seconds)
|> monitor_stream(interval: 100.ms)
|> route_gas(through: "bubbler", to: "torch")
}
fn monitor_stream(state: SystemState, interval: Duration) |> SystemState {
state.sensors
|> read_all(interval)
|> validate(temp: ..< 85.celsius, pressure: ..< 15.psi)
|> match {
Safe(readings) => readings |> log_telemetry() |> adjust_pwm()
Warn(readings) => readings |> reduce_power(50.percent)
Fault(code) => code |> emergency_shutdown() // NFPA 2
}
}
◉ HHO GENESIS — CORE PIPELINE
schematic.lat
┌─────────────┐ ┌──────────────┐ ┌──────────────┐
│ WATER IN │───▶│ ELECTROLYZER │───▶│ BUBBLER / │
│ (H₂O) │ │ (DC Power) │ │ SCRUBBER │
└─────────────┘ └──────┬───────┘ └──────┬───────┘
│ │
2H₂O → 2H₂ + O₂ Filters KOH
│ residue &
│ prevents
│ flashback
│ │
▼ ▼
┌──────────────┐ ┌──────────────┐
│ FLOW METER │───▶│ TORCH / │
│ & CHECK │ │ BURNER / │
│ VALVE │ │ ENGINE │
└──────────────┘ └──────┬───────┘
│
2H₂ + O₂ → 2H₂O
│
▼
┌─────────────┐
│ CLEAN H₂O │
│ EXHAUST │
└─────────────┘
LATERALUS RUNTIME monitors every node via |> sensor pipelines
Safety interlocks per IEC 60079 · NFPA 2 compliance built-in
⚠ SAFETY — READ BEFORE BUILDING
- HHO gas is explosive (autoignition ~570°C / 1,058°F). Never store it — produce on-demand only.
- Always use a flashback arrestor (bubbler) between the electrolyzer and any ignition source.
- Work in well-ventilated areas. H₂ is lighter than air and rises quickly, but can pool in ceiling cavities.
- Use check valves rated for hydrogen service on all output lines.
- Electrolyte (KOH / NaOH) is caustic — wear gloves, goggles, and have neutralizing solution nearby.
- Never exceed rated amperage on your electrolyzer cells — overheating can warp plates and cause leaks.
- HHO flame temperature reaches ~2,800°C (5,100°F) at stoichiometric ratio — respect it.
- All Genesis machines enforce IEC 60079 and NFPA 2 safety protocols through Lateralus runtime interlocks.
Seven machines. Three tiers. One pipeline. All Lateralus-controlled.
GEN-1 :: CORE ELECTROLYZER
▸ TIER 1
🔋
The heart of every HHO system. A dry-cell electrolyzer that splits water into hydrogen and oxygen gas using DC current. Lateralus manages voltage ramp, current limiting, and thermal monitoring through typed sensor pipelines.
Type ........... Dry-cell stack (316L SS)
Plates ......... 7–21 neutral plates
Electrolyte .... KOH (28–30% solution)
Input .......... 12–48V DC, 10–30A
Output ......... 0.5–3.0 LPM HHO
Efficiency ..... ~85% Faraday efficiency
Controller ..... Lateralus runtime (|>)
ELECTROLYSIS
DRY-CELL
316L SS
LATERALUS
GEN-2 :: BUBBLER / SCRUBBER
▸ TIER 1
🫧
Critical safety component. Passes HHO through a water column to filter out KOH mist and acts as a flashback arrestor — if flame travels back, the water quenches it. Lateralus monitors water level and triggers refill alerts.
Type ........... Dual-chamber bubbler
Vessel ......... Borosilicate glass / HDPE
Water depth .... 6–8 inches minimum
Inlet .......... Below water line (submerged)
Outlet ......... Above water line (dry)
Arrestor ....... Sintered bronze disc
Monitor ........ Lateralus water-level pipe
SAFETY
FLASHBACK
FILTER
LATERALUS
GEN-3 :: HHO TORCH SYSTEM
▸ TIER 1
🔥
A precision oxyhydrogen torch for welding, brazing, cutting, and glasswork. Reaches ~2,800°C at stoichiometric mix. Lateralus controls flow rate and tip selection profiles.
Flame temp ..... ~2,800°C (stoichiometric)
Tips ........... #0 through #5 (swappable)
Gas input ...... 0.5–3.0 LPM HHO
Applications ... Welding, brazing, glass,
jewelry, soldering
Exhaust ........ H₂O vapor (clean)
Control ........ Lateralus flow pipeline
TORCH
WELDING
2800°C
LATERALUS
GEN-4 :: WORKSHOP WELDER
▸ TIER 2
⚡
Scaled-up electrolyzer + torch for continuous workshop use. Multi-stack cell design with Lateralus PWM control — sensor data flows through |> pipelines into real-time dashboards.
Cells .......... 3× dry-cell stacks
Plates ......... 21 plates per stack (63 total)
Input .......... 48V DC, 60A (PSU included)
Output ......... 6–10 LPM HHO
Controller ..... Lateralus PWM pipeline
Sensors ........ Temp, pressure, water level
Duty cycle ..... Continuous (water-cooled)
WORKSHOP
PWM
MULTI-STACK
LATERALUS
GEN-5 :: RADIANT HEATER
▸ TIER 2
🌡️
HHO-fueled catalytic/radiant heater for shop, greenhouse, or off-grid heating. Burns HHO through a ceramic element producing infrared heat. Lateralus manages thermostat cycling and solenoid control via pattern matching.
Burner ......... Ceramic honeycomb element
Heat output .... 5,000–15,000 BTU/hr
HHO input ...... 2–6 LPM
Ignition ....... Piezo-electric start
Exhaust ........ H₂O vapor (humidifies!)
Control ........ Lateralus thermo pipeline
Mounting ....... Wall / ceiling / portable
HEATING
RADIANT
OFF-GRID
LATERALUS
GEN-6 :: ENGINE SUPPLEMENT KIT
▸ TIER 2
🚗
On-demand HHO injection kit for internal combustion engines. Supplements the air-fuel mix with hydrogen. Lateralus runtime handles EFIE signal adjustment and MAP enhancement through sensor fusion pipelines.
Cell type ...... Compact dry-cell (6-plate)
Input .......... 12V from vehicle alternator
Draw ........... 10–20A
Output ......... 0.5–1.5 LPM HHO
Injection ...... Pre-throttle body / intake
Controller ..... Lateralus EFIE pipeline
Mounting ....... Under-hood bracket kit
VEHICLE
ICE
EFIE
LATERALUS
GEN-7 :: INDUSTRIAL STACK
▸ TIER 3
🏭
Full industrial-grade HHO generation system. Modular rack of electrolyzer stacks with Lateralus industrial control — typed pipelines manage startup sequencing, leak detection, auto-purge, and HMI dashboards.
Stacks ......... 6–12 modular dry-cells
Plates ......... 21–33 plates per stack
Input .......... 240V AC → rectified DC
Amperage ....... 100–300A total
Output ......... 20–60+ LPM HHO
Controller ..... Lateralus industrial runtime
Safety ......... H₂ leak sensor, auto purge,
pressure relief, E-stop
(IEC 60079 · NFPA 2)
INDUSTRIAL
LATERALUS
MODULAR
Real hardware control through typed pipelines. No Arduino. No PLC. Just |>
|> pwm_controller.lat
runs on genesis hardware
// Lateralus PWM controller for GEN-4 multi-stack welder
// Compiles to LLVM → bare-metal ARM target
import { INA219, DS18B20, MPX5700, FloatSwitch } from "genesis/sensors"
import { PWM, MOSFET } from "genesis/actuators"
struct StackReadings {
current: Amps,
temp: Celsius,
pressure: PSI,
water_ok: Bool,
}
fn control_loop(stacks: [Stack; 3]) |> Never {
loop {
stacks
|> read_sensors()
|> validate_ranges(
temp: ..< 80.celsius,
pressure: ..< 12.psi,
current: ..< 65.amps,
)
|> match {
AllGood(r) => r |> compute_duty() |> set_pwm()
OverTemp(r) => r |> reduce_duty(0.5) |> alert("thermal")
OverPress(r) => r |> vent_relief() |> alert("pressure")
LowWater => shutdown("water level critical")
LeakDetect => emergency_stop() // IEC 60079
}
|> telemetry_push(interval: 100.ms)
sleep(50.ms)
}
}
fn compute_duty(readings: [StackReadings; 3]) |> DutyCycle {
readings
|> avg_current()
|> pid_adjust(target: 55.amps, kp: 0.8, ki: 0.1, kd: 0.05)
|> clamp(0.0 .. 0.95)
}
Quick reference across all Genesis machines.
| MACHINE |
TIER |
INPUT POWER |
HHO OUTPUT |
PRIMARY USE |
EST. BUILD COST |
| GEN-1 Core Electrolyzer |
T1 |
12–48V DC, 10–30A |
0.5–3.0 LPM |
Gas generation |
$50–150 |
| GEN-2 Bubbler / Scrubber |
T1 |
— |
Passthrough |
Safety / filtration |
$20–60 |
| GEN-3 HHO Torch |
T1 |
— |
0.5–3.0 LPM |
Welding / brazing / glass |
$30–80 |
| GEN-4 Workshop Welder |
T2 |
48V DC, 60A |
6–10 LPM |
Continuous workshop welding |
$300–600 |
| GEN-5 Radiant Heater |
T2 |
Electrolyzer-fed |
2–6 LPM |
Space / greenhouse heating |
$150–400 |
| GEN-6 Engine Supplement |
T2 |
12V DC, 10–20A |
0.5–1.5 LPM |
ICE fuel supplement |
$100–250 |
| GEN-7 Industrial Stack |
T3 |
240V AC, 100–300A |
20–60+ LPM |
Industrial cutting / heating |
$2,000–8,000 |
From tap water to clean energy — step by step.
STEP 1 — WATER + ELECTROLYTE
Distilled or deionized water is mixed with potassium hydroxide (KOH)
electrolyte (~28–30% by weight). The KOH makes the water conductive without being consumed
in the reaction — it acts as a catalyst.
STEP 2 — ELECTROLYSIS (DC CURRENT)
DC current passes through stainless steel plates submerged in the electrolyte.
At the cathode, water molecules gain electrons and release hydrogen gas (H₂).
At the anode, water molecules lose electrons and release oxygen gas (O₂).
Lateralus controls the PWM duty cycle to maintain optimal voltage per cell gap.
STEP 3 — GAS COLLECTION
In a dry-cell design, gas collects in the sealed headspace and exits through
a single output port. Lateralus monitors pressure in real-time — if it exceeds safe limits,
the runtime triggers vent_relief() automatically.
STEP 4 — BUBBLER / SCRUBBER
Raw HHO passes through a water-filled bubbler: it washes out KOH mist and
acts as a flashback arrestor. Lateralus tracks water level via float sensor
and sends refill alerts through the telemetry pipeline.
STEP 5 — FLOW CONTROL + CHECK VALVE
A one-way check valve prevents backflow. Lateralus reads the flow meter and adjusts
the electrolyzer's output to match the downstream demand — the |> pipeline
balances production and consumption in real-time.
STEP 6 — COMBUSTION / USE
HHO is ignited at the point of use. At stoichiometric ratio, it burns at ~2,800°C.
The only product is water vapor (H₂O). No carbon, no soot, no NOx, no CO₂.
Lateralus logs every session — gas consumed, runtime, efficiency metrics — all queryable.
|> dashboard.lat
real-time telemetry
// Lateralus real-time telemetry dashboard for Genesis systems
fn dashboard(system: GenesisSystem) |> Stream<DashFrame> {
system.sensors
|> stream(interval: 200.ms)
|> map(|reading| {
DashFrame {
stack_volts: reading.voltage |> per_gap(),
stack_amps: reading.current,
cell_temp: reading.temp |> to_celsius(),
gas_pressure: reading.pressure,
gas_flow: reading.flow_lpm,
water_level: reading.water_pct,
h2_leak: reading.h2_ppm,
efficiency: reading |> faraday_efficiency(),
runtime: system.uptime,
}
})
|> broadcast(to: ["lcd", "web_ui", "log_file"])
}
◉ KEY CHEMISTRY
reference
ELECTROLYSIS (energy input):
2 H₂O + electrical energy → 2 H₂ + O₂
COMBUSTION (energy output):
2 H₂ + O₂ → 2 H₂O + energy (241.8 kJ/mol H₂)
KEY NUMBERS:
Stoichiometric ratio .... 2:1 (H₂:O₂ by volume)
Autoignition temp ....... ~570°C (1,058°F)
Flame temp (stoich) ..... ~2,800°C (5,100°F)
Min spark energy ........ 0.007 mJ
Flammable range ......... 4–95% H₂ in air
Energy per mole H₂ ..... 241.8 kJ (LHV)
1 liter H₂O yields ..... ~1,860 liters of HHO gas (STP)
ELECTROLYTE:
KOH (potassium hydroxide) — not consumed in reaction
Concentration ........... 28–30% by weight in DI water
FARADAY'S LAW:
Theoretical max: 0.4198 mL H₂ per amp per second
Practical efficiency: 75–92% (cell design dependent)
READY TO BUILD?
Full plans, BOMs, wiring diagrams, Lateralus controller code, and step-by-step assembly guides for every Genesis machine.
Where the HHO project is headed.
PHASE 1 — TIER 1 PLANS (NOW)
Complete build plans for GEN-1 (Electrolyzer), GEN-2 (Bubbler), and GEN-3 (Torch). Entry-level builds anyone can assemble with common parts and basic tools. Lateralus runtime code included.
PHASE 2 — TIER 2 SYSTEMS (Q3 2026)
Workshop-grade builds: GEN-4 (Welder), GEN-5 (Heater), and GEN-6 (Engine Kit). Full Lateralus PWM controllers, sensor fusion pipelines, and real-time dashboards.
PHASE 3 — TIER 3 INDUSTRIAL (2027)
Industrial stack with Lateralus industrial runtime — typed pipelines for startup sequencing, remote monitoring, modular cell racks, and full IEC 60079 / NFPA 2 compliance.
PHASE 4 — FUEL CELL INTEGRATION
Reverse the pipeline: use HHO with PEM fuel cells to generate electricity. Solar → electrolysis → H₂ storage → fuel cell → power. Full off-grid energy cycle, all managed by Lateralus.