Case 55: Gyro Transmitter
Contents
59. Case 55: Gyro Transmitter#
59.1. Introduction#
Make a gyro transmitter with Nezha 48 IN 1 Inventor’s Kit.
59.2. Quick to Start#
Materials Required#
Assembly steps#
Component Details
Build it as the assembly steps suggest:
Connection Diagram#
As the picture suggests, onnect the Crash sensors to J1 port and the Motors to M1 on Nezha breakout board.
59.3. MakeCode Programming#
Step 1#
Click “Advanced” in the MakeCode drawer to see more choices.
For programming the Crash sensor, we need to add a package. Enter “PlanetX” in the dialog box, and click search to download it.
For programming the Nezha. Click “Extensions” at the bottom of the drawer and search with “nezha” to download it.
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#
Reference#
Link: 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.