Skip to main content

Case 43:The Bricks Launcher

Introduction​

Build a bricks launcher with the Nezha Inventor's Kit.

Quick to Start​

Materials Required​

Nezha Inventor's Kit

Assembly​

Components List

Build it as the assembly steps suggest:

Connection Diagram​

Connect two button to J1 and the motor to M1 and M2 on Nezha Breakout Board.

MakeCode Programming​

Step 1​

Click "Advanced" in the MakeCode drawer to see more choices.

For programming the Ultrasonic Sensor, we need to add a package. Search with "PlanetX" in the dialogue box and click to download it.

For programming Nezha Breakout Board, we need to add a package. Search with "Nezha" in the dialogue box and click 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​

Code as the picture suggests​

Reference​

Link: https://makecode.microbit.org/_J52f8j7fwU8L

You may also download it directly:

Result​

Press button C to launch the bricks.