Lesson 8 “Ultrasonic obstacle avoidance”
Children, what we need to learn in this lesson is robot ultrasonic obstacle avoidance. We can set up a roadblock to the front of the robot (or a loop of cartons for a robot to run inside), and then we can see that the robot will go all the way, and if there are obstacles in front of the robot, it will escape the barrier. 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
In this lesson, children should check their own ultrasonic connection. VCC corresponds to VCC and GND corresponds to GND. In addition, the demand for voltage is higher than that of ultrasonic. It is recommended to fill up the electric capacity and do the experiment again.
The code of the experiment: Lesson 8 Ultrasonic obstacle avoidance.rar