Objective: to introduce the basics of different types of data through engagement in an interactive and collaborative exercise.
Duration: 25 minutes
Materials: relevant objects (blocks, cards etc.), papers for notes
Procedure:
Objective: to gain practical understanding of how smart home automation can improve quality of life and the role of conditional statements.
Duration: 25 minutes
Materials: Arduino board and breadboard, LED lights, Motion sensor, Light sensor, Temperature and humidity sensor, Jumper wires, USB cable, Computer with Arduino IDE
Procedure:
Objective: to practise and develop understanding of conditional statements in programming.
Duration: 45 minutes
Materials: Various sensors, (light, sound, temperature, motion etc), Arduino boards/Raspberry Pi computers, Cables and breadboards to connect the sensors and microcontrollers, Computers with programming software installed, such as the Arduino IDE or Python
Procedure:
Objective: to understand the concept of loops in programming and gain familiarity with the illustration of loops in solving a real-life problem.
Duration: 20 minutes
Materials: Various sensors, (light, sound, temperature, motion etc), Arduino boards/Raspberry Pi computers, Cables and breadboards to connect the sensors and microcontrollers, Computers with programming software installed, such as the Arduino IDE or Python.
Procedure:
Now I want you to recall the farmer that we’ve worked on before. The farmer grows crops and needs to water them every single day in order to keep them healthy. The farmer uses a water can to water each plant individually, but this is very time-consuming and and she gets tires from this tedious work.
The teacher can use props and other sensory elements to make it more memorable, e.g. use a toy watering can and a small plot of soil with plants to demonstrating the water of crops.
One day, the farmer hears about the sprinkler system mentioned by another farmer in the village. a new invention that can water all the plants at once and can be set to water the plants automatically at the same time every day. The farmer learns about the sprinkler system and decides to install one in her fields.
At this point, the teacher can explain how the sprinkler system uses a loop to water the plants automatically. The program that controls the sprinkler system repeats the instructions to turn on the water and water the plants for a set amount of time, and then it repeats the instructions again at the same time the next day.
“How could the farmer use a loop to water her crops more efficiently?“
“What would happen if the sprinkler system didn’t use a loop to repeat the instructions?”
