48. Case 44:Tightrope Walker#

48.1. Introduction#

Build a tightrope walker with the Nezha Inventor’s Kit.

../../_images/44_1.png

48.2. Quick to Start#

Materials Required#

Nezha Inventor’s Kit

Rubber band × 1

Assembly#

Components List

../../_images/neza-inventor-s-kit-case-44-02.png

Build it as the assembly steps suggest:

../../_images/neza-inventor-s-kit-step-44-01.png

../../_images/neza-inventor-s-kit-step-44-02.png

../../_images/neza-inventor-s-kit-step-44-03.png

../../_images/neza-inventor-s-kit-step-44-04.png

../../_images/neza-inventor-s-kit-step-44-05.png

../../_images/neza-inventor-s-kit-step-44-06.png

../../_images/neza-inventor-s-kit-step-44-07.png

../../_images/neza-inventor-s-kit-step-44-08.png

../../_images/neza-inventor-s-kit-step-44-09.png

../../_images/neza-inventor-s-kit-step-44-10.png

../../_images/neza-inventor-s-kit-step-44-11.png

../../_images/neza-inventor-s-kit-step-44-12.png

../../_images/neza-inventor-s-kit-step-44-13.png

../../_images/neza-inventor-s-kit-step-44-14.png

../../_images/neza-inventor-s-kit-step-44-15.png

../../_images/neza-inventor-s-kit-step-44-16.png

../../_images/neza-inventor-s-kit-step-44-17.png

../../_images/neza-inventor-s-kit-step-44-18.png

../../_images/neza-inventor-s-kit-step-44-19.png

../../_images/neza-inventor-s-kit-step-44-20.png

../../_images/neza-inventor-s-kit-step-44-21.png

../../_images/neza-inventor-s-kit-step-44-22.png

../../_images/neza-inventor-s-kit-step-44-23.png

../../_images/neza-inventor-s-kit-step-44-24.png

../../_images/neza-inventor-s-kit-step-44-25.png

../../_images/neza-inventor-s-kit-step-44-26.png

../../_images/neza-inventor-s-kit-step-44-27.png

../../_images/neza-inventor-s-kit-step-44-28.png

../../_images/neza-inventor-s-kit-step-44-29.png

../../_images/neza-inventor-s-kit-step-44-30.png

../../_images/neza-inventor-s-kit-step-44-31.png

../../_images/neza-inventor-s-kit-step-44-32.png

../../_images/neza-inventor-s-kit-step-44-33.png

../../_images/neza-inventor-s-kit-step-44-34.png

../../_images/neza-inventor-s-kit-step-44-35.png

../../_images/neza-inventor-s-kit-step-44-36.png

../../_images/neza-inventor-s-kit-step-44-37.png

../../_images/neza-inventor-s-kit-step-44-38.png

../../_images/neza-inventor-s-kit-step-44-39.png

../../_images/neza-inventor-s-kit-step-44-40.png

../../_images/neza-inventor-s-kit-step-44-41.png

../../_images/neza-inventor-s-kit-step-44-42.png

../../_images/neza-inventor-s-kit-step-44-43.png

../../_images/neza-inventor-s-kit-step-44-44.png

../../_images/neza-inventor-s-kit-step-44-45.png

../../_images/neza-inventor-s-kit-step-44-46.png

../../_images/neza-inventor-s-kit-step-44-47.png

../../_images/neza-inventor-s-kit-step-44-48.png

../../_images/neza-inventor-s-kit-step-44-49.png

../../_images/neza-inventor-s-kit-step-44-50.png

../../_images/neza-inventor-s-kit-step-44-51.png

../../_images/neza-inventor-s-kit-step-44-52.png

../../_images/neza-inventor-s-kit-step-44-53.png

../../_images/neza-inventor-s-kit-step-44-54.png

../../_images/neza-inventor-s-kit-step-44-55.png

../../_images/neza-inventor-s-kit-step-44-56.png

../../_images/neza-inventor-s-kit-step-44-57.png

Connection Diagram#

Connect the motors to M1 on Nezha Breakout Board.

../../_images/neza-inventor-s-kit-case-44-03.png

48.3. MakeCode Programming#

Step 1#

Click “Advanced” in the MakeCode drawer to see more choices.

../../_images/neza-inventor-s-kit-case-37-04.png

For programming Nezha Breakout Board, we need to add a package. Search with “Nezha” in the dialogue box and click to download it.

../../_images/neza-inventor-s-kit-case-37-06.png

Notice: If you met a tip indicating that some codebases would be deleted due to incompatibility, you may continue as the tips say or create a new project in the menu.

Step 2#

Code as the picture suggests#

../../_images/neza-inventor-s-kit-case-44-07.png

Reference#

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

You may also download it directly:

Result#

Press button A, the toy man starts to walk a tightrope. Press button B, the toy man stops motionless.

../../_images/44_2.gif