10. Case 10: Boating#

10.1. Purpose#


To make a boating car.

../../_images/case-10-01.png

10.3. Materials Required#


../../_images/case-10-02.png

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

10.4. Bricks build-up#


../../_images/step-case-10-01.png

../../_images/step-case-10-02.png

../../_images/step-case-10-03.png

../../_images/step-case-10-04.png

../../_images/step-case-10-05.png

../../_images/step-case-10-06.png

../../_images/step-case-10-07.png

../../_images/step-case-10-08.png

../../_images/step-case-10-09.png

../../_images/step-case-10-10.png

../../_images/step-case-10-11.png

../../_images/step-case-10-12.png

10.5. Hardware Connection#

Connect a motor to M1 port on Wukong breakout board.

../../_images/Wonder-Building-Kit-case-03-06.png

10.6. Software Platform#


MakeCode

10.7. Coding#


Add extensions#

Click “Advanced” in the MakeCode to see more choices.

../../_images/case-01-03.png

Search with Wukong in the dialogue box to download it.

../../_images/case-01-04.png

Program#

../../_images/case-10-05.png

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

Result#

When button A is pressed the rower moves forward, when button B is pressed the rower moves backward, when button A+B is pressed the rower stops moving.