Micro:bit Creative Course Series: Laser Gun Target Game

Target shooting games are often popular at fairs. Today, we will create a game using micro:bit that can be played at home.

Materials

One Micro:bit board

One power module providing 5V and 3.3V output

One MG90S servo motor

One photoresistor

Several DuPont wires

One 18650 battery holder

Two 18650 batteries

One laser pen

One iron wire

One circular cardboard

Wiring Instructions

Connect the photoresistor to P1

Connect the servo motor to P0

Program Instructions:

The programming part is quite simple, as shown below

Micro:bit Creative Course Series: Laser Gun Target Game

Testing

If the servo motor is powered by 3V, the response will be very slow and sometimes it may even stop working. Therefore, choose to use 5V power.

Install the power module providing 5V and 3.3V output

Micro:bit Creative Course Series: Laser Gun Target Game

Use 3.3V for the micro:bit, and 5V for the servo motor. The wiring is shown in the diagram below

Micro:bit Creative Course Series: Laser Gun Target Game

When the installation is complete, it looks like this

Micro:bit Creative Course Series: Laser Gun Target Game

Start the game

Micro:bit Creative Course Series: Laser Gun Target Game

Micro:bit Creative Course Series: Laser Gun Target Game

==========================

Micro:bit Creative Course Series: Laser Gun Target Game

Leave a Comment