AS Level · Topic 3.1
A-Level Computer Science 9618 / Topic 3 / AS

Computers you never see.

Most processors are not in PCs at all: they are hidden inside cars, ovens, thermostats and traffic lights. Learn what makes a system embedded, weigh up its benefits and drawbacks, and see how sensors, actuators and feedback let a computer monitor or control the real world.

The key idea

An embedded system is a computer system, with its own microprocessor or microcontroller, memory and input/output, built into a larger device to perform one dedicated function. A monitoring system uses sensors to measure physical quantities and records, displays or warns, but does not change the conditions. A control system also uses actuators to change the conditions. Analogue sensor readings pass through an ADC; the processor compares each reading with a pre-set value. In a control system the output affects the next input: this feedback lets the system keep conditions within limits automatically.

a control system: the output changes the next input (feedback) sensor ADC microprocessor actuator the environment temperature converts signal compares reading withstored pre-set value heater or motor room gets warmer or cooler feedback loop: measure, compare, act, measure again
Fig. 1: a closed feedback loop in a heating control system
Section 01

What makes a system embedded.

Click the devices in the lab to see the embedded system inside each. Notice that each one does one job, and the user cannot install new programs on it.

BenefitsDrawbacks
Small, so it fits inside the deviceDifficult or impossible to upgrade; often the whole unit is replaced
Cheap to mass-produceFaults can be hard to diagnose and need a specialist to repair
Low power consumption, so it can run on batteriesIf connected to the internet, it can be hacked (for example a smart camera or thermostat)
Fast and reliable, as it runs one dedicated programCannot be reprogrammed for other tasks
Can be controlled remotely if networkedEncourages a throw-away culture when units cannot be repaired
Examiner trap

A laptop is not an embedded system: it is general purpose. The test is whether the computer is part of a larger device and does one dedicated job.

Section 02

Monitoring against control.

Both kinds of system read sensors continuously. The difference is what the processor does with the readings.

Monitoring systemControl system
What it doesMeasures, records, displays or analyses; may sound a warningMeasures and then changes the conditions using actuators
Changes the environment?NoYes
ExamplesPatient monitoring in hospital, weather station, pollution monitoring, intruder alarmCentral heating, greenhouse, traffic lights, automatic doors, chemical process control
SensorMeasuresExample use
TemperatureHow hot or coldCentral heating, greenhouse, patient monitoring
PressureForce on a surface, or gas/liquid pressureCar detected at traffic lights, intruder on a mat, tyre pressure
Infra-redInfra-red radiation, or a broken infra-red beamDetecting people at automatic doors, intruder alarms
SoundSound levelIntruder alarm (breaking glass), noise pollution monitoring
Your turn
A hospital system reads a patient's heart rate and temperature every second and sounds an alarm if either goes outside a range. Is it monitoring or control? Explain.
Examiner trap

A sensor does not decide anything. Sensors only send readings; it is the processor that compares the reading with the stored value and decides whether an actuator is switched.

Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

Which is an embedded system?

Quick check+10 XP

In the lab, what is a typical drawback of an embedded system?

Quick check+10 XP

What is the key difference between a monitoring system and a control system?

Quick check+10 XP

Why does a sensor's output usually pass through an ADC?

Section 03

Feedback: closing the loop.

In a control system, what the actuators do changes the next sensor reading. Feedback is what makes a control system automatic and stable.

CONSTANT LowLimit = 20.5
CONSTANT HighLimit = 21.5
DECLARE Temp : REAL
WHILE TRUE
    Temp ← ReadTemperature()     // reading from the sensor, via the ADC
    IF Temp < LowLimit THEN
        CALL HeaterOn()          // actuator: relay switches the heater on
    ELSE
        IF Temp > HighLimit THEN
            CALL HeaterOff()
        ENDIF
    ENDIF
ENDWHILE
Worked example Describe a control system
Describe how a microprocessor keeps the soil in a greenhouse moist. [5]
  1. A moisture sensor continuously measures the moisture level in the soil.
  2. The analogue reading is converted to digital by an ADC and sent to the microprocessor.
  3. The microprocessor compares the reading with a pre-set value stored in memory.
  4. If the reading is below the pre-set value, it sends a signal to an actuator to open the water valve; if it is at or above the value, the valve is closed.
  5. This repeats continuously, so the effect of watering is fed back as new readings (feedback).
Answer: Sensor, ADC, compare with stored value, actuator, continuous loop
Examiner trap

"The sensor turns the heater on" earns nothing. Name the chain: sensor sends reading, ADC, processor compares with pre-set value, processor signals actuator.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to AS Paper 1 and Paper 2 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

What is meant by feedback in a control system?

Exam style+20 XP

Which sensor is most suitable for detecting a car waiting at traffic lights?

Exam style+20 XP

Which is a benefit of an embedded system?

Exam style+20 XP

An intruder alarm sounds a siren when an infra-red sensor detects movement. Why is it usually classed as monitoring rather than control?

Skill unlocked

Embedded systems, monitoring and control, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
Embedded systems, their benefits and drawbacks, monitoring against control, sensors and actuators, and feedback.