AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Smart devices and sensors

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.

Worked examples
PartAutomatic door
inputa motion sensor notices a person
processthe program checks: movement? then open
outputa motor slides the door open
The automatic door of a shop is a control system. Its parts fit the model.
SystemInputProcessOutput
school bellthe clock timeif time = 9:00, ringbell rings
night lamplight sensor readingif it is dark, switch onlamp lights
hand tapsensor sees handsif hands, let water flowwater flows
Many other systems follow the same three-part model. Each row is a system that runs by itself.
Startread the light sensoris it dark?yesnoswitch the lamp onswitch the lamp offEnd
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.
SystemInputProcessOutput
street lamp?if it is dark, switch onlamp lights
lift buttonbutton pressedfind the floor?
alarm clockthe time?sound
2
Describe the input, the process and the output of a washing machine timer that stops the machine after 40 minutes.
3
What does this system do when the temperature is 22 degrees? What does it do when the temperature is 30 degrees?
Startread the thermometertemperature > 25?yesnoswitch the fan onswitch the fan offEnd
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.