5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



Micro:bit Smart Robot Tutorial 1.5 Lesson 5 “Direction follower”

Posted by SunFiona on

1.Learning goals

image.png image.png image.png image.png

image.png  image.png   image.png image.png

image.png 

After downloading the program, the bit development board can be swung to the east, west, south, north, northeast, northwest, southeast, southwest eight different directions. You can see that no matter which direction the micro:bit swings, the pointer on the dot will point to this direction.

2.Preparation

Hardware:

●  Micro: bit Board X 1 

●  Micro USB Cable X 1

●  AAA batteries X 2

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.

3.Search for blocks

image.png 

image.png 

compass heading: "the direction of the compass",

In micro:bit, we use the degree to indicate its direction by default.

image.png 

image.png 

image.png 

image.png 

4.Combine blocks

image.png 

image.png 

 The code of the experiment: Lesson 5 Direction follower.rar

0 comments

Leave a comment

Please note, comments must be approved before they are published