7. Case 05: Rotary Chairs#

7.1. Purpose#


To make a rotary chair project.

../../_images/case-05-01.png

7.3. Materials Required#


../../_images/case-05-02.png

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

7.4. Bricks build-up#


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

7.5. Hardware Connection#

Connect a motor to M2 port on Wukong breakout board.

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

7.6. Software Platform#


MakeCode

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

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

Result#

Press button A to start the rotary chairs and press button B to stop it.