Tech, ExplainedIndustrial tech and mobility
Concept

Electronic control unit (ECU)

Dozens of computers in one car.

HOW IT WORKSA sensor measuressomething, such aswheel speedThe reading goes tothe control unitThe unit's fixedprogram decides whatto doThe unit sends asignal to a part, suchas a brakeIt shares the resultwith other unitsover the vehicle'swire networkEach unit does one job and reacts in milliseconds, which is why a vehicle needs so many of them.HOW IT WORKSA sensormeasuressomething,such aswheel speedThe readinggoes to thecontrol unitThe unit'sfixed programdecides whatto doThe unitsends asignal to apart, such asa brakeIt shares theresult withother unitsover thevehicle'swire networkEach unit does one job and reacts in milliseconds, which is why a vehicle needs so many of them.HOW IT WORKSA sensor measures something, such aswheel speed↓The reading goes to the control unit↓The unit's fixed programdecides what to do↓The unit sends a signal to a part, suchas a brake↓It shares the result with other unitsover the vehicle's wire networkEach unit does one job and reacts in milliseconds, whichis why a vehicle needs so many of them.
A sensor reading goes into a small computer in the vehicle, which decides and sends a signal to the part it controls.
opens a page inside this one a page in the same scene a page in another scene a concept page a label only, with no page

An electronic control unit (ECU) is one of the small computers inside a vehicle, each running one system such as the brakes, the airbags, the engine or the electric motor. A modern car has dozens of them, and a premium car may have over a hundred. Each ECU has its own chip, its own software and its own connection to sensors and to the parts it controls.

Here is how an ECU works in general. Sensors send it measurements, for example how fast each wheel is turning. The ECU's firmware runs a fixed program that decides what to do next within a few milliseconds. It then sends a signal to a part, for example to tighten one brake. ECUs are joined by a shared wire network inside the vehicle, called a bus, so that the brake ECU can tell the engine ECU to reduce power.

There are two reasons for so many units. The first is safety. If the airbag unit fails, the brakes must still work, so separate units keep one fault from spreading. The second is history. Each system was added to cars one at a time, by a different supplier, with its own computer. The shared wires are usually a network called CAN (controller area network), where each unit puts short messages on the wires and every other unit can read them. The time limit is strict: the anti-lock braking unit must act within a few milliseconds, and a late answer is a wrong answer. In older vehicles, the software of a unit could be changed only at a service centre, with a special tool.

Take, for example, the anti-lock braking system. Its ECU reads the wheel speeds, notices that one wheel has stopped turning and releases that brake for a moment so the driver can steer. Consider the airbag ECU. It reads a crash sensor and decides within a few hundredths of a second whether to fire the bag. For instance, the ECU of an electric scooter controls the motor and the battery; see electric two-wheelers.

Many separate ECUs are expensive and hard to update, so carmakers are moving towards fewer, more powerful computers; see software-defined vehicles and vehicle electrical architecture. ECUs for safety are checked under strict rules; see safety certification. The suppliers that build them are described under tier 1 and tier 2 suppliers.

How is it different from a general computer? An ECU runs one fixed job, must react in milliseconds and cannot be allowed to crash.

Appears in

Industrial tech and mobility
Tech, Explained is a part of ingrid.fyi. Every page explains one piece of technology in plain words.