Syllabus coverage
- Describe how sensors, microprocessors and actuators can be used in collaboration to create automated systems
- Identify the sensor suitable for a given automated system and describe the data it captures
- Describe the sequence by which a reading is compared with a stored value and an actuator is signalled
- Describe the advantages of an automated system used for a given scenario, from industry, transport, agriculture, weather, gaming, lighting and science
- Describe the disadvantages of an automated system used for a given scenario, including cost, maintenance and failure
Part of the O Level Computer Science syllabus 2210.
What makes a system automated
An automated system carries out a task without a person operating it. It is not simply a machine that has power: what makes it automatic is that it measures the state of something, decides what that measurement means, and then acts, over and over, without anyone turning a dial or pressing a switch.
Three parts make that possible. A sensor is an input device that measures a physical quantity in its surroundings and converts it into data. A microprocessor is a processor on a single integrated circuit chip; it runs the control program, and the program holds the values and rules that decide what should happen. An actuator is an output device that converts a signal into a physical action, such as a motor turning, a valve opening or a heater switching on.
Each part on its own is useless for this purpose. A sensor with nothing to read its output is just a component. A microprocessor with no sensor has nothing to judge, and with no actuator it can only report. The three have to work in collaboration, and the syllabus uses that word deliberately: the mark is for how they are connected, not for naming them.
| Part | Type of device | Its job in the loop |
|---|---|---|
| Sensor | Input device | Measures a physical quantity such as temperature, light, moisture, pressure or movement and sends the reading to the microprocessor |
| Microprocessor | Processing device on a single chip | Runs the stored program, compares the reading with the stored value and decides whether the output should change |
| Actuator | Output device | Converts the signal into a physical action such as turning a motor, opening a valve or switching on a heater |
The control loop, step by step
The parts are connected in a loop, and the order of the steps is what you should learn.
The sensor takes a reading of the physical quantity and passes it, as data, to the microprocessor. The microprocessor compares that reading with a stored value held in its program. The result of the comparison decides the output: if the reading is on one side of the stored value, the microprocessor sends a signal to an actuator to act; if it is on the other side, it sends a signal to stop or reverse the action, or sends nothing at all.
The actuator then changes the physical world, and that is the step students forget. Because the actuator has changed the thing the sensor is measuring, the next reading is different, so the sensor reports a new value and the loop runs again. This return path is called feedback: the effect of the action becomes the input to the next decision. Without it the system would act once and then be blind to the result.
A simple example is a room that heats itself. A temperature sensor reads the air temperature and sends it to the microprocessor. The program holds a target value. When the reading falls below the target, the microprocessor signals the heater to switch on; when the reading rises above it, the microprocessor signals the heater to switch off. The heater changes the temperature, the sensor reads the new temperature, and the cycle continues. The system is not switched on once and left; it is being corrected several times a minute.
- The sensor measures the physical quantity and sends the reading to the microprocessor.
- The microprocessor compares the reading with the value stored in its program.
- If the reading is outside the stored value, the microprocessor sends a signal to an actuator.
- The actuator produces a physical action that changes the environment.
- The sensor measures again, so the effect of the action becomes the input to the next decision.
Choosing the sensor and the actuator
A question may give you a scenario and ask which sensor is needed, or what data it captures. Choose by asking what physical quantity the system has to know about, not by choosing the most complicated sensor.
A greenhouse that waters itself needs a moisture sensor, because the quantity being controlled is how wet the soil is. A street lamp needs a light sensor. A system that stops a machine when a person's hand gets too close needs a proximity sensor. A system that checks the air in a mine needs a gas sensor. A greenhouse that opens vents when it gets too hot needs a temperature sensor. Others you may be asked about include pressure, humidity, pH, infra-red, level, flow, acoustic, magnetic field and accelerometer.
The actuator is chosen the same way, from the physical action required: a motor to move something, a valve or pump to control the flow of liquid or gas, a heater or cooler to change temperature, a lamp or buzzer to give a warning, a solenoid or relay to switch a larger circuit. Naming the action rather than the word 'actuator' is what turns a vague answer into a mark.
| System | Sensor needed | Data captured | Actuator and action |
|---|---|---|---|
| Greenhouse that waters its plants | Moisture | How much water is in the soil | A valve or pump that opens and waters the plants |
| Street lighting | Light | The level of light in the surroundings | A switch or relay that turns the lamps on and off |
| Factory guard on a machine | Proximity | How close an object or person is to the machine | A motor or relay that stops the machine |
| Automated ventilation | Temperature | The temperature of the air | A motor that opens a vent or a fan that starts |
| Warning system for a confined space | Gas | The concentration of a gas in the air | A buzzer or lamp that gives a warning |
Advantages of an automated system
The advantages all come from one fact: a machine can repeat a task indefinitely, in the same way, without becoming tired or bored.
An automated system can run continuously — through the night, through a weekend, through a holiday — because it does not need breaks, sleep or a wage. It is consistent: the same reading is compared with the same stored value every time, so the same decision is made every time, and quality does not drift as it does when different people do a job on different days. It can work in conditions that would harm a person, such as extreme heat, toxic gas, high pressure, deep water or a vacuum. It can react faster and more precisely than a person, because a microprocessor can compare readings many times a second. And it can operate in places where nobody is present — on a mountain, on a buoy at sea, inside a pipe — and keep recording.
There is also an economic advantage: once installed, the system does not need to be paid, so the cost of running that job falls, and staff can be moved to work that needs judgement.
Disadvantages of an automated system
The disadvantages are the mirror image of the advantages, and they are just as examinable.
Automation is expensive to design, build and install. It needs a power supply and is usually dependent on a network connection. It must be maintained and calibrated, which requires staff with technical skills, and those staff cost more than the workers the system replaced. If it fails, the whole process can stop at once, and there may be nobody on site who can take over by hand. It can reduce the number of workers needed for that job, which matters to the people concerned. Worst of all, it does exactly what it was programmed to do: an unexpected situation — an unusual item, an obstacle, a sensor that has drifted out of calibration — is handled badly or not at all, and a faulty sensor feeding wrong data produces confident wrong decisions at machine speed.
| Advantage | Its other side |
|---|---|
| Runs continuously without breaks | Needs a constant power supply and careful maintenance to keep running |
| Produces consistent quality | Cannot vary its behaviour for an unusual case, because it only follows its rules |
| Works in dangerous conditions | The equipment in those conditions is expensive and hard to repair |
| Reacts faster and more precisely than a person | A wrong reading is acted on just as fast, before anyone can intervene |
| Reduces the cost of labour | Reduces the number of jobs, and needs skilled staff to maintain it |
| Needs no one present | If it fails, there is nobody there to notice or to take over |
Answering a scenario question
The syllabus lists the settings you may be asked about: industry, transport, agriculture, weather, gaming, lighting and science. A scenario question gives you one of these and asks you to describe the system, or to give advantages and disadvantages of using it there.
The marks are in the detail of that setting. In industry, a robot arm welds or paints and sensors check that each part is in position; the gain is identical work all day, the cost is that a part arriving at the wrong angle stops the line. In transport, a shuttle bus follows a route using sensors to detect obstacles and its own position; the gain is a precise timetable without a driver, the cost is that it cannot judge an unexpected hazard as well as a person. In agriculture, moisture sensors decide when to irrigate; the gain is water used only when the crop needs it, the cost is equipment a small farm may struggle to maintain.
In weather, a station takes readings continuously in a place where nobody could stay; the cost is that a sensor drifting out of calibration sends wrong data with nobody there to spot it. In lighting, a light sensor switches lamps on only when needed; the cost is that a dirty sensor can leave a street dark. In gaming, sensors in a controller or camera detect the player's movement; the cost is that fast or unusual movement is misread. In science, automated instruments log readings under the sea or in space; the cost is that they collect only what they were programmed to collect.
A good answer is therefore shaped like this: one sentence on how the loop works in that setting, then one advantage and one disadvantage that would not make sense in a different setting.
| Setting | What is automated | Advantage that belongs here | Disadvantage that belongs here |
|---|---|---|---|
| Industry | A robot arm welds or paints parts on a line, with sensors checking position | Identical work at consistent quality, hour after hour | A part in the wrong position cannot be dealt with, so the line stops |
| Transport | A shuttle follows a route, using sensors for obstacles and position | Runs to a precise timetable and never gets tired or distracted | Cannot judge an unexpected hazard, such as debris on the road, as a person would |
| Agriculture | Moisture sensors decide when a field is watered | Water is used only when the crop needs it | The equipment is costly and needs maintenance a small farm may not have |
| Weather | A station measures temperature, pressure, wind and rainfall continuously | Readings are taken day and night where people cannot stay | A sensor out of calibration sends wrong data and nobody is there to notice |
| Gaming | Sensors in a controller or camera detect the player's movement | The game responds to real movement, which feels natural | Fast or unusual movement is misread and the game reacts wrongly |
| Lighting | A light sensor switches street lamps on and off | Lamps burn only when needed, which saves energy | A dirty or faulty sensor can leave a street in darkness |
| Science | Instruments take readings under the sea, in a laboratory or in space | Measurements continue where a person could not work | The instrument collects only what it was programmed to collect |
Key terms you must be able to define
- Automated system
- A system that carries out a task without a person operating it, by using sensors to measure, a microprocessor to decide and actuators to act.
- Sensor
- An input device that measures a physical quantity in its surroundings, such as temperature, light, moisture, pressure or movement, and converts the measurement into data.
- Microprocessor
- A processor built on a single integrated circuit chip. In an automated system it runs the control program and compares each reading with the value stored in that program.
- Actuator
- An output device that converts a signal from a microprocessor into a physical action, such as a motor turning, a valve opening or a heater switching on.
- Stored value
- The value or threshold held in the control program against which each sensor reading is compared, so that the system can decide whether to act.
- Feedback
- The return path in the loop: the actuator changes the environment, the sensor measures the change and the new reading becomes the input to the next decision.
- Control loop
- The repeating cycle of measure, compare, act and measure again that makes a system automatic and allows it to correct itself.
In context
2210 sets its questions inside systems a student already uses - a school network, a phone, a supermarket till, a vending machine, a website. These show how the theory is applied to a context you have not seen before, then you answer for the system you are given.
A moisture sensor buried in the soil sends a reading to the microprocessor. The program holds the value at which the crop needs water. When the reading falls below it, the microprocessor signals a valve to open and water the bed; when the reading rises above it, the valve closes. A temperature sensor in the same greenhouse works the other way round, opening a vent through a motor when the air gets too warm. The advantage is that the crop is watered when it needs it rather than on a fixed timetable, which saves water. The disadvantage is that a sensor left in one spot may not represent the whole bed, and the equipment needs a power supply and maintenance.
A light sensor on each lamp column measures the light level and sends it to a microprocessor, which compares it with a stored value. Below that value the lamps are switched on through a relay; above it they are switched off. No one drives round with a switch, and the lamps burn only when they are needed. The weakness is the same loop that makes it work: a sensor covered in dirt or a microprocessor that has failed leaves a whole street dark, and the failure is silent.
A robot arm welds a joint, while a proximity sensor confirms that the part is in position before the arm moves. If the sensor does not detect the part, the microprocessor stops the cycle through an actuator rather than welding thin air. The advantage is that every joint is made at the same speed and the same quality, all shift, and the guard action happens faster than a person could react. The disadvantage is that an unusual part, or a sensor reading wrongly, halts the line until someone with the right training arrives.
Sensors for temperature, pressure, wind speed and rainfall take readings continuously, and the microprocessor logs them and raises an alert when one passes a threshold. Nobody has to be there, which is the point: the station can sit where no one could stay through a winter. The limit is that the station records only what it was programmed to record, and a sensor that drifts produces plausible but wrong data with no one on site to question it.
An accelerometer in a controller detects how the player moves it, and the microprocessor compares that movement with the values the game expects in order to work out what the player has done. The advantage is that the game responds to the player's real movement, which cannot be done with buttons alone. The disadvantage is that a quick or unusual movement can be misread, so the game does something the player did not intend.
Flashcards
Click a card to flip it. Mark honestly — the tracker uses this.
Exam-style questions
7 questions, 25 marks. Write your answer and press Mark my answer — it is marked against the scheme and tells you which points you made and what would gain the next mark. You can still reveal the scheme and mark it yourself instead.
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Exam technique for this topic
- Describe the loop in order and name the comparison: the sensor measures, the microprocessor compares the reading with the stored value, and the microprocessor signals an actuator. Answers that skip the comparison lose the mark that shows understanding.
- When asked which sensor is needed, name the quantity being measured and the data it captures, not just the sensor. 'A moisture sensor, which measures how much water is in the soil' answers the question; 'a sensor' does not.
- Always finish the loop. The step that turns a sequence into a system is that the actuator changes what the sensor measures, so the next reading is different and the system corrects itself.
- For advantages and disadvantages, tie each point to the setting in the question. Working continuously matters in a factory running three shifts; reacting immediately matters for a guard on a machine.
- Do not claim that an automated system is more accurate than a person in every way. It is consistent, but a faulty sensor gives a wrong reading that the system believes completely.
Why students lose marks here
Where this fits in O Level Computer Science 2210
This page is one topic of Cambridge O Level Computer Science 2210. O Level Computer Science 2210 is the course home: every area and every topic in Cambridge's own order, the papers you sit and what each one tests, and the exam-practice tools. The full topic list, with each topic linked to its revision page, is on the O Level Computer Science 2210 syllabus page.