26
5.Gesture control
In this episode, we will continue to use obstacle avoidance sensors to
achieve new gameplay!
Software Command
Gets the status of the No.1
obstacle avoidance sensor
Gets the status of the No.2
obstacle avoidance sensor
Creat a target: Using 2 obstacle avoidance sensors at the top of the
Qbot to determine the direction of movement of the object ahead, so as to
make a left or right turn
6.illuminate the night
LED hardware principle: There are two large LED lights with 1cm
diameter on the Qbot. We can control the situation of lights(off/ on) by
programming
Software Command:
Turn on or off the Headlight.
Create a target: Qbot travels along the black track which has been
marked . When traveling to the designated section, 2 LED lights of Qbot