Case 16: The Road Sweeper
Contents
18. Case 16: The Road Sweeper#
18.1. Purpose#
To make a road sweeper.
18.2. Link:#
18.3. Materials Required#
Video link: https://youtu.be/kdY41mPGvRI
18.4. Bricks build-up#
18.5. Hardware Connection#
Connect a motor to M1 port on Wukong breakout board.
18.6. Software Platform#
18.7. Coding#
Add extensions#
Click “Advanced” in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
Program#
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.