When you download the program, you can see the number on the dot matrix of the car, and if the hand is shielded in front of the ultrasonic, you can see that the number is turned into a digit. Ultrasound can measure the distance of 2-400 (CM). Let's have a look at the effect together.
● USB cable X1
● micro:bit robot X1
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 9 Ultrasonic sensor.rar