19. Case 17: The Rickshaw#

19.1. Purpose#


To make a rickshaw.

../../_images/case-17-01.png

19.3. Materials Required#


../../_images/case-17-02.png

Video link: https://youtu.be/qHvM-sRProA

19.4. Bricks build-up#


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

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

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

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

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

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

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

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

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

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

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

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

../../_images/step-case-17-13.png

../../_images/step-case-17-14.png

../../_images/step-case-17-15.png

../../_images/step-case-17-16.png

../../_images/step-case-17-17.png

../../_images/step-case-17-18.png

../../_images/step-case-17-19.png

../../_images/step-case-17-20.png

../../_images/step-case-17-21.png

../../_images/step-case-17-22.png

../../_images/step-case-17-23.png

../../_images/step-case-17-24.png

../../_images/step-case-17-25.png

../../_images/step-case-17-26.png

../../_images/step-case-17-27.png

19.5. Hardware Connection#

Connect a motor to M1 port on Wukong breakout board.

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

19.6. Software Platform#


MakeCode

19.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-17-05.png

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

Result#

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