Skip to content
Hexlabs
Profile

ECU Basics & Internal Structure ~8m

ECU Basics & Internal Structure

Understanding how an Engine Control Unit (ECU) works is the foundation of safe and effective remapping. In this lesson you’ll learn what an ECU does, how it reads sensor data and issues commands, and why maps and lookup tables are central to its operation.


🧠 What Is an ECU?

The ECU is the brain of a modern engine. It’s a small computer that continuously reads sensors and makes real‑time decisions about fuel, ignition, boost and emissions. Unlike older analogue systems, ECUs execute software—firmware that can be read, analysed and modified.

ECU
Engine Control Unit — an electronic module that manages engine parameters like fuel, ignition timing, boost and emissions.
Click or press Space/Enter to flip

Central Role

Without the ECU, modern engines would stall, misfire or produce excessive emissions. Think of it as the operating system for your engine.


🧰 Sensors, Inputs & Outputs

To make decisions, the ECU relies on data from many sensors:

  • Air Intake Sensor – measures incoming air temperature and density
  • Oxygen (Lambda) Sensor – monitors exhaust oxygen content for AFR control
  • Throttle Position Sensor – tracks pedal input and throttle plate angle
  • Crankshaft & Camshaft Sensors – determine engine speed and piston position

It also controls actuators such as fuel injectors, ignition coils and turbo wastegates. The constant interplay of inputs (sensor readings) and outputs (commands to actuators) allows the engine to run smoothly.


🔁 How the ECU Processes Data

How an ECU Processes Data
From throttle input to torque output
Hide or show diagram labels

When you press the accelerator, the ECU performs a rapid sequence of steps:

Speed Matters

This entire process happens hundreds of times per second. A well‑tuned map ensures that the ECU always delivers the right amount of fuel and spark at the right moment.


🗺️ Maps & Lookup Tables

To make fast decisions, the ECU uses maps, which are two‑dimensional tables. They have axes (RPM and load) and cells that contain the values to use. For example, a fuel map might look like this:

RPM / Load20 %40 %60 %80 %100 %
1 0002832364044
2 0003236404448
3 0003641465156
4 0004045505560

Each cell corresponds to an injector pulse width or fuel mass. The ECU interpolates between these values when your engine runs at points between the defined RPM/load cells.

Lookup Table
A data table used by the ECU to quickly retrieve values based on input conditions like engine speed (RPM) and load.
Click or press Space/Enter to flip

✅ Key Takeaways

  • The ECU is an embedded computer that reads sensor data and controls actuators in real time.
  • Sensors such as TPS, lambda and crank sensors inform the ECU about current conditions.
  • Decisions are made using maps—two‑dimensional lookup tables indexed by RPM and load.
  • Understanding this data flow is the basis for safe remapping.

In the next lesson, we’ll explore why you might want to remap your ECU and what benefits and trade‑offs to expect.


What does the ECU primarily use maps for?

Related Tools

Next →