11. Case 11: The Tiny Sky Wheel#

11.1. Purpose#


To make a tiny sky wheel.

../../_images/case-11-01.png

11.3. Materials Required#


../../_images/case-11-02.png

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

11.4. Bricks build-up#


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

11.5. Hardware Connection#

Connect a motor to M1 port on Wukong breakout board.

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

11.6. Software Platform#


MakeCode

11.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/_VuRXgH1y30yp

Result#

When button A is pressed the tiny sky wheel starts to rotate and when button B is pressed it stops rotating.