Skip to main content

Case 09: Automatic Doors


To make an automatic door.

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 a sonar:bit to P1 and the servo to S0 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.




When the ultrasonic sensor detects someone passing by, it will display √ on the micro:bit and control the servo to open the door and close it automatically after 5 seconds, if the ultrasonic sensor does not detect anyone, it will keep displaying × on the micro:bit and the door is closed.