Embedded system
An embedded system is a computer built into a larger product to do one dedicated job, such as running a washing machine, a car's brakes or a smart thermostat, usually with tight limits on memory, power and cost.
Photo: Sebastian Scholz (Nuki) / Unsplash
An embedded system is a computer that lives inside another product and does one job for it. It reads sensors, makes decisions and drives motors, valves, displays or radios, and the person using the product rarely thinks of it as a computer at all. The control board of a washing machine, the unit that fires a car’s airbags, a pacemaker and the board inside a smart thermostat are all embedded systems. Every IoT device is built around one, and the network connection added on top is what makes it part of the Internet of Things, as What is the Internet of Things? explains with the example of a smoke detector.
What are examples of embedded systems?
Almost every electronic product with a fixed purpose contains at least one. At home: the microwave oven, the dishwasher, the TV remote, the cordless drill, the Wi-Fi router, the smart speaker. A car carries many of them, for the engine, the brakes, the airbags, the windows and the dashboard, and they exchange data over a shared in-vehicle network such as CAN bus. In a factory, the controller of a packaging line, the drive that sets a pump’s speed and the electricity meter are embedded systems too, and so are infusion pumps and hearing aids in medicine.
They range from a tiny chip running for years on a coin cell to a board running Linux, but they share a single purpose and software that the user does not replace.
How is an embedded system different from a normal computer?
A laptop or a phone is general-purpose: it runs whatever programs its owner installs. An embedded system is built for one task, and its software, called firmware, is written by the maker and stored in the device’s own memory. Four differences follow.
- Resources sized to the job. Memory may be counted in kilobytes rather than gigabytes, because every extra part is paid for again on each unit built.
- Timing. Many embedded systems must react within a fixed time. A brake controller cannot pause for a moment the way a laptop does while it installs an update. Engineers call this guaranteed reaction time real-time behavior.
- Interface. There is often no screen or keyboard, only a few buttons, a light, a phone app, or nothing at all.
- Lifetime. The device runs unattended for years, in heat, cold, dust or vibration.
The line is not sharp: a smart TV runs a full operating system and an app store, yet it is still built into a product and maintained only by its maker.
What is the difference between a microcontroller and a microprocessor?
A microcontroller (MCU) puts the processor, the memory for the program, the working memory and the connections to sensors and motors on one chip, so it runs with only a few parts around it. A microprocessor (MPU) is mainly the processor: it needs separate memory chips and storage, and in return it can run a full operating system such as Linux.
Microcontrollers dominate small and battery-powered products, such as a door sensor or a thermostat: they start in a fraction of a second and can sleep while drawing very little current. Microprocessors appear when a product needs a camera, a touchscreen or a machine-learning model, as in gateways, security cameras and car dashboards. Many products use both: a Linux processor for the screen and the cloud, and a microcontroller for a motor that needs precise timing.
Which operating system does an embedded system run?
There are three common answers: none at all, a real-time operating system, or embedded Linux.
The simplest devices run “bare metal”: the firmware is a single loop that reads a sensor, acts and goes back to sleep. When a device has to do several things at once, such as keep a radio link alive, read sensors and respond to a button, makers add a real-time operating system (RTOS), a small operating system that runs several tasks and makes sure the urgent ones start on time. FreeRTOS describes itself as a real-time operating system “for microcontrollers and small microprocessors”, distributed under the MIT open-source license. Zephyr, released under the Apache 2.0 license, says it scales from small Arm Cortex-M microcontrollers to multi-core 64-bit processors.
Products built on a microprocessor usually run embedded Linux. The maker does not install a desktop distribution but builds a trimmed system with only what the product needs; the Yocto Project, for example, is an open-source project whose tools help developers “create custom Linux-based systems regardless of the hardware architecture”. Linux brings ready-made drivers, networking and security libraries, but it needs far more memory, takes seconds rather than milliseconds to start, and does not guarantee reaction times out of the box.
How are embedded systems updated, and how long are they supported?
Older embedded products were often never updated after leaving the factory. A connected one has to be, because security flaws keep being found in its software for years. Updates arrive as over-the-air (OTA) updates: the device downloads a new firmware image, checks its digital signature so that only the maker’s software is accepted, and installs it, often in a second memory area so that it can go back to the old version if something fails. Device management and OTA updates covers how this works across a fleet.
Laws now ask makers to say how long updates will last. In the UK, since 29 April 2024, makers of consumer connected products must publish a “defined support period”, the minimum length of time for which they will provide security updates (Schedule 1, paragraph 3). In the EU, the Cyber Resilience Act sets the support period at no less than five years, or the expected time of use if that is shorter (Article 13(8) of Regulation (EU) 2024/2847). The European Commission’s summary adds that the end date, with month and year, must be stated clearly at the time of purchase, and that the act applies in full from 11 December 2027.
For a product team, this means planning from the start: spare memory for larger future firmware, and an update system that keeps working for the whole support period.
Part of the IoT Glossary. Spotted an error or a missing term? Tell us.