27. Case 25: The Egg Beater#

27.1. Purpose#


Make an egg beater.

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

27.3. Materials Required#


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

27.4. Bricks build-up#


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

../../_images/Wonder-Building-Kit-step-case-25-25.png

../../_images/Wonder-Building-Kit-step-case-25-26.png

27.5. Hardware Connection#

Connect a motor to M1 port on Wukong breakout board.

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

27.6. Software Platform#


MakeCode

27.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-25-04.png

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

Result#

When the micro:bit is powering on, it displays a heart icon. When button A is pressed, the egg beater starts rotating, and when button B is pressed, it stops rotating.