Users Manual
CLASS 3
152
Coding Dancing Robots
The dancing robot needs to create a total of three scripts. First, it consists of a script for starting and stopping
the program and infrared sensor recognition, a script for turning on the four LED sensors in sequence, and a
script for activating the motor. The program will check whether the infrared sensor is recognized or not and
move accordingly. Check the flowchart below and think of the program as repeating. The dotted line will be the
individual script.
Activity
Turn on
the four LEDs
in order
Did you put
your hands
on the infrared
sensor?
Yes
Program start
Turn on
motor
Program finish