Purpose
While I am browsing the website, an interesting Chebyshev connecting rod structure case comes to my eyes, which are used to simulate the walking of the robots.
Thus, I am going to a walking robot with our bricks and Nezha inventor’s kit.
Bricks assembly
If you have Lego studio app, please download this file: The Walking Robot.io
After assembly, install the motors and Nezha Nezha expansion board with the bricks.
Software Programm
Step 1
Click “Advanced” in the MakeCode drawer to see more choices
For programming, we need to add a package: click “Extensions” at the bottom of the MakeCode drawer and search with “nezha” in the dialogue box 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
Program:
Link: https://makecode.microbit.org/_AbuaPP542RAY
Result
Press button A on the micro:bit to make the robot walk forward, press button B to stop it.