Day 3 - Section 0 - Clap sensing
After the completion of this section the students will be able to:
- flash the LEDs of the robot in response to a clap
- drive the robot in response to a clap
- make the robot dance in response to clapping
Chapter 4.1 - Flash LED in response to clap
Write the following program to have the Edison robot flash the left LED in response to a loud sound such as a clap.
In this program the first event wait icon is not being used to wait for time. Instead the program will not continue from this point until a specific event occurs.
Within the first event wait icon’s properties box select the ‘Event happens’ radio button and then select the event type you think is required to respond to a clap.