Week 26 · Unit 11: Be a robot controller · 3 lessons
1
Input, process, output
Computing 4: Unit 11, pp. 152–167
GoalDescribe a control system as an input, a process and an output, and find control systems at home, in factories, in robots and in vehicles.
New words
control system · a system that uses input, a processor and output to control a machineinput device · a part that records data or takes a signal into the systemprocessor · the part that uses the data to decide what to dooutput device · a part that does the job, such as a motor, a lamp or a speaker
Explanation
Many machines have a computer inside that controls them. A control system has three parts. An input device records data, such as a button press or a measurement. The processor uses the data and decides what to do. An output device does the job, for example a motor that turns, a lamp that lights or a speaker that beeps. Control systems are found in homes, in factories, in robots and in vehicles. A control system often repeats the three steps again and again, many times a second, so the machine reacts quickly.
motion sensor notices a person→processor decides: open the door→motor slides the door open
An automatic shop door. The input device is a motion sensor that notices a person coming near. The processor decides that someone wants to enter. The output device is a motor that slides the door open. When nobody is near any more, the processor tells the motor to close the door.
Reading
Rule used
Window
30
above 28
opens
26
between 24 and 28
stays as it is
23
below 24
closes
25
between 24 and 28
stays as it is
A greenhouse window. A temperature sensor reads the air every minute. The processor follows two rules: open the window when the temperature is above 28 degrees and close it when it is below 24 degrees. In between, the window stays as it is. A motor does the opening and closing.
Place
Machine
Input
Output
home
garden sprinkler
soil moisture sensor
water valve opens
factory
conveyor belt
sensor sees a box at the end
belt motor stops
robot
toy floor robot
bump sensor touches a wall
wheels stop and turn
vehicle
parking aid
distance sensor
beeps get faster
Control systems work in many places. In every row the sensor is the input, the processor decides and something moves, lights up or beeps as the output.
Class activity
Be a control system (with family or friends): you need three people and a paper door that can be pushed open and shut. Person 1 is the input device and calls out “person!” whenever somebody walks near the door. Person 2 is the processor and decides: if the input says “person!”, shout “open!”, otherwise shout “close!”. Person 3 is the output device and moves the paper door. Test it with different people walking past. What happens if the input is too slow? Then make a night light in the same way: the input says “dark” or “light”.
Practice
1
An automatic tap gives water when your hands are under it. Name the input, the process and the output.
?→processor decides→?
Input: a sensor notices your hands. Process: the processor decides that someone wants water. Output: a valve opens and the water flows.
2
Which of these probably has no computer control system: an automatic door, a skipping rope, a lamp that switches on at dusk, a freezer that beeps when its door is left open?
The skipping rope. The other three react to an input, so each has a control system.
3
An automatic night light has a light sensor. Fill in the three parts.
Part
Night light
input
?
process
?
output
?
Input: the light sensor measures how bright it is. Process: the processor checks if it is dark. Output: the lamp switches on when it is dark.
4
A greenhouse window opens when the temperature goes above 30 and closes when it goes below 26. It starts closed. The readings are 28, 31, 29, 27, 25, 28. What is the window doing after each reading?