O Level Computer Science 2210 · Area 1 · Computer systems

Automated systems of sensors and actuators

An automated system is a loop: a sensor measures, a microprocessor compares the reading with a stored value and decides, and an actuator acts on the world. Understanding that loop is what earns the marks, because exam questions ask you to describe it step by step and then to weigh what is gained and lost in one particular setting. Marks are lost by naming only two of the three parts, or by giving general points about machines rather than points that belong to the scenario.

Not started

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.

An automated system is a loopThe microprocessor compares the sensor reading with a stored value and decides whether to act.Without the feedback path it is not a control system - it is just a sequence.sensormeasures a physical valuemicroprocessorcompares with the stored valueactuatorchanges something physicalfeedback: the sensor measures the result of the actionAdvantage: it works without a person watching, and reacts the same way every time.
A closed control loop: a sensor measures a physical quantity and passes the reading to a microprocessor, which compares it with a value stored in its program and signals an actuator, whose physical action changes the environment, with a feedback path returning from the actuator to the sensor so that the next reading starts the loop again.

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.

PartType of deviceIts job in the loop
SensorInput deviceMeasures a physical quantity such as temperature, light, moisture, pressure or movement and sends the reading to the microprocessor
MicroprocessorProcessing device on a single chipRuns the stored program, compares the reading with the stored value and decides whether the output should change
ActuatorOutput deviceConverts the signal into a physical action such as turning a motor, opening a valve or switching on a heater
Three parts, three jobs: measure, decide, act. If your answer names a sensor and an actuator but never says that the microprocessor compares the reading with a stored value, you have described a switch, not an automated system.

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.

SystemSensor neededData capturedActuator and action
Greenhouse that waters its plantsMoistureHow much water is in the soilA valve or pump that opens and waters the plants
Street lightingLightThe level of light in the surroundingsA switch or relay that turns the lamps on and off
Factory guard on a machineProximityHow close an object or person is to the machineA motor or relay that stops the machine
Automated ventilationTemperatureThe temperature of the airA motor that opens a vent or a fan that starts
Warning system for a confined spaceGasThe concentration of a gas in the airA buzzer or lamp that gives a warning
Match the sensor to the quantity and the actuator to the action. 'A sensor senses and an actuator actuates' earns nothing, because it says nothing about this system.

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.

AdvantageIts other side
Runs continuously without breaksNeeds a constant power supply and careful maintenance to keep running
Produces consistent qualityCannot vary its behaviour for an unusual case, because it only follows its rules
Works in dangerous conditionsThe equipment in those conditions is expensive and hard to repair
Reacts faster and more precisely than a personA wrong reading is acted on just as fast, before anyone can intervene
Reduces the cost of labourReduces the number of jobs, and needs skilled staff to maintain it
Needs no one presentIf it fails, there is nobody there to notice or to take over
A disadvantage is not 'it can break down' on its own. Say what the breakdown means here: a failed sensor leaves a street unlit, or a stopped line halts production until an engineer arrives.

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.

SettingWhat is automatedAdvantage that belongs hereDisadvantage that belongs here
IndustryA robot arm welds or paints parts on a line, with sensors checking positionIdentical work at consistent quality, hour after hourA part in the wrong position cannot be dealt with, so the line stops
TransportA shuttle follows a route, using sensors for obstacles and positionRuns to a precise timetable and never gets tired or distractedCannot judge an unexpected hazard, such as debris on the road, as a person would
AgricultureMoisture sensors decide when a field is wateredWater is used only when the crop needs itThe equipment is costly and needs maintenance a small farm may not have
WeatherA station measures temperature, pressure, wind and rainfall continuouslyReadings are taken day and night where people cannot stayA sensor out of calibration sends wrong data and nobody is there to notice
GamingSensors in a controller or camera detect the player's movementThe game responds to real movement, which feels naturalFast or unusual movement is misread and the game reacts wrongly
LightingA light sensor switches street lamps on and offLamps burn only when needed, which saves energyA dirty or faulty sensor can leave a street in darkness
ScienceInstruments take readings under the sea, in a laboratory or in spaceMeasurements continue where a person could not workThe instrument collects only what it was programmed to collect
Write the name of the setting into your answer. If the sentence would still be true of any automated system anywhere, it is probably worth half a mark at most.

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 greenhouse that looks after itself

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.

Street lighting

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 production line

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.

A weather station on a hillside

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.

A game controller

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.

Q1Name the three parts that work together in an automated system.
A sensor, a microprocessor and an actuator.
Q2What does a sensor do?
It measures a physical quantity in its surroundings, such as temperature, light, moisture, pressure or movement, and converts the measurement into data for the microprocessor.
Q3What is the microprocessor's job in the loop?
It runs the control program: it compares each reading from the sensor with the value stored in the program and decides whether the output should change.
Q4What does an actuator do?
It converts a signal from the microprocessor into a physical action, such as a motor turning, a valve opening or a heater switching on.
Q5Why is the sensor reading taken again after the actuator acts?
Because the actuator has changed what the sensor measures, so the new reading shows the effect of the action and the system can correct itself if the value is still wrong.
Q6What is feedback in an automated system?
The return path from the effect of the action back to the input: the changed environment is measured again and that reading drives the next decision.
Q7Which sensor would a system use to decide when to water a field?
A moisture sensor, which measures how much water is in the soil.
Q8Give two advantages of an automated system.
Any two of: it runs continuously without breaks; it produces consistent results; it can work in conditions that would harm a person; it reacts faster and more precisely; it needs no one present.
Q9Give two disadvantages of an automated system.
Any two of: expensive to design, install and maintain; needs skilled staff; a failure stops the whole process; it may reduce the number of workers needed; it cannot handle anything outside its programmed rules; a faulty sensor may go unnoticed.
Q10Why can a faulty sensor be worse than no sensor?
Because a wrong reading is still a plausible one: the microprocessor compares it with the stored value and acts confidently on bad data, so the fault continues silently until a person notices.
0 of 10 marked as known

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.

StateAO11 mark
State the name of the output device in an automated system that converts a signal into a physical action.

Mark scheme — tick each point you actually made

Examiner tip: One word is enough. Do not describe what it does when the question only asks for the name, but make sure the word is actuator and not motor, since a motor is one example of one.
DescribeAO13 marks
Describe how a sensor, a microprocessor and an actuator work together in an automated system.

Mark scheme — tick each point you actually made

Examiner tip: Three parts, three marks, in the order in which they act. The comparison with the stored value is the step that most answers leave out.
DescribeAO24 marks
A car park barrier opens automatically when a vehicle arrives. A proximity sensor detects the vehicle and a motor raises the barrier. Describe how this automated system works, including what happens after the vehicle has passed.

Mark scheme — tick each point you actually made

Examiner tip: The last two marks are for the return half of the loop. A system that raises the barrier and never lowers it is not automatic, it is broken.
ExplainAO24 marks
A farm uses an automated system to water its crops, with moisture sensors in the soil. Explain one advantage and one disadvantage of using this system rather than watering on a fixed timetable.

Mark scheme — tick each point you actually made

Examiner tip: Each advantage and each disadvantage needs a consequence attached. 'It saves water' is a claim; 'it waters only when the soil is dry, so less water is used' is an explanation.
EvaluateAO35 marks
A supermarket is considering replacing staff who check the temperature of its freezer cabinets with an automated system of sensors, a microprocessor and an alarm. Evaluate the advantages and disadvantages of this change.

Mark scheme — tick each point you actually made

Examiner tip: An evaluate answer needs both sides and a decision. Say under what conditions the change is worth making, rather than ending with 'it depends'.
DescribeAO26 marks
An automated system controls the lighting in an office so that lights switch on when someone enters a room and off when the room is empty. Describe how the system works, and describe two disadvantages of using it.

Mark scheme — tick each point you actually made

Examiner tip: The two disadvantages must both be consequences of how this system works. 'It costs money' on its own is too general; 'a person sitting still is not detected, so the lights go out' is the kind of detail that earns the mark.
IdentifyAO12 marks
Identify the sensor that would be used in each of these automated systems: (a) a system that switches on a fan when the air in a room becomes too warm; (b) a system that warns when the air in a laboratory contains a harmful gas.

Mark scheme — tick each point you actually made

Examiner tip: Answer 'identify' questions with the name of the sensor and nothing else unless a reason is asked for. Adding a wrong reason can cost you a mark you had already earned.

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

A student wroteA student wrote: 'A sensor sends data to a microprocessor, which stores it, and an actuator shows it on a screen.'
Why it loses marksThe microprocessor is described as storage and the actuator as a display. In an automated system the microprocessor compares the reading with a value in its program and decides, and the actuator produces a physical action in the world rather than showing information.
The answer that scoresThe sensor measures a physical quantity and sends the reading to the microprocessor. The microprocessor compares the reading with the value stored in its program and decides whether the output should change. If it should, the microprocessor signals an actuator, which carries out a physical action such as opening a valve, starting a motor or switching on a heater.
A student wroteA student wrote: 'The system is automated because it uses a computer instead of a person, so it is more accurate.'
Why it loses marksThis gives no mechanism and makes an unsupported claim. The system is automated because it measures, compares and acts in a repeating loop without intervention; and it is consistent rather than automatically accurate, because a wrong reading is acted on just as confidently as a right one.
The answer that scoresThe system is automated because a sensor measures the environment, a microprocessor compares the reading with a stored value and signals an actuator, and the actuator's action changes what the sensor measures next. It is consistent because the same comparison is made every time, but its accuracy depends on the sensors being correct and calibrated.
A student wroteA student wrote: 'An advantage is that it is cheap, and a disadvantage is that it is expensive.'
Why it loses marksBoth points contradict each other and neither is tied to the scenario. An automated system is expensive to design, install and maintain; its savings come later, from running continuously without wages. A bare pair of opposites also earns nothing in a scenario question.
The answer that scoresIn this setting the advantage is that the system works continuously and produces the same result every time, so the job no longer depends on how tired or distracted a person is. The disadvantage is the cost of the equipment and of the skilled staff needed to install, calibrate and repair it, together with the fact that a failure stops the process completely.
A student wroteA student wrote: 'If the sensor is broken the system will still work because the microprocessor can check it.'
Why it loses marksA microprocessor has nothing to compare against unless it has been programmed with a check, such as a plausible range or a second sensor. Normally a faulty sensor simply produces a wrong but believable reading, and the loop acts on it.
The answer that scoresA faulty sensor sends a wrong reading, and the microprocessor compares that wrong reading with the stored value and reaches a wrong decision. Unless the program includes a check, such as a valid range or a comparison with another sensor, the fault is invisible, and the system may keep acting on bad data until a person notices.

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.