1.1.3 Embedded systems
Not every computer looks like a laptop or a phone. Many are hidden inside other machines. You use them every day without noticing.
A general-purpose computer, such as a laptop, can run many different programs. An embedded system is different. It has a fixed purpose. A microwave oven has an embedded system that controls the timer, the power level and the door sensor. It cannot be used to browse the web.
Purpose
The purpose of an embedded system is to control or monitor part of a device so that the device works correctly. It takes in information, processes it and gives an output.
- Inputs: the programme the user chooses, the water level sensor, the temperature sensor.
- Process: the embedded system compares the readings with what is needed.
- Outputs: it switches the water valve, the heater and the motor on or off.
How an embedded system works
Most embedded systems follow the same pattern as any computer: input, process, output. The inputs often come from sensors (for example temperature, movement or pressure) or from a few buttons. The CPU runs the fixed program. The outputs switch things on or off, such as a motor, a heater, a light or a buzzer. Because the job never changes, the program can be small and simple, and it can run all the time.
Typical characteristics
Embedded systems usually share these features.
- •One main job. They are built to do one task, not many.
- •Small and cheap. They are made in large numbers and fitted inside products, so they must cost little and take up little room.
- •Low power use. Many run on a battery or must not waste electricity.
- •Fixed program. The program is usually stored in ROM (often called firmware). It is not changed by the user.
- •Little or no user interface. They may have a few buttons or a small display, but no full screen, keyboard or mouse.
- •Reliable. They often run for years without being restarted. A fault could be annoying or dangerous.
- •Quick responses. Many must react straight away, for example a car's anti-lock braking system.
| Embedded system | General-purpose computer |
|---|---|
| One fixed job | Many different jobs |
| Program usually stored in ROM | Programs loaded from storage into RAM |
| Small, cheap, low power | Larger, costs more, uses more power |
| Little or no user interface | Screen, keyboard and mouse |
Examples
Embedded systems are found in a very wide range of products.
| Where | Example | What the embedded system does |
|---|---|---|
| Home | Microwave oven | Controls cooking time and power |
| Home | Washing machine | Controls the programme, water and drum |
| Home | Central heating thermostat | Reads the temperature and switches the boiler on or off |
| Home | Digital alarm clock | Keeps the time and sounds the alarm |
| Transport | Car engine management | Controls fuel and engine timing |
| Transport | Traffic lights | Changes the lights in a set order and timing |
| Health | Pacemaker | Monitors the heart and sends small pulses when needed |
| Personal | Fitness band | Counts steps and measures heart rate |
| Security | Intruder alarm | Reads sensors and sounds a siren |
Why are they designed this way?
Because the job is fixed, the maker can choose just the parts that are needed. A slow, cheap processor and a small amount of memory are enough to control a microwave. That keeps the cost low and the power use small. It also makes the system more reliable, because there is less that can go wrong than in a computer with many programs.
Common mistakes
- •Saying an embedded system is "a small computer". Say it is a computer built into another device for one specific job.
- •Giving a laptop, tablet or phone as an example. These are general-purpose computers.
- •Giving a characteristic with no reason. Say why, such as "low power because it runs on a battery".
Exam technique
- •State or give: a short fact or example. "Give one example of an embedded system."
- •Describe or explain: say what the system does in the device (its purpose), then give a link to the scenario. For example, "The washing machine's embedded system reads the water sensor and switches the pump."
- •Explain why: link a characteristic to the reason. "It is small and low power because it is built into a battery-powered device."
- •Choose clear examples. A device with a fixed job and no need to run other programs is a good example.