Automated Systems
A central CIE topic. Automated systems use sensors, microprocessors and actuators in a continuous feedback loop, with no human in the loop most of the time.
Modern greenhouses can produce a tomato crop with no humans setting foot inside for weeks. Sensors measure temperature, humidity and soil moisture every second; a microprocessor compares the readings to target values and decides whether to open vents, switch on heaters or trigger irrigation. The whole growing cycle is a giant feedback loop.
The sense-process-act loop
+--------+ reading +----------------+ signal +----------+
| sensor |------------>| microprocessor |----------->| actuator |
+--------+ +----------------+ +----------+
^ |
| physical change in the world |
+------------------------------------------------------+Each loop iteration: the sensor reads a value, the microprocessor compares it against a stored target, and an actuator either changes the environment or does nothing. The next reading then reflects the change. This is feedback.
Greenhouse temperature control
Target temperature: 22 degrees C
Loop (every 5 seconds):
reading = read_sensor(temperature)
IF reading > 24 THEN
open_vents()
switch_off(heater)
ELSE IF reading < 20 THEN
close_vents()
switch_on(heater)
ELSE
do_nothing()
ENDIF
ENDLOOPThe system never "finishes". It keeps looping for as long as it is powered, constantly sensing and responding.
Where automated systems are used
- Transport: traffic lights, ABS braking, autopilot, level crossings.
- Agriculture: automated irrigation, livestock feeders, climate-controlled greenhouses.
- Manufacturing: robotic assembly lines, quality-control vision systems.
- Domestic: central heating thermostats, washing machines, smart lighting.
- Healthcare: insulin pumps, ventilators, automated drug dispensers.
Advantages: faster reaction, runs 24/7, more consistent, safer in dangerous environments.
Disadvantages: high setup cost, sensor failure can cause harm, jobs displaced, cannot easily handle unforeseen situations.
Beyond the basics
Consequences: the crop overheats and may die; energy is wasted heating an already-hot greenhouse; humidity collapses, possibly damaging plants further.
Design fix: add a second, independent temperature sensor and have the microprocessor compare them. If they disagree by more than a small tolerance, the system raises an alert and stops actuating until a human checks. This is called sensor redundancy and is standard in safety-critical systems like aircraft and hospitals.
Sensors and the actions they trigger
| Sensor | Quantity measured | Typical actuator | Real example |
|---|---|---|---|
| Temperature | Heat in degrees C | Heater, fan, vent | Greenhouse climate control |
| Light | Brightness (lux) | Lamp, blind motor | Street lights that turn on at dusk |
| Moisture | Water content of soil or air | Irrigation valve | Smart-farm watering system |
| Pressure | Force per area | Alarm, motor, valve | Burglar alarm pressure pad |
| Infra-red | Heat or motion | Camera, alarm | Automatic door at a supermarket |
| pH | Acidity of a liquid | Dosing pump | Swimming-pool chemical balancer |
A sensor only reads a quantity. It does not decide anything. The microprocessor compares the sensor reading to a stored target and then sends a signal to an actuator (heater, motor, valve), which is what physically changes the environment. Saying "the sensor turns the heater on" loses marks; the sensor merely supplies the value the processor uses to decide.
A six-mark exam question with mark scheme
Question (CIE-style, 6 marks): Describe how an automated central-heating system uses sensors, a microprocessor and actuators to keep a house at 20°C.
- A temperature sensor takes regular readings of the room temperature.
- The analogue reading is converted to digital by an analogue-to-digital converter.
- The digital value is sent to the microprocessor.
- The microprocessor compares the reading to the stored target of 20°C.
- If the temperature is below 20°C, the microprocessor sends a signal to the boiler (actuator) to turn on.
- If the temperature is at or above 20°C, the microprocessor sends a signal to turn the boiler off.
- The cycle repeats continuously without human intervention.
Beyond the basics
2. Average several readings, or sample less often. If the sensor reading flickers because of a draught from a door, a single low reading triggers the boiler unnecessarily. Taking the mean of (say) the last six readings smooths out short spikes and stops the boiler reacting to noise.