2.3 Car Run

Posted by Fiona Su on

1.Learning goals

In this lesson, we mainly learn how to control building block motor by micro:bit and Super:bit expansion board.

2.Programming method

Mode 1 online programming: First, we need to connect the micro:bit to the computer by USB cable. The computer will pop up a USB flash drive and click on the URL in the USB flash drive: to enter the programming interface. Add the Yahboom package to program.

Mode 2 offline programming: We need to open the offline programming software. After the installation is complete, enter the programming interface, click【New Project】, add Yahboom package:, you can program. 

3.Looking for blocks

The following is the location of the building blocks required for this programming.



4.Combine building block

The summary program is shown below:


5.Assembly steps

Please refer to the assembly steps in the Assembly instructions folder for building blocks assembly steps.

4.About wiring:

As shown below,

Left motor connect to M1 interface of super:bit.

Right motor connect to M3 interface of super:bit.

 image.png image.png

image.png image.png


5. Experimental phenomena

After the program is successfully downloaded, the micro:bit dot matrix will display the smile pattern and the car will advance 1s, back 1s, spin left 2s, spin right 2s. The car will keep a loop in such a state.

If you need to start over, press the reset button on the back of the micro:bit board.

 The code of the experiment: 3.Car Run.rar


Yahboom Micro:bit Remote Control Building Block 5 in 1 Robot Car Kit Tutorial

Last Tutorial>> 2.2 Control speed

Next Tutorial>> 2.4 Control color of RGB

Buy Yahboom Micro:bit Remote Control Building Block 5 in 1 Robot Car Kit


Leave a comment

Please note, comments must be approved before they are published