Skip to main content

Case 01: The Motorcycle

Purpose​


To make a motorcycle with the Wonder Building kit.


micro:bit Wonder Building Kit

Materials Required​


Video link: https://youtu.be/rLnMMkofipM

Bricks build-up​


Hardware Connection​

Connect two motors to M1 and M2 ports on Wukong breakout board.

Software Platform​


MakeCode

Coding​


Add extensions​

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

Search with Wukong in the dialogue box to download it.

Program​

Link:https://makecode.microbit.org/_K6mFyJ16ofCj

Result​

While button A being pressed, the motorcycle moves forward and it reverses if button B is pressed, while pressing button A+B, it stops driving.