Skip to main content

Case 04: Obstacles-avoidance Cars


To make an obstacle-avoidance car.

micro:bit Wonder Building Kit

Materials Required

Video link:

Bricks build-up

Installation Mthods of Hardwares

Install the sonar:bit with the bricks.

Hardware Connection

Connect two motors to M1, M2, and the sonar:bit to P1 port on Wukong breakout board.

Software Platform



Add extensions

Click "Advanced" in the MakeCode to see more choices.

Search with Wukong in the dialogue box to download it.

Search with in the dialogue box to add the sonar:bit extension.




While on start, the car moves forward at the full speed and it turns right if it detects any obstacles within the scope of 20cm, and then it keeps moving forward.