15. Case 13: The Seesaw#

15.1. Purpose#


To make a seesaw.

../../_images/case-13-01.png

15.3. Materials Required#


../../_images/case-13-02.png

Video link: https://youtu.be/2qZLmY6tJRs

15.4. Bricks build-up#


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

15.5. Hardware Connection#

Connect a motor to M1 port on Wukong breakout board.

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

15.6. Software Platform#


MakeCode

15.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-11-03.png

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

Result#

When button A is pressed, the seesaw operates automatically and when button B is pressed, the seesaw shuts down and stops operating.