Skip to main content

Case 28:The Wiper

Purpose


Make a wiper.


micro:bit Wonder Building Kit

Materials Required


Bricks build-up


Hardware Connection

Connect a motor to M1 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/_5RT3t9DX6Lv0

Result

When the micro:bit is powering on, it displays a heart icon. When button A is pressed, the wiper starts driving; when button A is pressed again, the wiper accelerates; and when button B is pressed, the wiper decelerates.