10% Off For Your First Order, Code:Elephant10



Micro:bit Smart Robot Tutorial 3.7 Lesson 7 “Following”

Posted by SuFiona on

Lesson 7 “Following”

1.Learning goals

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.

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 

4.Combine blocks

image.png

Attentions:  

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

0 comments

Leave a comment

Please note, comments must be approved before they are published