62. Case 61: The Boxing Robot#

62.1. Introduction#

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

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

62.2. Quick to Start#

Materials Required#

Nezha 48 IN 1 Inventor’s Kit

Assembly steps#

Components Details

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

Build it as the assembly steps suggest:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Completed:

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

Connection Diagram#

As the picture suggests, connect the Ultrasonic sensors to J1,and the Motors to M1 on Nezha breakout board.

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

62.3. 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 Ultrasonic sensor, we need to add a package. Search with “PlanetX” in the dialogue box download it.

images/neza-inventor-s-kit-case-37-05.png

For programming the Nezha. 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#

Program as picture suggests#

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

Reference#

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

You may also download it directly:

Result#

When an item comes close to the boxing robot, the robot starts boxing.

../../_images/neza-inventor-s-kit-case-61-08.gif