Lesson plan

Build a laser tag system lesson plan

Infrared blasters on two Unos: coded 38 kHz shots, team codes, health bars, reloads, sound and a two-team game.

3 chapters, 6 lessons, about 6 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

The unit

Objectives and materials

By the end, students can

  • Fire a coded infrared packet and put a team inside it.
  • A health bar, tag-outs, respawns and a clip that runs dry.
  • Sounds for every event and a whole two-team game.

Materials for the whole unit

  • Addressable RGB LEDs x 2
  • Arduino Uno R3 x 2
  • Buzzer x 2
  • Infrared LED, 940 nm x 2
  • Infrared receiver, VS1838B x 2
  • Pushbutton x 4
  • Resistor x 2

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 2 h 10 min

Shots and teams

Fire a coded infrared packet and put a team inside it.

LessonTimeWhat students do
IR shotsFire a coded infrared packet: a 38 kHz carrier, an NEC frame with an address and a command, and a receiver on the other blaster that decodes it as a hit.70 min
  1. Two blasters
  2. Flashing at 38 kHz
  3. Fire a packet
  4. The lens sees it
  5. A hit
  6. Fire back
Team codesPack a team into the command byte, pick the team from a jumper, light the bar in the team color, and ignore friendly fire.60 min
  1. Team RED
  2. Team BLUE
  3. A RED shot
  4. A BLUE shot
  5. Friendly fire

Materials

  • Addressable RGB LEDs x 2
  • Arduino Uno R3 x 2
  • Buzzer x 2
  • Infrared LED, 940 nm x 2
  • Infrared receiver, VS1838B x 2
  • Pushbutton x 4
  • Resistor x 2

Check for understanding

Each student finishes "Team codes" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Friendly fire".

Chapter 2. About 2 h

Health and ammo

A health bar, tag-outs, respawns and a clip that runs dry.

LessonTimeWhat students do
Hits and healthShow five health on a WS2812 bar, take one per enemy hit with a half-second safe window, and tag out at zero with a respawn.60 min
  1. Full health
  2. Take a hit
  3. Read the bar
  4. Tagged out
  5. Respawn
ReloadsGive each blaster a six-shot clip, an empty click, and a reload that takes a second and a half and leaves you open while it runs.60 min
  1. Six shots
  2. Count down
  3. Click
  4. Reload
  5. Caught reloading

Materials

  • Addressable RGB LEDs x 2
  • Arduino Uno R3 x 2
  • Buzzer x 2
  • Infrared LED, 940 nm x 2
  • Infrared receiver, VS1838B x 2
  • Pushbutton x 4
  • Resistor x 2

Check for understanding

Each student finishes "Reloads" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Caught reloading".

Chapter 3. About 2 h

Game on

Sounds for every event and a whole two-team game.

LessonTimeWhat students do
SoundGive every event its own sound from a one-note buzzer: a fire chirp, a hit buzz, an empty click, reload beeps and a long tone when you are out.60 min
  1. Pew
  2. Ouch
  3. Click click
  4. Locked and loaded
  5. Out
Project: a two-team gamePlay a whole game: tag-outs reported back to the shooter, respawns, reloads, and the first team to three tag-outs wins.60 min
  1. Game on
  2. Confirmed
  3. Back in
  4. Win the game
  5. Build your arena

Materials

  • Addressable RGB LEDs x 2
  • Arduino Uno R3 x 2
  • Buzzer x 2
  • Infrared LED, 940 nm x 2
  • Infrared receiver, VS1838B x 2
  • Pushbutton x 4
  • Resistor x 2

Check for understanding

Each student finishes "Project: a two-team game" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Build your arena".

Your class

Teach this unit as a class

Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.