You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson covers embedded systems — what they are, how they differ from general-purpose computers, and where they are used. This topic is part of OCR J277 Section 1.1.1.
An embedded system is a computer system built into a larger device to perform a specific, dedicated function. Unlike a general-purpose computer (such as a laptop or desktop), an embedded system is designed to do one particular job and typically cannot be reprogrammed by the user to do something else.
| Feature | Embedded System | General-Purpose Computer |
|---|---|---|
| Purpose | Performs one specific task | Can run many different programs |
| User interaction | Limited or none | Extensive (keyboard, mouse, screen) |
| Operating system | Often none, or a lightweight real-time OS | Full OS (Windows, macOS, Linux) |
| Reprogrammable | Usually not by the end user | Fully reprogrammable |
| Size | Often very small | Varies (laptop to server) |
| Cost | Low (mass-produced) | Higher |
| Power consumption | Very low | Higher |
Embedded systems are found in an enormous range of everyday devices:
OCR Exam Tip: If asked to give an example of an embedded system, always state the device AND explain its specific function. For example: "A washing machine contains an embedded system that controls the wash cycle, including water temperature and spin speed."
An embedded system typically consists of:
The program in an embedded system is often called firmware because it is permanently stored in ROM or flash memory and is not intended to be changed by the user.
| Advantage | Explanation |
|---|---|
| Low cost | Simple processors and minimal components keep costs down |
| Low power | Consume very little electricity, ideal for battery-powered devices |
| Reliable | Designed for one task, so fewer things can go wrong |
| Small size | Can be built into compact devices |
| Fast response | Dedicated to one task, so they can respond very quickly |
| Disadvantage | Explanation |
|---|---|
| Limited functionality | Can only perform the task they were designed for |
| Difficult to update | Firmware updates may be complex or impossible |
| Limited processing power | Not suitable for complex, general-purpose computing |
| No user interface | Many have no screen or keyboard for user interaction |
A common exam question asks you to compare the two. The key distinction is:
OCR Exam Tip: You may be asked to identify whether a device uses an embedded system or a general-purpose computer. Focus on whether the device performs a single dedicated task (embedded) or can run various software (general-purpose).
A washing machine is a textbook embedded system and appears in OCR J277 exam questions regularly. Walking through its internals helps you write confident, detailed scenario answers.
Step 1 — the CPU. The "brain" is a small microcontroller — a single chip combining a low-power CPU, a few kilobytes of RAM, flash memory containing the firmware, and input/output pins. It runs the fetch-decode-execute cycle just like any other CPU, but typically at a few tens of megahertz rather than gigahertz, because the job does not demand speed.
Step 2 — the inputs. The microcontroller reads several sensors on every cycle of its main loop:
| Sensor | Measures | Why it is needed |
|---|---|---|
| Door switch | Whether the door is closed | The drum must not spin with the door open |
| Water level sensor | Water height inside the drum | Prevents overfilling and underfilling |
| Temperature sensor | Water temperature | Controls the heating element for the correct wash temperature |
| Rotation / speed sensor | Drum RPM | Feedback loop that stops the drum spinning too fast during the spin cycle |
| Control panel buttons / dial | User programme selection | Tells the microcontroller which wash cycle to run |
Step 3 — the outputs (actuators). The microcontroller drives each actuator via a relay or transistor switch:
| Actuator | Action | Triggered when |
|---|---|---|
| Water inlet solenoid valve | Opens to let water in | Start of cycle or rinse phase |
| Drain pump | Removes dirty water | End of wash and between phases |
| Heating element | Warms the water | Temperature sensor reports below setpoint |
| Drum motor | Rotates the drum | Wash and spin phases |
| LCD / LED display | Shows remaining time | Throughout the cycle |
| Buzzer | Beeps when finished | End of cycle |
Step 4 — the firmware logic. The flash memory stores a state machine: idle -> fill -> heat -> wash -> drain -> rinse -> drain -> spin -> beep -> idle. On each clock tick, the microcontroller reads sensors, consults the current state, and sets outputs. If the door opens mid-cycle, the firmware immediately stops the motor and pauses. If temperature overshoots, the heating element is switched off.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.