All subjects · Computer Science · WCP03 Advanced Principles of Computer Science

Embedded systems: hardware and software

Edexcel IAL Computer Science · WCP03 Advanced Principles of Computer Science

Most computers are not PCs. They are hidden inside washing machines, cars, fitness bands and thermostats. An embedded system is a computer built into a larger device to do one dedicated job.

Practise this in the app: instant marking and a fix for every mistake. Free, no email needed to start.

Practise this lesson

What an embedded system is

An embedded system is a computer system with a dedicated function inside a larger mechanical or electrical system. It usually has to be small, cheap, low power and reliable, often runs in real time and may run for years without a restart. Examples: engine management unit, smart thermostat, pacemaker, washing machine controller.

Hardware components

Software components

Benefits and drawbacks

Benefits: cheap to mass produce, small, low power, reliable, fast dedicated response, easy for the user.

Drawbacks: limited processing power and memory; hard or impossible to upgrade; difficult to debug; connected devices can be hard to patch, which creates security risks.

A design diagram usually reads: sensor -> ADC -> microcontroller (firmware and application) -> DAC or driver -> actuator, with a power supply feeding everything.

Worked example

Describe how a smart thermostat keeps a room at 21 °C.

  1. A temperature sensor produces a voltage; the ADC converts it to a number.
  2. The microcontroller's software compares the reading with the set point of 21 °C.
  3. If the room is too cold, it sends a signal through an output port to an actuator (a relay) that switches the boiler on; when 21 °C is reached, it switches it off.
  4. This loop repeats continuously.

Answer: Sensor, ADC, compare with set point in the MCU, actuator output, repeat.

Key idea: Embedded system: a dedicated computer inside a larger device. Hardware: MCU, memory, I/O, sensors, actuators, power, ADC/DAC. Software: firmware, often a small RTOS or none, application code usually in C.

Check yourself

  1. What is an embedded system?
    • A general-purpose desktop computer
    • A program stored in the cloud
    • A virtual machine on a server
    • A computer with a dedicated function inside a larger device
    Show answer

    A computer with a dedicated function inside a larger device. It is built in, dedicated and usually invisible to the user.

  2. What does a microcontroller unit (MCU) contain on a single chip?
    • Only an ALU
    • A processor core, memory and input/output ports
    • A hard disk and a graphics card
    • A keyboard controller and a monitor
    Show answer

    A processor core, memory and input/output ports. That integration is why MCUs suit cheap, small embedded devices.

  3. How does an actuator work?
    • It converts physical quantities into electrical signals
    • It stores the firmware
    • It converts analogue signals to digital
    • It receives electrical control signals and converts them into physical movement or action
    Show answer

    It receives electrical control signals and converts them into physical movement or action. Actuators are outputs: motors, valves, relays.

  4. Which sensor would a fitness band use to count steps?
    • Accelerometer
    • Temperature sensor
    • Microphone
    • Light-dependent resistor
    Show answer

    Accelerometer. An accelerometer measures acceleration and changes in movement.

  5. What is firmware?
    • The plastic case around the circuit board
    • A cloud service used by the device
    • Software stored in non-volatile memory that directly controls the device's hardware
    • Temporary data in RAM
    Show answer

    Software stored in non-volatile memory that directly controls the device's hardware. Firmware is held in flash or ROM and runs when the device starts.

  6. Why is C commonly used for embedded software?
    • It gives close control over memory and hardware with small, fast code
    • It needs a large operating system to run
    • It is only used for web pages
    • It cannot access hardware ports
    Show answer

    It gives close control over memory and hardware with small, fast code. Limited memory and timing needs favour compact compiled code.

  7. Which is a drawback of embedded systems?
    • They are always more expensive than PCs
    • They use more power than a desktop
    • They are often hard to update, so security flaws may stay unpatched
    • They cannot use sensors
    Show answer

    They are often hard to update, so security flaws may stay unpatched. Limited interfaces and resources make updates difficult.

Practise with instant feedback

Sources

Last updated 8 November 2026. Spotted a mistake? Tell us.