Automotive sensors: MAP, MAF, O2, knock, crank position
How MAP, MAF, oxygen (narrow- and wide-band), knock and crankshaft-position sensors work and what the ECU does with them, with speed-density air-flow, fuel-per-injection, tooth-frequency, lambda and knock-frequency numericals.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
An engine ECU is only as good as the numbers it receives. To meter fuel within about 1 % of the stoichiometric ratio and time the spark to within a degree, it must know how much air is entering, where the crankshaft is, whether the mixture is rich or lean and whether the engine is knocking. These five sensors — MAP, MAF, oxygen, knock and crank position — are behind most driveability complaints and fault codes.
Key ideas
MAP (manifold absolute pressure) sensor. Measures the absolute pressure in the intake manifold, i.e. pressure referred to a sealed vacuum, not to atmosphere. A thin silicon diaphragm with piezoresistive strain gauges in a bridge gives an output of typically about 0.5–4.5 V. At idle a naturally aspirated petrol engine has a MAP of roughly 30–40 kPa; at wide-open throttle it approaches atmospheric (about 100 kPa at sea level); a turbocharged engine goes above atmospheric. MAP is a direct indicator of engine load. In a speed-density system the ECU calculates air mass from MAP, intake air temperature, engine speed and a stored volumetric-efficiency map.
MAF (mass air flow) sensor. Placed between the air filter and throttle, it measures air mass flow directly. In the common hot-wire or hot-film type, an element is kept at a fixed temperature above intake air temperature; the electrical power needed to do so rises with the mass flow rate (King's law, non-linear). Because it measures mass, it automatically accounts for air density, altitude and changes in volumetric efficiency (wear, valve timing). It must see smooth flow, and contamination or unmetered air leaks after it cause errors.
Oxygen (lambda) sensor. Mounted in the exhaust before (and another after) the catalytic converter.
- Narrow-band zirconia: a ZrO₂ ceramic thimble with platinum electrodes, exhaust on one side and reference air on the other. At operating temperature (above about 300–350 °C, so most are electrically heated), oxygen ions conduct through the ceramic and a Nernst voltage appears: about 0.8–0.9 V when rich (little exhaust oxygen) and about 0.1 V when lean, switching sharply at λ = 1. It tells the ECU only "rich" or "lean", so closed-loop control makes the mixture oscillate about stoichiometric.
- Wide-band (planar, pumping cell): measures the actual λ over a wide range by the current needed to pump oxygen into or out of a measuring chamber; used for lean-burn and diesel engines.
- Titania: a resistive type whose resistance changes with oxygen content (less common).
- The downstream sensor monitors catalyst efficiency for on-board diagnostics.
Knock sensor. Knock is spontaneous auto-ignition of the unburnt end gas after the spark, which sets up pressure oscillations in the chamber (typically about 5–15 kHz depending on bore). A piezoelectric accelerometer bolted to the block picks up this vibration. The ECU filters the signal in a window around TDC, compares it with a threshold, and retards timing on the knocking cylinder, then advances it again step by step. This lets the engine run near the timing for best torque with higher compression ratio. Knock is different from pre-ignition, where the charge is ignited by a hot spot before the spark.
Crankshaft position sensor (CKP). Reads a toothed reluctor wheel, commonly "60-2" (60 equally spaced positions with two teeth missing to mark a reference). Two types:
- Inductive (variable reluctance): a magnet and coil; produces an AC voltage whose amplitude and frequency rise with speed. Needs no supply but gives a weak signal at cranking speed.
- Hall-effect (or magnetoresistive): powered, gives a clean square wave independent of speed, so it works down to zero speed. The ECU gets engine speed from tooth frequency and crank angle from tooth counting after the gap. A camshaft sensor tells which stroke the cylinder is on (needed for sequential injection and coil-on-plug).
Other sensors in the same family: throttle position (potentiometer or Hall), coolant and intake air temperature (NTC thermistors), vehicle speed.
Formulas
λ = AFR_actual / AFR_stoich
- λ: excess-air ratio (dimensionless), AFR: air–fuel ratio by mass; AFR_stoich ≈ 14.7 for petrol. λ < 1 rich, λ > 1 lean.
ρ_im = MAP / (R × T_im)
- ρ_im: intake air density (kg/m³), MAP: absolute manifold pressure (Pa), R = 287 J/(kg·K) for air, T_im: intake temperature (K).
ṁ_air = η_v × ρ_im × V_d × n / 120 (four-stroke, speed-density)
- ṁ_air: air mass flow (kg/s), η_v: volumetric efficiency (dimensionless, from the ECU map), V_d: total swept volume (m³), n: engine speed (rpm).
ṁ_fuel = ṁ_air / AFR
f_tooth = N_t × n / 60
- f_tooth: tooth-position frequency (Hz), N_t: tooth positions per revolution (including the missing ones for a 60-2 wheel), n: crank speed (rpm).
f_knock ≈ 1.841 × c / (π × B), c = √(γ × R × T)
- f_knock: first circumferential acoustic mode of the chamber (Hz, Draper's relation), B: bore (m), c: speed of sound in the burnt gas (m/s), γ: ratio of specific heats, T: gas temperature (K). An estimate; use the engine maker's value for real calibration.
Worked examples
Example 1 (standard). A 1.6 L four-cylinder four-stroke petrol engine runs at 3000 rpm with MAP = 60 kPa, intake air at 37 °C, volumetric efficiency 0.85 and λ = 1 (AFR 14.7). Find the air mass flow, fuel flow and fuel mass per injection (one injection per cylinder per cycle).
ρ_im = 60,000 / (287 × 310.15) = 0.674 kg/m³.ṁ_air = 0.85 × 0.674 × 0.0016 × 3000 / 120 = 0.0229 kg/s.ṁ_fuel = 0.0229 / 14.7 = 1.56 × 10⁻³ kg/s = 1.56 g/s.- Injections per second
= (3000 / 120) × 4 = 100; fuel per injection= 1.56 g/s / 100 = 15.6 mg.
Answer: 0.0229 kg/s air, 1.56 g/s fuel, about 15.6 mg per injection.
Example 2 (GATE level). (a) A 60-2 crank wheel turns at 2400 rpm. Find the tooth-position frequency, the time per 6° tooth pitch and the number of real teeth passing per second. (b) A wide-band sensor reports AFR = 16.2 on a petrol engine. Find λ and state what a narrow-band sensor would read. (c) Estimate the knock frequency for a bore of 86 mm with burnt gas at 2500 K, γ = 1.3.
f_tooth = 60 × 2400 / 60 = 2400 Hz; time per pitch= 1 / 2400 = 0.417 ms; real teeth per second= 58 × (2400 / 60) = 2320.λ = 16.2 / 14.7 = 1.10→ lean; a narrow-band zirconia sensor would read about 0.1 V.c = √(1.3 × 287 × 2500) = 966 m/s;f_knock = 1.841 × 966 / (π × 0.086) = 6.58 × 10³ Hz.
Answer: 2400 Hz, 0.417 ms, 2320 teeth/s; λ = 1.10 (lean, about 0.1 V); about 6.6 kHz.
Common mistakes
- Treating MAP as "vacuum" (atmospheric minus manifold pressure). MAP is absolute; at idle MAP is low and vacuum is high.
- Reading a narrow-band O₂ voltage as a measure of how rich or lean the mixture is — it is essentially a switch at λ = 1.
- Confusing knock (end-gas auto-ignition after the spark) with pre-ignition (ignition before the spark).
- Expecting an inductive crank sensor to give a usable signal at very low speed, or forgetting that its amplitude changes with speed.
- Forgetting the factor 120 (not 60) for air flow in a four-stroke engine.
- Using °C instead of K in the ideal-gas density.
For GATE ME
These sensors tie into IC-engine numericals: air mass flow from volumetric efficiency and manifold conditions, fuel flow from air–fuel ratio, λ, ideal-gas density, and conversion between engine speed, signal frequency and crank angle. Conceptual questions test which sensor measures what and the difference between knock and pre-ignition.
Quick check
- Does MAP rise or fall when the throttle is opened suddenly?
- Why does a MAF sensor not need altitude correction?
- What voltage does a narrow-band zirconia sensor give when the mixture is rich?
- A 36-1 wheel at 1500 rpm: what is the tooth-position frequency?
- What does the ECU do when the knock sensor reports knock?
Answers: 1. It rises towards atmospheric pressure. 2. It measures air mass directly, so density changes are already included. 3. About 0.8–0.9 V. 4. 36 × 1500 / 60 = 900 Hz. 5. Retards ignition timing on the knocking cylinder, then advances it again gradually.
Interview questions
All Automotive Electronics and Electric Vehicles interview questionsTry answering each one aloud before you open it.
1.What is a MAP sensor and what role does it play in an automotive engine?Concept
A MAP (Manifold Absolute Pressure) sensor measures the pressure inside the intake manifold of an engine. It provides data to the engine control unit (ECU) about the engine load, which is used to calculate the optimal air-fuel mixture for combustion. This helps in improving fuel efficiency and reducing emissions.
2.Explain the function of a MAF sensor in a vehicle.Concept
A MAF sensor, fitted between the air filter and throttle, measures the mass flow rate of air entering the engine, which the ECU divides by the target air-fuel ratio to calculate fuel quantity. In the hot-wire or hot-film type an element is held at a fixed temperature above the intake air, and the heating power needed rises with air mass flow. Because it measures mass directly, it compensates automatically for air density, altitude and changes in volumetric efficiency. Unmetered air leaking in after the sensor, or a contaminated element, makes the engine run lean.
3.What is the purpose of an O2 sensor in automotive systems?Concept
The oxygen (lambda) sensor measures oxygen in the exhaust so the ECU can run closed-loop fuel control around the stoichiometric ratio the three-way catalyst needs. A narrow-band zirconia sensor generates a Nernst voltage of about 0.8–0.9 V when rich and about 0.1 V when lean, switching sharply at λ = 1, and works only when hot, above about 300–350 °C, which is why it has a heater. A wide-band sensor measures the actual λ over a wide range. A second sensor after the catalyst monitors catalyst efficiency for OBD.
4.Describe the function of a knock sensor in an engine.Concept
Knock is spontaneous auto-ignition of the unburnt end gas after the spark has fired, which causes sharp pressure oscillations in the chamber, typically at about 5–15 kHz. It is different from pre-ignition, where a hot spot ignites the charge before the spark. The knock sensor is a piezoelectric accelerometer on the cylinder block that picks up this vibration. The ECU checks the filtered signal in a crank-angle window and retards the timing of the knocking cylinder, then advances it again step by step.
5.What is the role of a crank position sensor in an automotive engine?Concept
A crank position sensor monitors the position and rotational speed of the crankshaft. This information is used by the ECU to control ignition timing and fuel injection. Accurate data from the crank position sensor is essential for engine synchronization and smooth operation.
6.Why is a MAF sensor preferred over a MAP sensor in some vehicles?Application
A MAF sensor measures air mass directly, so it automatically accounts for density, altitude, engine wear and changes in volumetric efficiency from variable valve timing or modifications, without relying on a calibrated VE map. A MAP-based speed-density system has to calculate air mass from manifold pressure, temperature, speed and a stored volumetric-efficiency table, so it is only as accurate as that table. On the other hand, MAP sensors are cheaper, respond faster, are not upset by intake leaks or contamination, and work well with pulsating flow. Many modern engines use both.
7.What could happen if an O2 sensor fails in a vehicle?Application
If an O2 sensor fails, the ECU may not be able to accurately adjust the air-fuel mixture, leading to poor fuel economy, increased emissions, and potential damage to the catalytic converter. The vehicle may also experience rough idling or stalling.
8.How does a knock sensor contribute to engine efficiency?Application
Maximum efficiency and torque come from timing the spark near minimum advance for best torque (MBT) and from a high compression ratio, but both increase the risk of knock. Without a knock sensor the calibration must keep a safety margin of retard for the worst fuel and conditions, which wastes efficiency all the time. With knock detection the ECU can run close to the knock limit and retard only the cylinder that actually knocks, only when needed. This allows a higher compression ratio and better fuel economy while still protecting the pistons and bearings.
9.A MAF sensor reads 0.02 kg/s on a four-cylinder four-stroke engine running at 3000 rpm. What mass of air does each cylinder take in per intake stroke?Numerical
In a four-stroke engine each cylinder has one intake stroke every two revolutions, so intake events per second = (3000/120) × 4 = 100. Air per intake stroke = 0.02 kg/s ÷ 100 /s = 2 × 10⁻⁴ kg = 0.2 g. At λ = 1 with an AFR of 14.7, the ECU would inject about 0.2/14.7 = 0.0136 g, or 13.6 mg, of fuel per cylinder per cycle.
10.If a crank position sensor reads a rotational speed of 2000 RPM, what is the frequency of the crankshaft rotation in Hz?Numerical
The rotational frequency is 2000 rpm ÷ 60 = 33.33 Hz (revolutions per second). The sensor signal itself is much faster, because it reads a toothed wheel: on a 60-2 wheel the tooth-position frequency is 60 × 33.33 = 2000 Hz, so the ECU sees a tooth every 0.5 ms and each tooth represents 6° of crank angle.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?