Automated Systems
How sensors, a microprocessor and actuators work together to control a process with no person taking part, in contexts from street lights to chemical plants, and how to judge an automated system for a given scenario.
WATCH IT EXPLAINED
EXPLORE IT IN 3D
The greenhouse that runs itself
A sensor, a microprocessor and its actuators keep these seedlings warm, aired and watered with no one watching. Build the loop, test it, break it — then take it out to a street at dusk.
What makes a system automated
In an automated system, a sensor measures, a microprocessor decides and an actuator acts, again and again.
An automated system controls a process without a person taking part. Think of a greenhouse that waters its own plants. Sensors, a microprocessor and actuators are used in collaboration (they work together):
| Part | Its job | In detail |
|---|---|---|
| Sensor | measures | something in the real world: temperature, light, pressure, moisture |
| Microprocessor | compares and decides | compares the reading with a stored value; decides whether anything must change |
| Actuator | acts | carries out the action, for example opening a valve; a motor, pump, valve, heater or relay |
Then the cycle repeats, for as long as the system is running.
A microprocessor is a type of integrated circuit on a single chip. It is usually part of an embedded system: a computer built into a device to perform one dedicated function.
Sensors measure, they never decide
A sensor only measures and sends readings; it never decides and never switches anything on.
A sensor measures a physical quantity. For example:
- temperature
- light
- pressure
- moisture
- pH
- proximity (how close an object is)
It sends each reading to the microprocessor.
Many sensors give an analogue signal: a voltage that can take any value in a range. A microprocessor can only process digital data. So an analogue-to-digital converter (ADC) first turns the signal into a binary number.
Watch out:A sensor never decides anything and never switches anything on. "The sensor turns on the heater" is wrong. The microprocessor decides, and an actuator acts.
The microprocessor compares and decides
The microprocessor compares each reading with a value a person set in advance, and decides what to do.
The microprocessor compares each reading with a stored value, also called a preset value. Then it decides whether action is needed.
A person sets the stored value in advance. After that, nobody needs to watch.
Example:A street light. If the light level is below 50 lux, the microprocessor sends a signal to switch the lamp on. Otherwise it switches the lamp off.
In the code, the lines about the sensor and the lamp are words, not real pseudocode. Drag the reading across 50 lux in the figure and watch the decision change.
REPEAT Light ← the light sensor's reading IF Light < 50 THEN switch the lamp ON ELSE switch the lamp OFF ENDIF UNTIL FALSE
Actuators make it happen
An actuator turns the microprocessor's signal into real, physical action.
An actuator is a device that turns a signal from the microprocessor into physical action.
| Actuator | What it does |
|---|---|
| motor | turns |
| pump | runs |
| valve | opens or closes |
| heater | warms up |
| relay | switches a lamp on |
Example:In a watering system, the soil moisture falls below 40 %. The microprocessor signals the valve, and water flows to the crops.
A simple on or off signal needs no converter. Some actuators need an analogue signal, for example to set a motor's speed. Then a digital-to-analogue converter (DAC) converts the microprocessor's output first.
The loop never stops
The system measures, decides and acts again and again, so it keeps responding as things change.
An automated system monitors continuously (it never stops checking). After the actuator acts, the sensor takes the next reading.
Example:In a car that can brake by itself, a proximity sensor measures the gap to the car ahead. The car ahead slows down and the gap falls below 30 m: the brakes are applied. The gap grows again: the brakes come off.
Exam:For "describe how the system works", write this loop for the scenario you are given, with its own sensor, stored value and actuator.
- The sensor measures
___(the gap to the car ahead). - If the reading is analogue, an ADC converts it.
- The microprocessor compares it with the stored value.
- If action is needed, it sends a signal to the actuator.
- If the actuator needs analogue, a DAC converts it.
- The actuator
___(applies the brakes). - The loop repeats: the next reading is taken.
Any scenario, the same four answers
For any automated system, name the sensor, what is compared, the actuator and what the actuator does.
The syllabus lists seven contexts: industry, transport, agriculture, weather, gaming, lighting and science. For any of them, give four answers:
- the sensor
- what the microprocessor compares
- the actuator
- what the actuator does
One example for each context:
| Context | Sensor | Actuator, and what it does |
|---|---|---|
| industry | temperature | valve lets in cooling water |
| transport | proximity | brakes slow the car down |
| agriculture | moisture | valve lets water flow |
| weather | pressure | may have none: sends data |
| gaming | accelerometer (senses movement) | vibration motor shakes it |
| lighting | light | relay switches the lamp on |
| science | temperature | heater warms the incubator |
Watch out:Not every automated system moves something. An automated weather station measures temperature, humidity and air pressure. It stores the readings and sends them to a forecasting centre. It may have no actuator at all.
Advantages and disadvantages, for this scenario
An automated system is fast, tireless and safe, but costly and can fail; in the exam, pick points that fit the scenario.
| Advantages | Disadvantages |
|---|---|
| responds faster than a person | expensive to set up |
| works 24 hours a day | needs maintenance |
| gives consistent and accurate results | fails if a sensor fails |
| works in places that are too dangerous for people | cannot cope with a situation it was not programmed for |
| costs less to run over time | can be hacked |
| leaves fewer jobs for people |
Exam:Choose points that fit the scenario. "The valve opens as soon as the soil is dry, even at 3 a.m." is better than "it is faster".
The box below gives one advantage (+) and one disadvantage (−) for each of the seven contexts.
CONTEXT
+ advantage / - disadvantage
lighting
+ lamps come on at dusk, every day
− a failed sensor: lamps may stay off
agriculture
+ it waters only when the soil is dry
− a stuck valve: crops flood or dry out
transport
+ the brakes react faster than a driver
− the car's computer could be hacked
industry
+ nobody works near the hot reactor
− it cannot cope with unplanned faults
science
+ it keeps 37 °C all night, every night
− expensive to set up and to maintain
weather
+ readings day and night from far away
− a storm can damage it, far from help
gaming
+ the game reacts to every tilt at once
− the controller costs more to makeWhich sensor would an automated system use for each job?
PICK ONE, THEN PICK ITS GROUP
- empty
- empty
- empty
- empty
- empty
KEY TERMS
CHECK YOURSELF
1.In an automated system, what converts a sensor's analogue reading for the microprocessor?
2.What does the microprocessor do with the sensor reading?
3.Which is a genuine disadvantage of an automated system?
4.A street light's rule is 'if the light level is below 50 lux, switch the lamp on; otherwise switch it off'. The sensor reads exactly 50 lux. What happens?
5.When does an automated system need a DAC?
6.A farm waters its crops automatically. Which advantage fits this scenario best?