# Case 55: Gyro Transmitter ## Introduction Make a gyro transmitter 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-55-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 Component Details ![](./images/neza-inventor-s-kit-case-55-02.png) Build it as the assembly steps suggest: ![](./images/neza-inventor-s-kit-step-55-01.png) ![](./images/neza-inventor-s-kit-step-55-02.png) ![](./images/neza-inventor-s-kit-step-55-03.png) ![](./images/neza-inventor-s-kit-step-55-04.png) ![](./images/neza-inventor-s-kit-step-55-05.png) ![](./images/neza-inventor-s-kit-step-55-06.png) ![](./images/neza-inventor-s-kit-step-55-07.png) ![](./images/neza-inventor-s-kit-step-55-08.png) ![](./images/neza-inventor-s-kit-step-55-09.png) ![](./images/neza-inventor-s-kit-step-55-10.png) ![](./images/neza-inventor-s-kit-step-55-11.png) ![](./images/neza-inventor-s-kit-step-55-12.png) ![](./images/neza-inventor-s-kit-step-55-13.png) ![](./images/neza-inventor-s-kit-step-55-14.png) ![](./images/neza-inventor-s-kit-step-55-15.png) ![](./images/neza-inventor-s-kit-step-55-16.png) ![](./images/neza-inventor-s-kit-step-55-17.png) ### Connection Diagram As the picture suggests, onnect the [Crash sensors](https://shop.elecfreaks.com/products/elecfreaks-planetx-crash-sensor?_pos=1&_sid=4ce9f1b2f&_ss=r) to J1 port 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-55-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 Crash sensor, we need to add a package. Enter "PlanetX" in the dialog box, and click search to 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-55-07.png) ### Reference Link: [https://makecode.microbit.org/_09hAgCAM1XFk](https://makecode.microbit.org/_09hAgCAM1XFk) You may also download it directly:
### Result When the Crash sensor is pressed, the gyro transmitter starts to rotate, and when the crash sensor is released, the gyro transmitter stops rotating.