Lesson 7 “Following”
Children, what we learn in this lesson is robot following. We can use infrared obstacle avoidance sensor to achieve robot following, or we can use ultrasonic sensor to achieve it. In this lesson, we learn to follow the infrared following. Infrared following can realize that if the robot has an object in front of the obstacle avoidance sensor, the robot will follow. If there is no object in front of the obstacle avoidance sensor, the robot will stop. Is it very interesting? Let's try the kids together.
● 1 X USB cable
● 1 X micro:bit robot
Then the micro:bit is connected to the computer through USB, and the computer will pop up a U disk and click the URL in the U disk to enter the programming interface. Input this URL https://github.com/lzty634158/yahboom_mbit_en to get the package.
3.Search for blocks
This experiment must be carried out indoors to reduce interference from sunlight to infrared receiver.
The code of the experiment: Lesson 7 Following(Infrared).rar
The code of the experiment: Lesson 7 Following(ultrasonic).rar