Wideband · lambda · AFR
Wideband O2 sensor wiring: controller, ECU and ground
A wideband sensor needs a controller: it heats the sensor, runs its pump cell and turns the result into a 0–5 V signal the ECU can log. The sensor plugs into the controller; you wire the controller’s power, its grounds and its analog output.
Open the editor · ▶ Run the live demo
The connections
- Power: switched +12 V through its own fuse (the size the controller maker gives, typically 5–10 A — the sensor heater draws several amps while warming up).
- Power ground: to the engine or the ECU ground point with a proper wire.
- Signal ground (if the controller has one): to the ECU sensor ground, next to the analog input.
- Analog output → a spare ECU analog input; set the ECU to the same 0–5 V scale as the controller (for example 0 V = 10 AFR, 5 V = 20 AFR).
Why ground matters here
With a 10–20 AFR scale over 5 V, each volt is 2 AFR. If the controller grounds to the body and the ECU measures against its sensor ground, a 0.1 V difference between the two shifts the reading by 0.2 AFR — enough to tune a car lean. A separate signal ground, or an ECU input that reads the difference between two wires, removes the error.
Common mistakes
- Heating a cold sensor before the engine starts — water in the exhaust can crack it. Many controllers wait; otherwise feed them from a circuit that is live only with the engine running.
- The controller’s scale and the ECU calibration do not match — the log looks plausible but is wrong.
- Splicing the sensor cable — it changes the calibration of the sensor’s trim resistor; use the extension made for it.
- Sensor mounted where it collects condensation — fit it above horizontal, after the turbo, away from exhaust leaks.
Wire it in WireForge
- Open the “ECU fuel injection” demo: it has an ECU, a lambda sensor and a sensor ground.
- Add the controller as a Custom block with pins +12 V, GND, SIG GND and AFR OUT.
- Feed +12 V through a fuse, take its power ground to the ECU ground point and its signal ground to the ECU sensor ground.
- Simulate and click the ground wires: the simulator shows the voltage lost on each one — the offset the ECU would read.
Questions
Can I use the narrowband sensor wiring for a wideband?
No. A narrowband sensor gives 0–1 V on its own; a wideband sensor needs its controller, which has its own power, grounds and output.
Should the ECU read the controller’s analog or digital output?
Either works if the ECU supports it. Analog is the most common; make sure both ends use the same scale.
Why does my wideband read differently from the gauge?
Usually a ground offset or a scale mismatch. Compare the voltage at the ECU pin with what the controller says it is sending.