Case 16: The Road Sweeper
Purpose
To make a road sweeper.
Link:
Materials Required
Video link: https://youtu.be/kdY41mPGvRI
Bricks build-up
Hardware Connection
Connect a motor to M1 port on Wukong breakout board.
Software Platform
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/_18WVrTE5LTzb
Result
When button A is pressed, the sweeper moves forward and starts sweeping, when button B is pressed, the sweeper stops moving and ends sweeping.