Skip to main content

Case 70: Voice Controlled Laser Launching Vehicle


Lasers have many applications in daily life, such as laser scalpels in medicine, cutting materials in industry, laser welding and laser drilling. In this lesson, we will experience the fascination of laser by using the laser module, let's start!

Materials Required

Nezha expansion board × 1

micro:bit V2 × 1

Speech recognition module × 1

Laser module × 1

Four-Channel Tracking Sensor × 1

Motors × 2

RJ11 cables × 1

Bricks × n

Note: If you want all of the above components, you may purchase the Nezha 48 IN 1 Inventor's Kit.

Assembly Steps

Component Details

Build it as the assembly steps suggest:

Completed picture:

Connection Diagram

We connect the four line following sensor and the speech recognition sensor to the IIC interfaces, the laser module to the J1 interface, and the connection diagram is as follows:

MakeCode Programming

Step 1

Click “Advanced” in the MakeCode drawer to see more choices.

We need to add a package for programming. Click “Extensions” at the bottom of the drawer and search with “nezha” to download it.

We need to add a package for programming. Search with “PlanetX” 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.


The program is displayed below:


You may also download it directly:


When we say line following mode, the car will follow the black line on the map. When we say fire laser, the laser module will fire the laser. When we say stop firing, the laser module will stop firing the laser.