Summer Sale: 5% OFF Over $49, Code: Elephant5; 10% OFF Over $99, Code:Elephant10



Micro:bit Smart Robot Tutorial 3.8 Lesson 8 “Ultrasonic obstacle avoidance”

Posted by SuFiona on

Lesson 8 “Ultrasonic obstacle avoidance”

1.Learning goals

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.

image.png 

2.Preparation

Hardware:

●  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

image.png 

image.png 

image.png 

image.png 

4.Combine blocks

image.png 

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 

0 comments

Leave a comment

Please note, comments must be approved before they are published