Week 26 · Unit 11: Artificial Intelligence · 3 lessons
1
How a control system works
Computing 5: Unit 11, pp. 145–158
GoalDescribe a control system by its input, its process and its output.
New words
control system · a system in which a processor uses input data to decide what an output device doesinput device · a part that sends data into a system, such as a sensor or a buttonprocessor · the part that follows a program and decides what to do with the dataoutput device · a part that does something, such as moving, making a sound or giving light
Explanation
A control system makes a machine do a job by itself. It has three parts. An input device sends data in. This can be a sensor that notices movement, or a button that is pressed. The processor follows a program and decides what to do with the data. An output device then does something, such as moving, ringing or switching on a light. This is called the input–process–output model. It helps us to understand any system, big or small, and to find the part that fails when a system does not work.
motion sensor sees someone→program: if movement, open→motor slides the door
Worked examples
Part
Automatic door
input
a motion sensor notices a person
process
the program checks: movement? then open
output
a motor slides the door open
The automatic door of a shop is a control system. Its parts fit the model.
System
Input
Process
Output
school bell
the clock time
if time = 9:00, ring
bell rings
night lamp
light sensor reading
if it is dark, switch on
lamp lights
hand tap
sensor sees hands
if hands, let water flow
water flows
Many other systems follow the same three-part model. Each row is a system that runs by itself.
The night lamp as a flowchart. The program reads the sensor and picks one of two paths.
Class activity
Human control system (3 players, paper cards). Player 1 is the input device and shows a card with a sun or a moon. Player 2 is the processor and holds the rule ‘if you see a moon, tell the output to switch on’. Player 3 is the output device and lifts a paper lamp for ‘on’ and lowers it for ‘off’. Run 8 cards in a row. Then change the rule to ‘if you see a sun, switch on’. What changed, and what stayed the same?
Practice
1
Fill in the missing parts of these three systems.
System
Input
Process
Output
street lamp
?
if it is dark, switch on
lamp lights
lift button
button pressed
find the floor
?
alarm clock
the time
?
sound
Street lamp: input is a light sensor reading. Lift button: output is the lift moving to the floor. Alarm clock: process is checking whether the time equals the alarm time.
2
Describe the input, the process and the output of a washing machine timer that stops the machine after 40 minutes.
Input: the clock time since the start. Process: the program checks whether 40 minutes have passed. Output: the motor stops.
3
What does this system do when the temperature is 22 degrees? What does it do when the temperature is 30 degrees?
At 22 degrees the answer is no, so the fan is switched off. At 30 degrees the answer is yes, so the fan is switched on.
4
True or false? (a) A sensor is an output device. (b) The processor follows a program. (c) A loudspeaker can be an output device. (d) A button can be an input device.
(a) False, a sensor is an input device. (b) True. (c) True. (d) True.