What Controls the Fuel Injectors? The ECU Explained

Your car’s engine control unit (ECU), a small onboard computer, controls the fuel injectors. It decides exactly when each injector opens, how long it stays open, and how much fuel gets sprayed into the engine. The ECU makes these decisions hundreds of times per second by reading data from a network of sensors throughout the engine. Every time you press the gas pedal, start a cold engine, or cruise on the highway, the ECU is recalculating fuel delivery in real time.

How the ECU Controls Fuel Volume

Fuel injectors are essentially electrically operated valves. The ECU controls how much fuel enters the engine by varying the duration of the electrical pulse sent to each injector. A longer pulse means the injector stays open longer and more fuel flows through. A shorter pulse means less fuel. This is called pulse width modulation, and it’s the core mechanism behind modern fuel injection.

The actual opening and closing happens one of two ways, depending on the type of injector. Most gasoline engines use solenoid injectors, where an electromagnetic coil pulls a small valve open when current flows through it. The ECU sends a brief high-current spike to snap the valve open quickly, then holds it with a lower current for the duration of the pulse. Piezoelectric injectors, found in many modern diesel engines, use a crystal stack that physically expands when voltage is applied. These can generate forces around 800 newtons compared to less than 100 for solenoids, which lets them open and close roughly 50% faster. That speed difference matters when an engine needs multiple tiny injections per combustion cycle.

Sensors That Feed the ECU

The ECU can’t see inside the engine. It relies on sensors to figure out how much air is entering, how fast the engine is spinning, and what conditions it’s operating under. The most important input is airflow, because the engine needs a precise ratio of air to fuel (about 14.7 parts air to 1 part fuel by weight for gasoline). Two sensor strategies measure this.

A mass airflow (MAF) sensor sits in the intake tract and directly measures how many grams of air pass through it each second. The ECU divides that air mass by 14.7 to calculate the fuel needed. Some engines skip the MAF sensor and instead calculate airflow using manifold absolute pressure (MAP), engine speed, and intake air temperature. The formula combines those three values with engine displacement and volumetric efficiency to estimate the same thing: grams of air per cycle.

Beyond airflow, the ECU pulls data from several other sensors:

  • Throttle position sensor: Tells the ECU where the throttle plate sits and, critically, how fast it’s moving. A rapid throttle opening signals the ECU to add a burst of extra fuel called acceleration enrichment, because the engine momentarily runs lean when the throttle snaps open.
  • Coolant temperature sensor: On a cold start, the ECU increases injector pulse width to deliver a richer fuel mixture, similar to how older engines used a choke. As the engine warms up, the ECU gradually leans the mixture back to normal.
  • Crankshaft and camshaft position sensors: These work together to tell the ECU exactly where each piston is in its four-stroke cycle. The crankshaft sensor tracks engine speed and rotational position, but because the crankshaft completes two full rotations per combustion cycle, the crank angle alone can’t distinguish between the compression and exhaust strokes. The camshaft sensor resolves that ambiguity, letting the ECU fire each injector at precisely the right moment in the correct cylinder’s intake stroke.
  • Knock sensor: A small vibration sensor bolted to the engine block that listens for the metallic pinging sound of abnormal combustion. When it detects knock, the ECU responds within milliseconds by retarding ignition timing and adding fuel to cool the combustion process and protect the engine.

Open Loop vs. Closed Loop Fueling

The ECU operates in two fundamentally different modes depending on driving conditions. In closed loop mode, which covers most normal driving, the ECU actively fine-tunes the fuel mixture using feedback from oxygen sensors in the exhaust. In open loop mode, it ignores that feedback and relies entirely on pre-programmed fuel maps.

The oxygen sensor (or air-fuel ratio sensor) sits in the exhaust stream and measures how much unburned oxygen is leaving the engine. Its voltage output tells the ECU whether the mixture is running lean (below about 0.4 volts) or rich (above about 0.55 volts). The ECU constantly adjusts injector pulse width to keep the mixture bouncing right around the ideal 14.7:1 ratio. These adjustments show up as short-term fuel trim, a real-time correction factor. When the ECU notices that short-term corrections consistently lean in one direction, it updates a longer-term learned value called long-term fuel trim so it doesn’t have to keep making the same correction.

Open loop kicks in during conditions where efficiency takes a back seat. Cold starts are the most common example: the oxygen sensor needs to reach operating temperature before its readings are reliable, so the ECU runs off stored maps. Hard acceleration and wide-open throttle also trigger open loop, because the engine intentionally runs a richer mixture for maximum power and to prevent overheating. Deceleration, where engine speed is changing rapidly and the throttle may be fully closed, is another open loop scenario.

How Fuel Pressure Plays a Role

The ECU controls how long an injector opens, but how much fuel actually flows during that time also depends on fuel pressure. Traditional port fuel injection systems, where injectors spray fuel into the intake ports above the valves, operate at relatively low pressures. Direct injection systems, where fuel sprays straight into the combustion chamber, need dramatically higher pressure to overcome the compression inside the cylinder. A high-pressure fuel pump driven by the engine’s camshaft pushes fuel to between 2,000 and 3,000 psi in direct injection systems.

This higher pressure atomizes the fuel into a much finer mist, which helps it mix with air more completely and burn more efficiently. The ECU often controls this fuel pressure as well, adjusting it based on engine load and speed, which adds another variable to the fuel delivery equation beyond just pulse width.

Why Sequential Firing Order Matters

In modern engines, injectors don’t all fire at once. Sequential fuel injection fires each injector individually, timed to the intake stroke of its specific cylinder. This is where the crankshaft and camshaft sensors become essential. Without both sensors working together, the ECU cannot determine which cylinder is on its intake stroke and which is on its exhaust stroke, since those two strokes happen at the same crankshaft angle but different camshaft positions.

If one of these sensors fails, many ECUs fall back to a less precise mode called batch fire, where injectors fire in groups rather than individually. The engine still runs, but fuel delivery is less optimized, which hurts efficiency and emissions. A complete failure of the crankshaft position sensor typically prevents the engine from starting at all, since the ECU has no way to determine engine speed or position.