ICT at key stages 1 and 2 (Year 6)
Unit 6C: Control and monitoring - What happens when...?
Section 2: SHORT FOCUSED TASKS
|
|
Objectives |
| Children should learn: |
- key idea: that a switch can cause an event to occur
- technique: to use 'If ...then...' and 'repeat forever'
|
Activities |
|
Outcomes |
|
Children: |
- Remind the pupils of the simple procedure used to make a lightbulb come on. Explain that the computer is going to have an input device added to it - in this case a simple switch. When the switch is pressed the lightbulb will come on. The children will need to understand the concept of an endless loop - repeat forever - because the computer has to check continually if the switch has been pressed. Write a simple procedure with the children to produce this effect, eg
repeat forever
if Input 1 on then lamp
end repeat
where lamp is a simple procedure to turn on the bulb, wait two seconds and switch it off.
- Ask the class to work in small groups to check that the bulb always comes on when the switch is pressed.
|
|
- learn that an input device can be used to cause an event
|
|
Points to note |
This type of switch is not the same as a light switch or on/off switch since it causes a procedure to occur. Extend the lesson by making the procedure 'lamp' more complex.
|
|
|
This unit is divided into sections. Each section contains a sequence of
activities with related objectives and outcomes. You can view this unit by
moving through the sections or print/download the whole unit.
|
|
|