# Case 61: The Boxing Robot ## Introduction Make a boxing robot with [Nezha 48 IN 1 Inventor's Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-nezha-48-in-1-inventors-kit-without-micro-bit-board?_pos=2&_sid=ed1b6fbd2&_ss=r). ![](./images/neza-inventor-s-kit-case-61-01.png) ## Quick to Start ### Materials Required [Nezha 48 IN 1 Inventor's Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-nezha-48-in-1-inventors-kit-without-micro-bit-board?_pos=2&_sid=ed1b6fbd2&_ss=r) ### 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 ](https://shop.elecfreaks.com/products/elecfreaks-planetx-ultrasonic-sensor?_pos=1&_sid=9f90a6738&_ss=r)to J1,and the [Motors ](https://shop.elecfreaks.com/products/elecfreaks-high-speed-building-blocks-motor?_pos=4&_sid=a2da3fff8&_ss=r)to M1 on [Nezha breakout board](https://shop.elecfreaks.com/products/elecfreaks-nezha-breakout-board?_pos=1&_sid=00432325a&_ss=r). ![](./images/neza-inventor-s-kit-case-61-03.png) ## 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](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)