Skip to main content

Case 22: The Helicopter

Purpose


Make a helicopter.


micro:bit Wonder Building Kit

Materials Required


Bricks build-up


Hardware Connection

Connect a motor to M2 port 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/_2zv14dduY6D7

Result

When button A is pressed, the micro:bit displays a heart pattern and the helicopter propeller starts to rotate; when button B is pressed, the micro:bit screen is cleared and the helicopter propeller stops rotating.