# Case 43:The Bricks Launcher ## Introduction Build a bricks launcher with the [Nezha 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/43_1.png) ## Quick to Start ### Materials Required [Nezha 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-43-02.png) Build it as the assembly steps suggest: ![](./images/neza-inventor-s-kit-step-43-01.png) ![](./images/neza-inventor-s-kit-step-43-02.png) ![](./images/neza-inventor-s-kit-step-43-03.png) ![](./images/neza-inventor-s-kit-step-43-04.png) ![](./images/neza-inventor-s-kit-step-43-05.png) ![](./images/neza-inventor-s-kit-step-43-06.png) ![](./images/neza-inventor-s-kit-step-43-07.png) ![](./images/neza-inventor-s-kit-step-43-08.png) ![](./images/neza-inventor-s-kit-step-43-09.png) ![](./images/neza-inventor-s-kit-step-43-10.png) ![](./images/neza-inventor-s-kit-step-43-11.png) ![](./images/neza-inventor-s-kit-step-43-12.png) ![](./images/neza-inventor-s-kit-step-43-13.png) ![](./images/neza-inventor-s-kit-step-43-14.png) ![](./images/neza-inventor-s-kit-step-43-15.png) ![](./images/neza-inventor-s-kit-step-43-16.png) ![](./images/neza-inventor-s-kit-step-43-17.png) ![](./images/neza-inventor-s-kit-step-43-18.png) ![](./images/neza-inventor-s-kit-step-43-19.png) ![](./images/neza-inventor-s-kit-step-43-20.png) ![](./images/neza-inventor-s-kit-step-43-21.png) ### Connection Diagram Connect two [button](https://shop.elecfreaks.com/products/elecfreaks-planetx-button-sensor?_pos=1&_psq=button&_ss=e&_v=1.0) to J1 and the [motor](https://shop.elecfreaks.com/products/elecfreaks-high-speed-building-blocks-motor?_pos=4&_sid=a2da3fff8&_ss=r) to M1 and M2 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-43-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](https://shop.elecfreaks.com/products/elecfreaks-planetx-ultrasonic-sensor?_pos=1&_sid=9f90a6738&_ss=r), we need to add a package. Search with "PlanetX" in the dialogue box and click to download it. ![](./images/neza-inventor-s-kit-case-37-05.png) For programming [Nezha Breakout Board](https://shop.elecfreaks.com/products/elecfreaks-nezha-breakout-board?_pos=1&_sid=00432325a&_ss=r), we need to add a package. Search with "Nezha" in the dialogue box and click 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 ### Code as the picture suggests ![](./images/neza-inventor-s-kit-case-43-07.png) ### Reference Link: [https://makecode.microbit.org/_HEDitaH5CLRF](https://makecode.microbit.org/_HEDitaH5CLRF) You may also download it directly:
### Result Press button C to launch the bricks. ![](./images/43_2.gif)