Lesson 6: Clap Sensing
Introduction to inputs (sensors) – Students learn how to make the robot respond to outside stimulus (claps).
In this lesson students will learn about how a robot can sense outside stimulus and how to program the robot’s response and create robot behaviour.
Program 1 – Flash LED in response to a clap (Worksheet 6.1)
Students become familiar with programming the robot to wait for an event to occur before continuing the program. In this case the event is a loud sound such as a clap.
Program 2 – Drive in response to a clap (Worksheet 6.2)
Students now incorporate learning from previous lessons to drive the robot in response to an event (clap).
Program 3 – Dance in response to clapping (Worksheet 6.3)
Students create their own robot movements in response to clapping. They have two options:
1. Create a robot dance routine with multiple dance manoeuvres
2. Create a program that drives the robot through an obstacle course in response to claps
Fun class activity
Select the best dance routine and have all other students program their robot with it. Then place all the robots together and have the students clap in time to see all the robots dance together. You’ll need to count the claps in with 1, 2, 3, 4… Clapping starts at 5, and continues for 6, 7, 8…