34. Case 32: Robot Dog#

34.1. Purpose#


Make a robot dog.

../../_images/Wonder-Building-Kit-case-32-01.png

34.3. Materials Required#


../../_images/Wonder-Building-Kit-step-case-32-01.png

34.4. Bricks build-up#


../../_images/Wonder-Building-Kit-step-case-32-02.png

../../_images/Wonder-Building-Kit-step-case-32-03.png

../../_images/Wonder-Building-Kit-step-case-32-04.png

../../_images/Wonder-Building-Kit-step-case-32-05.png

../../_images/Wonder-Building-Kit-step-case-32-06.png

../../_images/Wonder-Building-Kit-step-case-32-07.png

../../_images/Wonder-Building-Kit-step-case-32-08.png

../../_images/Wonder-Building-Kit-step-case-32-09.png

../../_images/Wonder-Building-Kit-step-case-32-10.png

../../_images/Wonder-Building-Kit-step-case-32-11.png

../../_images/Wonder-Building-Kit-step-case-32-12.png

../../_images/Wonder-Building-Kit-step-case-32-13.png

../../_images/Wonder-Building-Kit-step-case-32-14.png

../../_images/Wonder-Building-Kit-step-case-32-15.png

../../_images/Wonder-Building-Kit-step-case-32-16.png

../../_images/Wonder-Building-Kit-step-case-32-17.png

../../_images/Wonder-Building-Kit-step-case-32-18.png

../../_images/Wonder-Building-Kit-step-case-32-19.png

../../_images/Wonder-Building-Kit-step-case-32-20.png

../../_images/Wonder-Building-Kit-step-case-32-21.png

../../_images/Wonder-Building-Kit-step-case-32-22.png

../../_images/Wonder-Building-Kit-step-case-32-23.png

../../_images/Wonder-Building-Kit-step-case-32-24.png

34.5. Hardware Connection#

Connect a motor to M1 port on Wukong breakout board.

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

34.6. Software Platform#


MakeCode

34.7. Coding#


Add extensions#

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

../../_images/Wonder-Building-Kit-case-21-02.png

Search with Wukong in the dialogue box to download it.

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

Program#

../../_images/Wonder-Building-Kit-case-32-04.png

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

Result#

When button A is pressed, the robot dog moves forward; and when button B is pressed, the robot dog stops moving.