Home > Projects > Game – Entertainment Projects > Laser Tag “Free for All” Circuit Playground Express and ESP8266

Laser Tag “Free for All” Circuit Playground Express and ESP8266

Summary of Laser Tag “Free for All” Circuit Playground Express and ESP8266


This project transforms boards into a multiplayer laser tag game using Circuit Playground Express and ESP8266. Players program individual boards with unique IR codes, connect to Wi-Fi, and track scores via Adafruit IO feeds for death counts, player status, and game time.

Parts used in the Laser Tag Free for All:

  • IR remotes
  • Shoe laces
  • Circuit Playground Express
  • ESP8266
  • Battery case for the board
  • Batteries

This is an easy way to make your boards into a fun laser tag game to play with friends.

we combined both boards as described in the pictures.

Supplies

For this project you will need IR remotes, shoe laces, circuit playground express, ESP8266, battery case for the board and batteries

Step 1: GIT Files

Go to the following GIT and download the code files on it.

https://github.com/IoTLaserTag/Laser-Tag

Step 2: Find the IR Signal

Step 3: Finding the IR Value

Shoot using the remote towards the board and save the IR value.

Step 4: Upload the Player Program to the Board

Each player with his individual program.

Add your WIFI certificate as shown in the picture

Step 5: Add the IR Values to the Players Program

Set the values at the marked place in the code

Step 6: Create an Adafruit User

Go to https://io.adafruit.com/ and create a user

Step 7: Creating the Information Feeds

Go to the feeds tab and create 3 groups :Death Count, Game Time, Players.

Step 8: Group Creation Example

Fill out the form

Step 9: Create Feeds for Every Necessary Information

For each one of the game information stream create a feed.

Death count per player, player and game time.

Step 10: Get Your Adafruit MQTT Key

Step 11: Put the MQTT Key in the Code

Step 12: Get Your Feed Key for Each Feed

For each feed get their uniq key

Step 13: Put the Feed Key in the Code

Put the feed key in the code for each player

Source: Laser Tag “Free for All” Circuit Playground Express and ESP8266

Quick Solutions to Questions related to Laser Tag Free for All:

  • How do I get the code for this project?
    Download the code files from the GitHub repository at https://github.com/IoTLaserTag/Laser-Tag.
  • Can I use different IR values for each player?
    Yes, you must shoot your remote toward the board to save the specific IR value and set it in your individual program.
  • What information feeds need to be created on Adafruit IO?
    You need to create three groups containing feeds for Death Count, Game Time, and Players.
  • Does the project require an Adafruit account?
    Yes, you must go to https://io.adafruit.com/ and create a user account to access the feeds.
  • How do I connect my board to the internet?
    Add your WIFI certificate to the player program as shown in the instructions.
  • Where do I find the MQTT Key?
    Get your Adafruit MQTT Key from your account settings to put into the code.
  • How are individual player scores tracked?
    Create a unique feed for each player's death count and insert their specific Feed Key into their code.
  • What is the best way to attach the components to the board?
    The article suggests combining both boards and using shoe laces as part of the setup.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top