Case 42：The Grabbing Cart
46. Case 42：The Grabbing Cart#
Build a grabbing cart with the Nezha Inventor’s Kit.
46.2. Quick to Start#
Build it as the assembly steps suggest:
We can see that the construction is completed as shown in the following figure:
Connect the geekservo to S1 and the two motors to M1 and M2 on Nezha Breakout Board.
46.3. MakeCode Programming#
Click “Advanced” in the MakeCode drawer to see more choices.
For programming Nezha Breakout Board, we need to add a package. Search with “Nezha” in the dialogue box and click 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.
Code as the picture suggests#
You may also download it directly:
First manually adjust the opening angle of the mechanical claw, then turn on the power, press the button A, the car will travel forward for a certain distance and grab the object.
Is it possible to make a car that can turn directions and grab objects with this kit?