39. Case 38:The Mechanical Springtail#

39.1. Introduction#

Build a mechanical springtail with the Nezha Inventor’s Kit.

../../_images/neza-inventor-s-kit-case-38-01.png

39.2. Quick to Start#

Materials Required#

Nezha Inventor’s Kit

Assembly#

Components List

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

Build it as the assembly steps suggest:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Connection Diagram#

Connect the motor to M1 on Nezha Breakout Board.

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

39.3. MakeCode Programming#

Step 1#

Click “Extensions’’ 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-38-07.png

Reference#

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

You may also download it directly:

---

Result#

Press button A and the mechanical springtail crawls forward, press button B and the mechanical springtail stops moving. ../../_images/case_38.gif

Thinking#

Why do we install tires on the mechanical springtail’s arms, and what will happen if we don’t?

Activity#

Modify your own mechanical springtail and hold races.