Case 54: Happy Seesaw
Introduction
Make a seesaw with Nezha 48 IN 1 Inventor's Kit.
Quick to Start
Materials Required
Assembly Steps
Component Details
Build it as the assembly steps suggest:
Connection Diagram
As the picture suggests,connect the sonar:bit to J1,connect the Motors to the Nezha M1.
MakeCode Programming
Step 1
Click “Advanced” in the MakeCode drawer to see more choices.
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.
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
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.