58. Case 54: Happy Seesaw#

58.1. Introduction#

Make a seesaw with Nezha 48 IN 1 Inventor’s Kit.

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

58.2. Quick to Start#

Materials Required#

Nezha 48 IN 1 Inventor’s Kit

Assembly Steps#

Component Details

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

Build it as the assembly steps suggest:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

58.3. Connection Diagram#

As the picture suggests,connect the sonar:bit to J1,connect the Motors to the Nezha M1.

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

58.4. 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 the servo, we need to add a package. Click “Extensions” at the bottom of the drawer and search with “nezha” 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#

Write the program as picture suggests#

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

Reference#

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

You may also download it directly:

Result#

When there is an obstruction in front of it. the objects will be pushed down automatically.