3. Case 03: The Gyroscope Base#

3.1. Purpose#


To make a gyroscope baseboard.

../../_images/case-03-01.png

3.3. Materials Required#


../../_images/case-03-02.png

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

3.4. Bricks build-up#


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

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

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

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

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

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

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

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

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

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

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

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

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

3.5. Hardware Connection#

Connect a motor to M1 port on Wukong breakout board.

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

3.6. Software Platform#


MakeCode

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

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

Result#

Press the button B and the motor connecting to M1 starts driving, put the gyroscope base on the swirling yellow connectors, when the accelerate speed meets the standard, release your hands and it will not fall off; press button A to stop driving the motor.