Basic function of engine control unit
Basic Functions
• The operation of every computer can be divided into four basic functions.
• Input. Receives voltage signals from sensors
• Processing. Performs mathematical calculations
• Storage. Includes short- and long-term memory
• Output. Controls an output device by either turning it on or off
P1: Understand the importance of engine control
ensure that an engine operates at near-optimal conditions at all times.
o Increases fuel efficiency by optimizing combustion.
o Reduces harmful emissions to meet environmental standards.
o Improves engine performance and drivability.
o Enhances reliability and safety through continuous monitoring
All this is achieved using an Engine Control Unit (ECU) that collects data from sensors and commands
actuators accordingly.
P2: Explain the basic terms of control and open-loop and closed-loop
control systems
Open loop :
a simple feedback loop with a single-input/single-output (SISO) system, which attempts to control only
one variable.
An open-loop system performs an action without feedback from the output. The controller sends a fixed
command without checking the result.
Example:
Cold start enrichment.
On/off fuel pump.
Closed-loop control system
consist of several such loops that interact in a complex manner. For example, an electronic engine-
control system includes many controlled variables, actuators, and sensors; in fact, they are multi-
input/multi-output (MIMO) control systems.
In this system, feedback from the output is measured and compared with the desired value. The
controller then adjusts the input to correct any deviation.
Example:
In a fuel-injected engine, the ECU uses data from the oxygen sensor in the exhaust to correct the air–fuel
ratio continuously.
On demand fuel pump
P3: Describe the operation and the main components of the engine control
unit (ECU)
In the ECU, input signals from various sensors (digital, analog, and pulse-shaped) enter the signal
conditioning stage, where they are filtered and adjusted for processing. Analog signals are then converted
into digital form by the A/D converter so the microcontroller can read them.
The microcontroller is the ECU’s brain — it processes the data using stored programs and memory (RAM,
ROM, and Flash-EPROM) to make control decisions. It communicates with other systems through the
CAN interface and stores permanent data, such as fault codes or learned values, in the EEPROM.
The microcontroller’s commands go to the driver stages, which amplify signals to operate actuators like
valves, motors, or injectors. The monitoring module works in parallel to detect faults and trigger safety
actions if needed.
Finally, the power supply ensures all ECU components receive stable voltage, keeping the entire control
and communication process reliable during vehicle operation.
Input Signals:
Sensors send electrical signals through wiring harnesses to the ECU. These can be:
Analog signals – continuous voltages (e.g., air mass, pressure, temperature).
Digital signals – on/off or pulse-type signals (e.g., switches, Hall sensors).
Pulse-shaped signals – frequency-based inputs (e.g., RPM signals from inductive sensors).
Analog Input Signals
Represent continuous physical quantities.
Converted into digital form using an Analog-to-Digital Converter (A/D converter) within the ECU.
Digital Input Signals
Have only two states: High (1) or Low (0).
Used for simple on/off signals or pulses from sensors (e.g., rotational speed).
Pulse-Shaped Input Signals
Contain RPM or reference information from inductive sensors.
ECU circuitry filters out noise and converts these pulses into clean digital square waves.
Signal Conditioning
Protects ECU circuits by limiting and filtering incoming signals.
Removes electrical interference before signals reach the microcontroller.
Sometimes done inside sensors themselves.
Microcontroller
The microcontroller is the main control unit in an ECU (Electronic Control Unit).
It includes CPU, RAM, ROM, timers, serial interfaces, and peripheral assemblies—all on one chip.
Quartz-controlled timing ensures precise operation.
Program Storage
Stored in Read Only Memory (ROM, EPROM, or Flash-EPROM), which holds variant-specific,
unchangeable data.
Used for regulating open- and closed-loop control functions.
Program memory may be internal or external depending on the application.
ROM
ROM contains permanent data defined during manufacturing.
It cannot be changed later and has limited capacity.
For complex applications, extra ROM is added externally.
Flash-EPROM (FEPROM)
Flash-EPROM can be erased electrically, not with UV light.
Erased via serial interface and includes ROM for programming routines.
Integrated into microcontrollers and replaces conventional EPROM due to ease of use.
Variable Data or Main Memory (RAM)
RAM stores variable data like computations and signal values.
Volatile memory—data is lost when power is off.
Some RAM areas are permanently powered to retain adaptation data (e.g., engine condition).
EEPROM
Non-volatile memory retaining data even if power is off.
Used for data that must not be lost (e.g., immobilizer codes or learned adaptations).
Monitoring Module
ECU includes a monitoring module working with the microcontroller to detect and respond to faults
automatically.
Output Signals
Microcontroller controls actuators through driver stages.
Drivers amplify signals to operate high-power components (like fans or valves).
Protection against shorts, overloads, or destruction.
Faults are reported back to the microcontroller.
Communication within the ECU
Data transferred using address/data buses.
8-, 16-, or 32-bit buses used depending on system complexity.
Data and addresses share lines (multiplex system).
Serial interfaces used for slower data (like EEPROM).
What is meant by signal processing
The term processing is used to describe how input voltage signals received by a computer are handled
through a series of electronic logic circuits maintained in its programmed instructions. These logic
circuits change the input voltage signals, or data, into output voltage signals or commands.
• The ECU is the switching center governing all of the functions and sequences regulated by the engine
management system.
• The control algorithms are executed by the microcontroller. The input signals from sensors and
interfaces linking other systems (from CAN bus, etc.) serve as the input parameters.
• The processor runs backup plausibility checks on these data. The ECU program supports calculation of
the output signals used to control the actuators.
M1: Compare between open-loop and closed-loop control systems
Feature Open-loop Closed-loop
Feedback None Uses feedback
Accuracy Less accurate Highly accurate
Example Carbureted fuel system EFI with O₂ sensor
Response Fixed Self-adjusting
Cost Lower Higher
Reliability Simple, fewer components More complex, needs sensors
P4 – Describe the basics of electrical and electronic measuring devices
Fused Jumper Wire
• A fused jumper wire is used to check a circuit by bypassing the switch or to provide a power or ground to
a component. A fused jumper wire, also called a test lead.
Test Light
• A 12 volt test light is one of the simplest testers that can be used to detect electricity. A test light is
simply a lightbulb with a probe and a ground wire attached.
Continuity test Lights
• A continuity light is similar to a test light but includes a battery for self-power. A continuity light
illuminates whenever it is connected to both ends of a wire that has continuity or is not broken.
High-impedance test Light
• A high-impedance test light has a high internal resistance and therefore draws very low current in order
to light. High-impedance test lights are safe to use on computer circuits because they will not affect the
circuit current in the same way as conventional 12 volt test lights when connected to a circuit.
Logic Probe
• A logic probe is an electronic device that lights up a red (usually) LED if the probe is touched to battery
voltage. If the probe is touched to ground, a green (usually) LED lights.
Digital Multimeter
• Measuring volt
• Measuring ampere
• Measuring resistance
Inductive ammeter
• Inductive ammeters do not make physical contact with the circuit. They measure the strength of the
magnetic field surrounding the wire carrying the current, and use a Hall-effect sensor to measure
current.
Diode Check
• Diode check is a meter function that can be used to check diodes including light-emitting diodes
(LEDs).
Pulse Width
• Pulse width is the amount of time by percentage that a signal is on compared to being off.
• Pulse width is used to measure the on time for fuel injectors and other computer-controlled solenoid
and devices.
Frequency
• Frequency is a measure of how many times per second a signal changes. Frequency is measured in a
unit called hertz, formerly termed “cycles per second.”
Resolution, Digits, and Counts meter
• Resolution refers to how small or fine a measurement the meter can make. By knowing the resolution of
a DMM, you can determine whether the meter could measure down to only 1 volt or down to 1 millivolt
(1/1,000 of a volt).
Accuracy meter
• Accuracy is the largest allowable error that will occur under specific operating conditions. In other
words, it is an indication of how close the DMM’s displayed measurement is to the actual value of the
signal being measured.
Oscilloscope
• An oscilloscope is a visual voltmeter with a timer that shows when a voltage changes.
M2: Compare the different types of sensors used in the electronic engine
control system
Types of sensors:
A ) temperature sensors :
o Engine temperature sensor :
This is installed in the coolant circuit. The engine management uses its signal when calculating the
engine temperature (measuring range – 40...+ 130 °C).
o Air temperature sensor :
This sensor is installed in the air-intake tract. Together with the signal from the boost-pressure sensor,
its signal is applied in calculating the intake-air mass. Apart from this, desired values for the various
control loops (e.g. EGR, boost-pressure control) can be adapted to the air temperature (measuring
range – 40...+ 120 °C).
o Oil temperature sensor
The signal from this sensor is used in calculating the service interval (measuring range – 40...+ 170
°C).
o Fuel-temperature sensor
• Is incorporated in the low-pressure stage of the diesel fuel circuit. The fuel temperature is used in
calculating the precise injected fuel quantity (measuring range – 40...+ 120 °C).
o Exhaust gas temperature
This sensor is mounted on the exhaust system at points which are particularly critical regarding
temperature. It is applied in the closed-loop control of the systems used for exhaust-gas treatment. A
platinum measuring resistor is usually used (measuring range – 40...+ 1000 °C).
B) Engine speed sensors :
o Inductive
o active speed sensor
o AMR (anisotropic magneto resistive)
o Hall effect
Operation
1. Inductive : As the toothed wheel rotates, the air gap between the sensor and teeth change This
change in the air gap causes the magnetic field (magnetic flux) from the permanent magnet to expand
and contract through the coil windings This fluctuating magnetic field induces an alternating current
in the coil
2. Hall effect : A constant electric current is passed through a thin semiconductor material (the Hall
element) within the sensor and there is a permanent magnet embedded with sensor , when the target
wheel becomes near it absorbs magnetic flux of magnet , so sensor send allow electric current moves
as signal when magnetic flux vanish .
3. AMR : anisotropic magneto resistance which means it change it resistance by changing the
direction of the magnetic field
4. Active speed sensor: the most sensitive type especially in low speed depends on magneto static
principle
C) phase sensor
Detect camshaft position (not speed) to detect precisely the timing
D) Air mass sensors:
o Hot film air mass meter
o Micromechanical pressure sensor
Hot film :
the sensor contains a thin platinum wire that is heated by an electrical current to a specific temperature,.
A second wire, a thermistor, measures the actual temperature of the incoming air to provide a reference
point As air flows past the heated wire, it cools the wire down, removing heat from it. The rate at which the
wire cools is directly proportional to the mass of air flowing past it.
micromechanical :
These sensors have conductive sensing elements (piezo resistors) integrated onto the surface of a
diaphragm, often arranged in a Wheatstone bridge circuit. When pressure causes the diaphragm to
deform, the resistors experience strain, which changes their electrical resistance. This change in
resistance produces a proportional voltage output, which is then processed into a pressure
measurement.
High-pressure sensors
• High-pressure sensors are used in a motor vehicle to measure fuel pressure and brake fluid pressure,
• Rail-pressure sensor for gasoline direct injection (pressure up to 200 bar)
• Rail-pressure sensor for common-rail diesel-injection system (pressure up to 2000 bar)
• Brake-fluid pressure sensor in the hydraulic modulator of the Electronic Stability Program (pressure up
to 350 bar).
E) Oxygen sensor:
1- The finger type, also called thimble type, is the traditional oxygen sensor design made from
zirconium dioxide shaped like a small finger. It works by comparing the oxygen in the exhaust gas
with the outside air. When the mixture in the engine is rich, the sensor produces a high voltage around
0.9 volts, and when the mixture is lean, the voltage drops to about 0.1 volts. This type is called a
narrow-band sensor because it only tells the ECU whether the mixture is rich or lean, not the exact
air-fuel ratio. Finger type sensors are slower to respond and are mostly found in older vehicles.
2- The planar O₂ sensor is a more modern design that uses the same zirconium dioxide principle but
in a flat, layered structure. It often includes an integrated heater that allows it to reach operating
temperature quickly, giving the ECU faster and more accurate readings. Like the finger type, it is also a
narrow-band sensor, producing a voltage between 0.1 and 0.9 volts depending on the air-fuel mixture.
The planar design is more compact, heats up faster, and is widely used in modern gasoline engines to
improve fuel efficiency and reduce emissions.
3- The planar broadband (wideband) O₂ sensor measures the exact air-fuel ratio instead of just rich
or lean like a narrow-band sensor. It has two main parts: a sensing cell that detects the oxygen in the
exhaust, and a pump cell that controls the oxygen level inside the sensor. If the mixture is rich, the
pump cell removes oxygen from the sensing chamber, and if the mixture is lean, it adds oxygen. The
sensor’s electronics measure the amount of current the pump cell uses to keep the sensing cell at a
constant reference voltage, which corresponds to the ideal stoichiometric ratio. This current tells the
ECU precisely how rich or lean the mixture is, allowing very accurate fuel control, lower emissions,
and better engine efficiency—especially important in modern engines with direct injection or
turbocharging.
f)Piezoelectric knock sensors
• A fixed bolted connection satisfying the following requirements:
• The fastening bolts must be tightened to a defined torque
• The contact surface and the bore in the engine block must comply with prespecified quality
requirements
• No washers of any type may be used for fastening purposes
AD/CONVERTER
Analog To Digital Conversion Steps
The conversion from analog signal to a digital signal in an analog to digital converter is explained below
using the block diagram given above.
Sample
The sample block function is to sample the input analog signal at a specific time interval. The samples
are taken in continuous amplitude & possess real value but they are discrete with respect to time.
The sampling frequency plays important role in the conversion. So it is maintained at a specific rate. The
sampling rate is set according to the requirement of the system.
Hold
The second block used in ADC is the ‘Hold’ block. It has no function. It only holds the sample amplitude
until the next sample is taken. The hold value remains unchanged till the next sample.
Quantize
This block is used for quantization. It converts the analog or continuous amplitude into discrete
amplitude.
The on hold continuous amplitude value in hold block goes through ‘quantize’ block &
becomes discrete in amplitude. The signal is now in digital form as it has discrete time & discrete
amplitude.
Encoder
The encoder block converts the digital signal into binary form i.e. into bits.
As we know that the digital devices operate on binary signals so it is necessary to convert the digital
signal into the binary form using the Encoder.
This is the whole process of converting an Analog signal into digital form using an Analog to Digital
Converter. This whole conversion occurs in a microsecond.
Crystal Oscillator in Control Systems
1. Definition
A crystal oscillator is an electronic circuit that uses the mechanical resonance of a quartz crystal to
generate a precise and stable frequency signal.
It converts the crystal’s natural vibration into an electrical oscillation.
2. Function
In control systems (such as in an ECU, microcontroller, or sensor control unit), the crystal oscillator
provides the timing signal (clock) that controls how fast the processor or circuit operates.
It basically:
• Sets the operating speed of the microcontroller or digital system.
• Ensures accurate timing for processes, calculations, and communication signals.
3. Principle of Operation
• A quartz crystal vibrates when an AC voltage is applied across it (this is called the piezoelectric
effect).
• The vibration frequency depends on the shape, size, and cut of the crystal.
• The circuit around it amplifies and feeds back the signal so that it keeps oscillating at that precise
frequency.
This produces a stable square-wave or sine-wave output.
4. Role in Control Units
In systems like automotive ECUs or controllers, the crystal oscillator:
• Provides a reference clock for the microprocessor.
• Synchronizes the operation of all internal circuits.
• Maintains accurate timing for fuel injection, ignition, communication (CAN, LIN), etc.
• Ensures stable sensor sampling and PWM signal generation.
Identify the different actuators used in the electronic engine control
system.
1) Fuel Pump
Function:
The fuel pump supplies fuel from the fuel tank to the engine at the required pressure so the injectors can
spray fuel correctly.
Operation theory:
When the ignition key is turned ON, the ECU energizes the fuel-pump relay. This allows battery power to
reach the electric DC motor inside the fuel pump. The motor spins an internal impeller or turbine,
drawing fuel from the tank and pressurizing it. The pressurized fuel is sent through the fuel lines to the
fuel rail. A pressure regulator keeps the pressure within the specified range to ensure stable engine
operation.
2) Fuel Injector
Function:
The injector delivers a precise amount of fuel into the intake manifold or combustion chamber for proper
air-fuel mixing.
Operation theory:
The injector is an electrically controlled solenoid valve. When the ECU sends an electrical pulse, current
flows through the injector’s electromagnetic coil. This creates a magnetic field that lifts the needle valve
against spring force, allowing pressurized fuel to spray through the nozzle. When the ECU cuts the signal,
the magnetic field collapses, the spring closes the needle, and fuel flow stops. The fuel quantity depends
on how long the injector stays open.
3) Throttle Body (Electronic Throttle)
Function:
The throttle controls the amount of air entering the engine, which determines engine speed and power.
Operation theory:
In electronic throttle systems, the accelerator pedal position sensor sends a signal to the ECU when the
driver presses the pedal. The ECU processes this signal and commands an electric motor inside the
throttle body. This motor rotates the throttle plate to the required angle. Throttle position sensors provide
feedback to ensure accurate control. This system improves fuel efficiency, emissions control, and engine
response.
4) Idle Control Valve (ICV)
Function:
The idle valve maintains a stable engine idle speed when the accelerator pedal is not pressed.
Operation theory:
When the engine is idling, the throttle plate is nearly closed. The idle control valve allows a controlled
amount of air to bypass the throttle plate. The ECU adjusts the valve opening using a stepper motor or
solenoid based on engine conditions such as temperature, load, or air-conditioning use. By regulating
bypass air, the ECU keeps engine speed steady under varying conditions.
5) EGR Valve
Function:
The Exhaust Gas Recirculation (EGR) valve reduces harmful NOx emissions by lowering combustion
temperature.
Operation theory:
The ECU opens the EGR valve under specific operating conditions, such as light load and warm engine.
When opened, a portion of exhaust gas is redirected back into the intake manifold. This exhaust gas
displaces some oxygen in the combustion chamber, reducing peak combustion temperature. EGR valves
may be vacuum-operated or electronically controlled, with position feedback to ensure accurate flow.
6) Ignition Coil
Function:
The ignition coil generates the high voltage needed to create a spark at the spark plug.
Operation theory:
The ignition coil works on electromagnetic induction. When current flows through the primary winding, a
magnetic field builds up. When the ECU suddenly cuts the current, the magnetic field collapses rapidly.
This induces a very high voltage in the secondary winding, often tens of thousands of volts. This high
voltage is sent to the spark plug, producing a spark that ignites the air-fuel mixture.
7) Purge Valve (EVAP System)
Function:
The purge valve controls fuel vapor flow from the charcoal canister to the engine intake.
Operation theory:
Fuel vapors from the fuel tank are stored in the charcoal canister. When engine conditions are suitable,
the ECU activates the purge valve by supplying current to its solenoid. This opens the valve, allowing
stored fuel vapors to be drawn into the intake manifold and burned during combustion. When de-
energized, the valve closes to prevent uncontrolled vapor flow.
8) Catalytic Converter
Function:
The catalytic converter reduces harmful exhaust emissions before they exit the vehicle.
Operation theory:
The converter contains a ceramic or metallic substrate coated with precious metals such as platinum,
palladium, and rhodium. As hot exhaust gases pass through, chemical reactions occur. Carbon
monoxide and hydrocarbons are oxidized into carbon dioxide and water, while nitrogen oxides are
reduced into nitrogen. These reactions occur without moving parts and depend on high temperature and
proper air-fuel ratio.
Illustrate operation theory of ignition, injection, and exhaust gas systems
Ignition system:
Injection system:
EGR system:
Idle system:
Effect of ignition and injection timing on engine performance
Ignition Timing Control System
The ignition timing system controls when the spark plug fires during engine operation. The ECU uses the
crankshaft position sensor to determine engine speed and position, which form the base timing
reference. Engine load and temperature sensors modify the timing to prevent knock and ensure stable
combustion. Battery voltage affects coil dwell time to maintain sufficient spark energy. The knock sensor
detects abnormal combustion and causes the ECU to retard timing to protect the engine. During
cranking, fixed timing is used, while during normal operation timing is continuously optimized.
Fuel Injection Control System
The fuel injection system controls the amount of fuel delivered to the engine. The ECU synchronizes
injector operation using crankshaft position signals and calculates base injection time from engine speed
and load. Temperature and throttle position sensors provide fuel enrichment during cold start and
acceleration. Battery voltage compensation ensures accurate injector opening. During deceleration or
overrun, fuel injection is cut off. Oxygen sensor feedback fine-tunes the air-fuel mixture during normal
driving.
EGR Control System
The EGR system reduces exhaust emissions by recirculating exhaust gases into the intake manifold. The
ECU enables EGR only when the engine is warm and operating under light to medium load. Inputs from
engine load, speed, throttle position, and temperature sensors determine when EGR can operate safely.
Feedback sensors confirm correct gas flow. Under idle, cold start, or high load conditions, the EGR valve
remains closed to maintain engine performance.
Idle Speed Control System
The idle speed control system maintains stable engine speed when the throttle is closed. The ECU
detects idle conditions using the throttle position sensor and monitors engine speed continuously.
Engine temperature and accessory loads such as air conditioning influence the target idle speed. The idle
control valve is adjusted to increase or decrease air bypass, keeping idle speed stable under changing
engine loads.
Effect of EGR and catalytic converter on engine performance
Effect of the EGR System on Engine Performance:
The EGR system reduces NOx emissions by lowering peak combustion temperature
through recirculating a controlled amount of exhaust gas into the intake air. This
temperature reduction limits NOx formation and, under light to medium load conditions,
helps reduce fuel consumption by decreasing throttling (pumping) losses. EGR operates
only when the engine is warm and at part load, and it is disabled during idle, cold start,
and high load to avoid rough running and power loss. When properly controlled, EGR
improves emissions with minimal effect on engine performance.
Effect of the Catalytic Converter on Engine Performance:
The catalytic converter reduces harmful exhaust emissions by converting CO, HC, and
NOx into less harmful gases without affecting the combustion process. Under normal
conditions, it has little to no effect on engine power or fuel consumption. However, if the
converter becomes clogged or damaged, exhaust back pressure increases, which can
lead to reduced engine power, poor fuel economy, and overheating. Overall, the catalytic
converter improves emission quality while maintaining normal engine performance.
What is CAN bus?
CAN bus (Controller Area Network) is a communication system used in vehicles/machines to enable
ECUs (Electronic Control Units) to communicate with each other - without a host computer. For example,
the CAN bus enables quick and reliable sharing of information between your car's brakes and engine.
If we zoom in, an ECU consists of three primary elements:
• Microcontroller: The MCU is the brain of the ECU - it interprets incoming CAN messages and
decides what messages to transmit. For example, a sensor might be programmed to measure and
broadcast oil temperature at 5 Hz
• CAN controller: The controller is typically integrated in the MCU and ensures all communication
adheres to the CAN protocol (message encoding, error detection, arbitration etc.) - removing
complexity from the MCU
• CAN transceiver: The CAN transceiver connects the CAN controller to the physical CAN wires,
converting controller data into differential signals for the CAN bus system and vice versa. It also
provides electrical protection
CAN bus system message priority
In a CAN bus system, message priority is defined by the message identifier (ID). Each ECU sends data
with a unique ID, and the lower the ID value, the higher the priority. When multiple ECUs transmit at
the same time, the bus uses bit-by-bit arbitration based on dominant (0) and recessive (1) signals; the
message with more dominant bits (lower ID) continues, while others stop and retry later. This ensures
that critical systems like braking and engine control always transmit first, without data collision or loss.
Noise elimination in can bus system
In a CAN bus system, noise is minimized mainly by using differential signaling on two wires called CAN
High (CAN-H) and CAN Low (CAN-L). Data is transmitted as the voltage difference between the two
lines, not as an absolute voltage to ground, so any external electrical noise affects both wires equally and
is canceled out at the receiver inside each ECU. In addition, CAN uses twisted-pair wiring, which further
reduces electromagnetic interference, and termination resistors (typically 120 Ω at each end of the
bus) to prevent signal reflections. The CAN protocol also includes error detection mechanisms such as
CRC checks, bit monitoring, and automatic retransmission.
CRC Function (what it does)
CRC (Cyclic Redundancy Check) is used in the CAN bus to make sure the data is correct. Its main job is
to detect errors that may happen during data transmission because of noise or interference. It helps the
system trust that the received message is not damaged.
CRC Operation (how it works)
When an ECU sends a CAN message, it calculates a CRC value from the message data and sends this
value with the message. The receiving ECU calculates the CRC again using the same data. If both CRC
values are the same, the message is accepted. If they are different, the message is considered wrong, an
error is detected, and the message is sent again automatically according to ISO 11898.
Fuel Trim
Fuel trim is how the engine computer adjusts the amount of fuel to keep the air-fuel mixture correct. The
engine control unit (ECU) watches the oxygen sensor in the exhaust and adds or removes fuel to reach
the ideal mixture (about 14.7:1 for gasoline).
Short-Term Fuel Trim (STFT) and Long-Term Fuel Trim (LTFT)
Short-Term Fuel Trim (STFT) is the fast, instant correction the engine computer makes to fuel injection.
The ECU constantly reads the oxygen sensor and quickly adds or removes fuel to keep the air-fuel mixture
correct. STFT changes all the time, moving up and down while the engine is running. A positive STFT
means the ECU is adding fuel (mixture is lean), while a negative STFT means it is removing fuel (mixture
is rich).
Long-Term Fuel Trim (LTFT) is the slow, learned correction. If the ECU sees that STFT keeps correcting
in the same direction for a long time, it stores this correction as LTFT. This helps the engine stay balanced
during normal driving without relying too much on fast corrections. LTFT changes slowly and represents
engine condition over time, such as small vacuum leaks, injector wear, or aging sensors.
Simple example:
If a small vacuum leak causes the engine to run lean, STFT will keep adding fuel. After some time, the
ECU saves this correction as LTFT, and STFT goes back closer to zero.
three-way catalytic converter operation
A three-way catalytic converter reduces vehicle emissions through both oxidation and reduction
reactions. It oxidizes hydrocarbons (HCs) and carbon monoxide (CO) into harmless gases, and reduces
nitrogen oxides (NOₓ) into nitrogen and oxygen. The oxygen required for oxidation comes either from the
exhaust gas or from NOₓ, depending on the air/fuel mixture.
At the ideal air-fuel ratio (λ = 1), there is a balance between oxidation and reduction: residual oxygen and
oxygen from NOₓ allow complete conversion of HCs and CO, while NOₓ is simultaneously reduced. The
catalytic converter can also store and release oxygen using cerium oxide in its substrate, which helps
compensate for minor fluctuations in the mixture. However, if the mixture is constantly lean (λ > 1), HCs
and CO are oxidized by excess oxygen and cannot reduce NOₓ, so NOₓ is emitted. If the mixture is
constantly rich (λ < 1), NOₓ is reduced, but leftover HCs and CO are released due to insufficient oxygen.
The total emissions depend on the untreated exhaust concentration and the converter’s ability to convert
pollutants, both of which are controlled by λ.