# Case 50: A Small Trash Can ## Introduction Make a small trash can with [Nezha-A 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/50_1.png) ## Quick to Start ### Materials Rrquired [Nezha-A 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 Components List ![](./images/neza-inventor-s-kit-case-50-02.png) Build as the steps suggest: ![](./images/neza-inventor-s-kit-step-50-01.png) ![](./images/neza-inventor-s-kit-step-50-02.png) ![](./images/neza-inventor-s-kit-step-50-03.png) ![](./images/neza-inventor-s-kit-step-50-04.png) ![](./images/neza-inventor-s-kit-step-50-05.png) ![](./images/neza-inventor-s-kit-step-50-06.png) ![](./images/neza-inventor-s-kit-step-50-07.png) ![](./images/neza-inventor-s-kit-step-50-08.png) ![](./images/neza-inventor-s-kit-step-50-09.png) ![](./images/neza-inventor-s-kit-step-50-10.png) ![](./images/neza-inventor-s-kit-step-50-11.png) ![](./images/neza-inventor-s-kit-step-50-12.png) ![](./images/neza-inventor-s-kit-step-50-13.png) ![](./images/neza-inventor-s-kit-step-50-14.png) ![](./images/neza-inventor-s-kit-step-50-15.png) ![](./images/neza-inventor-s-kit-step-50-16.png) ![](./images/neza-inventor-s-kit-step-50-17.png) ![](./images/neza-inventor-s-kit-step-50-18.png) ![](./images/neza-inventor-s-kit-step-50-19.png) ![](./images/neza-inventor-s-kit-step-50-20.png) ### Connection Diagram Connect the [Motor](https://shop.elecfreaks.com/products/elecfreaks-high-speed-building-blocks-motor?_pos=4&_sid=a2da3fff8&_ss=r) to M1 on [Nezha-A Master Box](https://shop.elecfreaks.com/products/elecfreaks-nezha-breakout-board?_pos=1&_sid=00432325a&_ss=rl). ![](./images/neza-inventor-s-kit-case-48-03.png) ## MakeCode Programming ### Step 1 Click in the "Advanced" in the MakeCode drawer to see more choices. ![](./images/neza-inventor-s-kit-case-37-04.png) For programming, we need to add a package: click “Extensions” at the bottom of the MakeCode drawer, and search for “Nezha” in the dialog to download. ![](./images/neza-inventor-s-kit-case-37-06.png) ***Note:*** If you encounter a prompt that some codebases will be removed due to incompatibility, you can follow the prompt to continue or create a new project in the menu. ### Step 2 ### Program as the picture indicates ![](./images/neza-inventor-s-kit-case-50-07.png) ### Link Link: [https://makecode.microbit.org/_VE00w0E5rLL6](https://makecode.microbit.org/_VE00w0E5rLL6) You may download it directly below:
### Result Press button A to open the lid of the trash can; press button B to close it. ![](./images/50_2.gif)