Back to the glossary

Embedded and systems

Electronic control unit (ECU)

An electronic control unit is a device with a microcontroller and firmware that reads sensors and drives actuators, for example in vehicles, machines or medical devices.

Also known as: control unit, embedded controller, electronic control module

What an ECU consists of

An ECU combines hardware and software for one dedicated task. Typical parts are:

  • A microcontroller running the firmware
  • Inputs for sensors such as temperature, pressure or speed
  • Outputs for actuators such as motors, valves or relays
  • Interfaces to other devices, for example CAN, LIN or Ethernet

Modern vehicles often contain more than a hundred ECUs. Industrial plants, household appliances and medical technology are full of them too.

Why ECUs are hard to test

An ECU reacts to its environment. Without sensors, actuators and communication partners it cannot show what it does. That’s why it is tested on a test bench that recreates this environment, or with hardware-in-the-loop against a real-time simulation.

Much of the logic can still be checked without hardware, though: with unit tests and software-in-the-loop directly on the development machine.