Knowledge · Engine management

Closed-loop lambda control

Also: closed-loop fuel control, O2 control, fuel trim

Closed-loop lambda control compares measured lambda with target lambda and corrects the fuel quantity. Short-term trims correct immediately, long-term trims are learned permanently by the ECU.

How it works

The lambda sensor reports the actual mixture, and the ECU changes the injector pulse width until it matches the target. Factory cars with a catalytic converter often use a narrowband sensor around lambda 1. Its curve is very steep there, so it is usually run as a simple two-point controller. With a wideband sensor, by contrast, the ECU can control to any target lambda, including a rich mixture under load.

Haltech distinguishes two levels. The short-term trim acts immediately and is not stored. The long-term trim learns from the short-term trim and is stored when enabled. A gain setting determines how fast this happens.

Key settings

Enable conditions and correction limits are what matter:

  • Enable: Haltech lists minimum run time after start, coolant temperature, minimum and maximum rpm and optional throttle and manifold pressure limits.
  • Correction limits: in an HP Academy webinar example they are ±15 per cent at idle and ±10 per cent at part load, slightly narrower at high load. These are example values, not a general recommendation. According to HP Academy, factory systems typically run ±25 per cent.
  • Long-term trim: limited to 10 per cent in the same example.
  • Transients: a throttle rate limit stops the loop fighting acceleration enrichment.

In practice

Closed-loop lambda control is enabled after the calibration, not instead of it. With a well-tuned VE table, HP Academy would like to see corrections of only about ±2 to 3 per cent. Larger corrections in the log show where the table is still off. Learned long-term trims should be checked for outliers before applying them to the main table.

Haltech offers a rich bias for long-term trim. At 3 per cent the ECU learns 3 per cent richer than target and the short-term trim removes it again. If the sensor fails, the engine runs on the learned, slightly richer mixture.

Common mistakes

  • Closed-loop lambda used as a substitute for a proper VE table.
  • Correction limits set too wide at full load.
  • Sensor in an unsuitable position: for turbo engines HP Academy gives about 500 mm after the turbine outlet and advises against fitting the sensor below horizontal, so condensation does not damage it.
  • Only one sensor for both banks on a V engine. HP Academy prefers one sensor per bank.

Want this on your car?

Calibration remotely via datalogs or on the dyno, with Link, Haltech, MaxxECU, Ecumaster or EcuTek. Send me vehicle, ECU and goal.

Get in touch

Last updated:

Kronshorst (Brunsbek) · near Hamburg, Germany

Contact

Project, datalog or question: get in touch directly by phone, WhatsApp or email.

What I need for a quote

  • Car, engine and year
  • ECU: make, model, firmware (or factory ECU)
  • Modifications: turbo, injectors, fuel pump, sensors, intercooler
  • Fuel, e.g. 98 RON or E85
  • Use: road, track days or motorsport
  • Existing calibrations and datalogs; has another tuner worked on it?
  • Preferred: dyno or remote

Enquiry by emailEnquiry via WhatsApp

The buttons open a pre-filled message with these points.