Close
0%
0%

LZRTag - Flexible DIY Lasertag

An easy to build, program, modify and use AVR and ESP based Lasertag system for everyone!

Similar projects worth following
Ever wanted to play Lasertag just ... Anywhere?
Maybe with a different game mode too, or for longer periods than those offered by arenas?
I know I wanted to - so I decided to create my version of it!

LZRTag (and yes, I know, that's not a good abbreviation but whatever) has been a long-running project of mine. It's a couple of years old, but only recently got started!

Its main motivation has always been, and will always be, to have an easily customizable, affordable to create Lasertag system whose capabilities rival those of professional sets, without adding proprietary software or complex hardware.

Based entirely on the popular ESP32 with ESP-IDF based firmware, and requiring nothing more than a Raspberry Pi as a server, this project still provides a huge variety of well-documented functions and a boatload of flexibility!

Important note for those interested in building their own:

Please give it a few more months before you order any hardware!
The currently uploaded files here on HackADay will work just fine, however, I am not happy with them!!
There are a few smaller issues that I would like to fix to improve reliability, as well as adding some more important features that require hardware changes.
This project is currently on a bit of a pause, but I will plan to get back to it by the end of 2021!
Please be patient as I tend to other projects first before polishing this up :>

Ever felt like you needed something to sink a whole bunch of time into?
Some silly yet at the same time very satisfying, extremely glowy project?

Well, maybe this could be for you! This Lasertag project was created mainly out of my interest, over a long and fun process of a few years - of the last few have been documented here!

The whole project is still very fluid and active as of Oct. 2019, and I am making more and more sure that it is suitable for anyone to build and experiment with, without compromising on some of the more awesome features that any good Lasertag system should have.

Below, I'll outline a few nice key aspects of the system - if you want to see videos of its progress or similar though there are always the project logs further below ;)

The hardware

This project had a history of somewhat haphazardly hardware, using a breadboard and only an ATMega328P. 

This is no longer the case as of Revision 3.2, and I can proudly say that this project has evolved to have expert hardware.

Based on the powerful ESP32 this project's PCB features a set of numerous peripherals to deliver a rich game experience.

These include a 44.1kHz I2S audio amplifier for crisp game sounds, an I2C gyro/accelerometer to detect gestures and player activities, and multiple WS2812 LEDs, both on the PCB and broken out on the vest, to provide colourful visual feedback.

Aside from this the board also contains a robust 3.3V LDO, good capacitance to keep the ESP running, a USB to UART converter with an auto-programming circuit, a LiPo charge circuit with voltage measurement, and a vibration motor to provide haptic feedback.

Despite all this, the boards are designed with ease of use in mind. It features only two components that require hot air reflowing - one of which (the IMU) is optional, the other one can be replaced with a cheaply available breakout board.

All other components are hand-solderable 0805 capacitors and resistors as well as a few TSOP packages - nothing that a fine soldering iron couldn't handle.

Communication between the sets is done via a simplistic but surprisingly effective IR channel. Using 850nm VSCEL IR lasers as emitters, their range exceeds 40 meters in good conditions.

Sunlight sadly reduces this to just a few meters, but during dawn, dusk, or indoors, this will work plenty.

The receivers are made from a simple single-sided board, but even they feature a nice WS2812 LED and high-quality 40kHz VISHAY receivers that provide precise decoding of the IR signals.

Due to the nature of the IR encoding, cheaper AVR based modules like my IR-Bacon can also be used as positioning beacons, providing a cheap way to set up capture points and spawn rooms. The signals can even be expanded to include custom signals, such as grenade shots, weapon type, and other interactions.

The software

Now, this is where it gets a bit more interesting. For Revision 3.2, a lot of the code on both server and client-side have been majorly reworked and documented, making sure they provide a simple but flexible interface for the user to work with.

The ESP32-Side

Based on the ESP-IDF v3.3 the firmware for the ESP has been written in pure C++. This makes sure that it remains fast and snappy in all situations.

The ESP handles a multitude of tasks, the most important of which are:

  • Providing a smooth 60FPS LED animation
  • Running the I2S sound interface
  • Detecting and sending shots,...
Read more »

MainBoard.csv

DigiKey parts list for the Lasertag case - Resistors, Capacitors and some standard parts *not* included!! (Buy them in bulk is my suggestion)

Comma-Separated Values - 400.00 bytes - 01/12/2020 at 16:53

Download

Binaries.zip

All files necessary to flash the ESP32. Uses a default WiFi of SSID "Lasertag", static MQTT Server at 192.168.250.1:1883, and it's MAC as PlayerID For now, reconfiguring these parameters requires compiling the firmware yourself - one day I'll add a terminal-based reconfigure

Zip Archive - 771.24 kB - 11/10/2019 at 13:02

Download

Lasertag_Case.zip

All 3D STL files that are necessary to print a casing. Multi-Material-Capable, for single material printing just leave out transparent and marking sections!

x-zip-compressed - 435.41 kB - 10/31/2019 at 15:02

Download

KiCAD_R_3.2.zip

The revision 3.2 KiCAD files. Preferably pull them from the GitHub site, but they're here if anyone asks!

Zip Archive - 2.39 MB - 09/02/2019 at 19:59

Download

  • 1 × MQTT and Ruby server Could be anything, from a small Raspberry to a huge server rack. The lower ping, the better!
  • 1 × A stable WiFi network throughout the field Anything that allows the ESPs to quickly connect, and stay connected, throughout your entire arena
  • 2 × or more Lasertag PCBs You can find those over on Aisler: https://aisler.net/Xasin/xasworks-lzrtagpcb/mainboard-esp32
  • 2 × or more fancy shells for the PCBs Those could be the 3D printed casings, old airsoft guns, or something made from carton. As long as it glows and looks great!

  • Visit me online!

    Xasin05/20/2021 at 12:24 0 comments

    Many of you will have had some fun just reading through this project website.

    For those that still have some more questions though, or would like to say hello more directly, we have wonderful news!

    This project has been accepted for the online MakerFaire as an exhibit!

    This means you can come to visit us and get into a 1:1 Online Chat on the 18th of June from 11:00 to 16:00 European Summer Time!
    We'll be there the whole time, showing off our projects, mainly the Lasertag but also any of the other shenanigans we've run into, and with this sort of stuff I always like to say "the more the merrier"

    Sign up here:

    https://app.vystem.io/event/maker-faire/signup

    We hope to see you there!
    And then hopefully next year in real life, with live demonstrations :D

  • Current progress and moving forwards

    Xasin02/16/2021 at 09:54 0 comments

    So!
    It seems like our project has gathered quite a bit of a following in the last few weeks. Multiple people have already shown interest in building their own, some even helping with different aspects of the system like the weapon optics or making components to spice up the battlefield!
    (Thanks to Anthony Webb and Nathan here ^^)

    However, let me say this loud and clear:

    I'm not 100% satisfied with the current hardware!

    It will work just fine, but it has a bunch of quirks and small errors - things that I feel should be addressed and improved before I can confidently recommend that others build their own version of the system.

    Don't get me wrong, if you want a challenge, by all means, go ahead and try this out!
    But you'll have to deal with some quirks in the code, a little bit of awkward wiring... It's just not as good as it should be.
    If you want to make your own system but you are willing to wait a little bit, please do so!
    I expect to get back to this Lasertag project by the end of 2021, plus or minus a few months!

    Like many hackers on here, I don't just have this one project, and my attention is currently elsewhere. Right now I want to get my DIY Smart Home back online after it broke down recently due to a number of "Ah, I'll worry about that later", and there are a few other projects that I'd like to go through first.

    So, what's up next?

    With all that said and done, I do want to give you guys a list of what I intend to fix up for the next version!
    There's actually quite a bit, so bear with me for a moment.

    Hardware-Related issues:

    • The main processor will be swapped out, from the ESP32 to, hopefully, an ESP32-S3. The CPU's vectoring instructions should hopefully speed up OPUS Audio decoding, while the extended I/O give more options for buttons and other peripherals.
    • Then there's the optics. The current IR LED setup just uses a small tube to straighten out the beam a bit. In the future, I'd want to use a proper Lens + LED setup. Actually, I want to make the IR LED move back and forth to implement a variable cone of fire and combine that with a proper constant-current driver that will allow me to control the range at which the IR signal can be received. That way, I hope to implement damage falloff over distance!
      The same weapon could switch between being a long-range sniper and a close-range shotgun. Neat, huh?
    • A connector for a proper display should be added. I always liked the charm of OLED panels, so this will probably just be an I2C or SPI line to connect to a cheap SSD1327 module, but even just that would be great!
    • I want better haptic feedback too. Right now, the system just uses a simple vibration motor, but that doesn't really offer the same 'kick' that I'd like to have. I'm thinking perhaps a solenoid with a strong driver could be interesting, to really give at least a bit of a clicky feel here.
    • The current battery management is a bit floppy. A better charger would make larger LiPos easier to use, and there is no good shutdown or battery SOC measurement. A proper battery monitoring chip would help out a lot here.
    • I want to add a headphone socket to let users plug in their headphones, giving them game-stats and other announcements.
    • The way the board connects to the rest of the hardware needs to be cleaned up, some parts don't use any connectors at all and require you to just solder in stuff... Ew?
    This would also include better protections for any potentially exposed I/O lines, using proper drivers to make signals more reliable over longer distances, etc.

    Software:

    The current software is just... A bit of a mess, frankly?
    The current repository is just one huge chunk of folders, branches, and I barely tag what I use where etc.

    In the remake, I would write the entire batch of software from the ground up, making sure to properly keep things clean and well-documented. Things would be put into more appropriate components so that they can be reused more easily, and the different elements of the software etc. should be kept in...

    Read more »

  • Rewritten weapon handling code

    Xasin01/26/2021 at 14:34 0 comments

    Well, looks like we had a bit more free time on our hands than expected, and way more fun with the set of audio files we bough from the Unity Store.

    Seriously, check this soundpack out, it is gorgeous <3

    Either way, the weapon handling code we had been using up until now simply wasn't flexible enough to incorporate some of the other weapon behaviours. We had been using a fairly hard-coded state-machine that wouldn't be able to do anything but regular gunshots, so no energy weapons, charging up or machine-gun style spinning up.

    What to do about that... Oh yes, rewrite the whole thing from scratch!

    Well, after having gotten some extra motivation and free time after finishing up some university homework, we are now officially done, and just look at her beauty! ((It's being tested on #The WuffCorder since it has a far better speaker and I had the code ready) :>))

    https://twitter.com/XasinTheSystem/status/1354072054040055810

    The new code is also fairly independent of the rest of the Lasertag codebase, meaning that it should be easy enough to pull out and reuse in other projects if any one of you so desires ^^

    There's still some awkwardness to fix up, such as the ESP barely being able to keep up with this amount of OPUS Audio Decoding. If we want the real deal to not glitch out we might have to make use of both cores in parallel for decoding, that means fun multi-core synchronizing... Plus the memory requirements are huge, so the next version will have to see a WROOM Module, probably with an ESP-S3 too so we can make use of the vector instructions...

    Whew, this is getting me pretty excited already <3

  • It ain't done yet!

    Xasin12/27/2020 at 19:31 0 comments

    Don't you dare think that we're done with the Lasertag just yet!
    We just... We have a backlog of stuff here, we had an amazing time finishing a few really good #Some Christmas gift presents (will have to be updating that one later too, it is turning out really nice :D), BUT 

    We FINALLY bought it! The Principle Sound Design Sci-Fi weapon SFX Unity asset we have been dreaming about for oh so long.
    It was reduced by 30%, and now that we finally have OPUS encoding we can store compressed audio, allowing us to have 20 times more sound effects in the same storage space, meaning it's actually worthwhile to get high-quality SFX and slap them in there!

    The SFX pack has a huge list of weapon designs, some of which are just blowing us away, but we will need to rewrite the entire gun handling core to make use of things like energy-beam weapons and the different pre-charge/post-charge effects.

    You can see a first rough draft of the improved effects here:

    https://twitter.com/XasinTheSystem/status/1343277045342736386https://twitter.com/i/status/1343277045342736386

    Oh, and on another note, a few people have shown interest in trying out the VSYL Emitter Type, which is a type of IR laser instead of regular IR diode. It could seriously improve the transmission distance of the Lasertag. 

    Look down into the comments to see how it's going!

  • Feature Creep Avoided!

    Xasin11/09/2019 at 20:07 0 comments

    Whew, so ... Finally.

    Before I start rambling on about stuff, I'd like to share a proper video demonstrating a handful of features that are now fully functional and supported in the Lasertag code <3

    This means that my system is fully functional and useable for games, with everything you'd need to set it up:

    • Team selection before the game
    • Gun reloading and switching during the game
    • Configurable parameters like damage, life regeneration, revival, team damage etc.
    • Beacons to allow for King Of The Hill gamemodes, as well as Capture The Flag with a bit of trickery.
    • Stats tracking of Kills, Deaths, Damage done and received and self-healing done.
    • Registering and starting of different games via MQTT, meaning a headless server is also doable now.
    • A slightly crude but still useable Webinterface (that I'll polish uh ... Eventually >.>)

    And I also spent all the time needed to build and wire up four of these sets all by myself, which was fun, but also a surprising amount of work.

    As of this time, I've completed my list of issues and ideas I wanted to implement, have successfully avoided feature-creep and am a bit out of breath :P
    This means I can finally put this project's development back on pause for a well deserved break while I focus on Uni.

    Trust me, this is not the end, and you will see more progress on the webinterface and some general polishing all around once I feel like it again - but for now I am really more than happy with the system, and it's time to enjoy the fruits of my labour by inviting my friends over for a round or two <3

  • More software stuff!

    Xasin10/24/2019 at 20:09 0 comments

    Alright, just a quick poke for all you guys somehow still following along.

    Over the last few days I have been refining the whole game control system a little, there certainly were some bugs to squash but nothing out of the ordinary.

    I also took some time to set the new Raspberry Pi up properly - and I might do an instruction on how to get a nice WiFi AP setup with internet forwarding, so you guys can do that stuff yourselves.
    The important news here is that the new Raspberry Pi + better WiFi stick have massively improved the connection stability of the Lasertag, which is a huge relief and improves the gameplay!

    There has also been a huge bunch of extra code documentation that I did, and now all the important Ruby library functions have been documented with YARD. I've also pushed a first version of the libraries onto Rubygems, who has been refusing to build my documentation ever since, so I can't show it off for now :C 
    Seriously, if you know how to fix this, please tell me. 

    Oh, also, a friend offered me to mill the vest detector PCBs, and they're on their way right now. They already look great, and will be much better to use than hand-wired breadboard stuff and eeeeh >->

    And as one last thing:
    We switched the IR Protocol around a little, to a DIY library we call "XIRR". The nice thing is that we already have AVR code ready for another project - IR Bacon.

    We already reprogrammed them to be small positioning beacons for the lasertag game, which opens up a TON of possibilties, from Payload and Capture-point games to Kill and Revive zones or "safe" regions to play in.

    It's awesome, and I will definitely show those new features off when we complete the vest sensor boards :>

  • Progress! Small but progress

    Xasin10/13/2019 at 18:36 0 comments

    It's been a while since I last posted a log, so I felt like doing it now - it's an opportune moment for a number of reasons.

    Firstly, the new hardware is now pretty much 100% supported, all the way from the new navigation switch to the gyroscope. This includes support for the Ruby backend, as well as a few snippets of template code that already show off how useful these new elements are!

    My favorite example is the gyroscope. It can detect when the weapon is pointing up or down - so at the start of the match, players can choose their team simply by picking up the weapon at a certain moment. I call that quite useful!

    Secondly, the Ruby backend is also nearly complete - not just for the new hardware, but for a completely overhauled game control system.
    With the current code, it's very easy to define various states of your game (such as starting, team selection, prep, active gameplay and a post-game celebration), and switch between these manually.
    There's also a way to register various configurations of games into Ruby, and select a game via MQTT, meaning that it's now feasible to set up a central, "always on" server from which games can be started!

    What's next?

    More importantly, with the individual Lasertag components coming to a polished state, we have started working on the system as a whole.

    We bought a new Raspberry Pi 3 A+, which we will turn into a proper central LZRTag server. It will have more power than the RPi Zero we are using right now, but more importantly, it also has a USB and Ethernet port, giving us much better connectivity options than with just the Zero. 

    The extra processing power will also be relevant to host a webserver!

    That's right, we finally started to work on the Lasertag's web app. React + MQTT is turning out to be a perfect combination, and we were already able to extract all relevant information on players and display it live!
    We'll have to create a good design first, and especially optimize the whole thing for mobile viewing as well as for a big "scoreboard" screen, but those tasks are surmountable.

    Video pls?

    Well, right now there just is a lot of small, disconnected stuff going on. Showing each element off individually will be tricky.
    Once we properly set up the Raspberry 3 A+ and got all five current sets running with an example game though, we will definitely provide you guys with a rich video showing off the features of our system!

    There will also be more documentation incoming on the Ruby gem and setting up the Raspberry Pi as we go along, and we're almost done tweaking the 3D printed casing for the new system and will be uploading a zip with the files soon!

  • You want your glowy toys? Take it!

    Xasin09/23/2019 at 20:34 0 comments

    That's what I'm counting on~
    I used to want you to beep, but now I only want you ooonn~

    Heh, couldn't help myself there.

    A lot has been happening with the Lasertag sets recently. Sadly, most of it has to do with internal reconfigurations and polishing. I'm slowly working on adding the new features that the hardware has given me, and it has been going very well! 

    The Nav Switch works super well, the weapon's power supply is stable, charging works just fine... The Ruby-Side is getting a good amount of affection too, making sure it's the best it can be for the new stuff.

    But ... I felt like doing something ... Silly. Something to really savor what it means to have four whole Lasertag sets at once. And there was no better way to do that, than to make them play "Cara Mia", the Portal 2 turret song in the end sequence.

    One thing that really swept me off my feet here was an experience that I think many of you can cherish.

    While trying to play the song, bugs and glitchy sounds kept popping up. I thought it was some kind of malfunction, maybe a faulty packet transmission... But when I cleared up the typo that caused a unsigned vs. signed calculation, it suddenly all came together as a ... Frankly quite stunning melody.

    We hackers deal with randomness and glitches all the time, constantly trying to turn it into some form of pattern, rhythm, music, or art. It was quite poetic, really.

  • First Bootup of 3.2!

    Xasin09/18/2019 at 09:07 1 comment

    Aw hell yeah <3 

    Aisler took its time with delivering the PCBs, so this project log is coming up a little later than expected.
    However, as usual, the wait time was more than worth it! The PCBs are of the usual high quality I've come to know from them, and the stencil with it was perfect as well.

    Perfect solder paste application, partly thanks to the good stencil, partly thanks to the good stencil-holder I was allowed to use~

    I had just gone through an exam, so sitting down and being able to take some time to solder the Lasertag was ... Actually kinda tranquil.
    It certainly began to rapidly eat up any sense of time I had left, so I was able to, somehow, sit through an entire morning and afternoon just soldering away :>

    So, enough of the talk, let's share some pretty pictures!

    ...

    Ok I might have forgotten to take more pictures.
    I did, however, not forget to write a detailed assembly guide over on GitHub :> 

    Here's the awesome extra: Everything worked first try!
    Seriously, how often does that happen? It did make me rather proud, in a way :>
    The only thing that went wrong was the fact that I didn't have enough PMBT2222A transistors, which means that for now not all weapons have their vibration motor running, but for initial programming etc. that's no problem at all.

    A few minutes after finishing up their solder, I was already able to get some lovely blink action running~

    Gha, just look at these precious little babies! 
    The fourth one is functional too, I just didn't have a USB cable or LiPo at hand to run it.

    So yeah, Revision 3.2 is finally underway at basically full speed. We've even already started adjusting the 3D casing for the new navigation switch at the side, and will be printing them out either today or tomorrow, so stay tuned! 

    It's going well :>

  • Lights? Check

    Xasin09/12/2019 at 21:16 0 comments

    Alright, so it seems Aisler is taking their sweet time with the new boards...
    It's still quicker than LCSC, and they'll be here tomorrow, but the wait was a biiit annoying. Happens <.<

    The DigiKey components arrived though, and oh boy: <3

    In the mean time however, I was able to work on some other, extremely important and long-awaited code rewrite:
    The light handling! 

    Before, a lot of the patterns were defined in a rather static manner, making it hard to add new effects and get them integrated in the code in a smooth fashion.

    I was finally able to change this by using a completely new, class-based approach with a proper, abstract interface and a list of components to render.
    The result is a very easy to expand, stable, and quite stunning new effects system!

    I think the video here shows it off best:

    I'll be reviewing the changes in a GitHub PR soon. Those that are interested can poke me for a link :>

    And next monday?
    Time for the new hardware to be soldered~

View all 20 project logs

  • 1
    Solder things up!

    The first step to any good hardware project like this is to take some time (i.e. a whole afternoon <.<) and solder up your first batch of sets.

    For this, you will need:

    • A package from Aisler, found here: https://aisler.net/p/QLILZEMV
    • A couple of standard value 0805 Caps (47uF, 10uF, 1uF and 100nF, though you can use what you have)
    • And a few 0805 resistors (10k, lots of 220R, 100k and 200k) 

    Oh, yeah, and buy some solder paste, because this PCB is best made with hot air reflow due to QFN components on the backside!

    All ready?
    Great, then head over to the GitHub wiki page for the more detailed, up-to-date instructions!

  • 2
    Print and assemble the casing!

    Any good piece of hardware needs an appealing and sturdy casing to work right, doesn't it?
    That's the same for this project, and we got you covered with an easily 3D printable frame!

    The model provided in the files consists of multiple parts. Model pieces named "COREx" are what you will definitely need to print - these are:

    • The central core that holds speaker, PCB, battery, LED, and so forth
    • The two side panel pieces that will cover the PCB.

    If you have a multi-material printer, or know how to use Prusa's Single Extruder Multi Material feature with manual filament swaps, there are a few extra models to let you add some style to the casings. The appropriate model pieces will be named "COREx_MODa.b", with "a" being the material number and b just an identifier.
    I recommend a clear material for the pieces going below the side-cover slits, and a nice, bright, contrasting material for the top indicators to add some "pop"!

    When the central holder is printed you can already start assembling it:

    1. Carefully insert the PCB. The navigation switch has to slide through the hole for it, so you need to angle the PCB a little and push the nav switch in. Then, just push the PCB into the frame and position it until the screw holes line up with the screw mounts on the printed piece.
    2. Screw the PCB in place with two M3 nuts and short (6mm) M3 screws. It should look a little like this:
    3. Prepare the speaker, button and switch. We'll glue them in in the next step which will make their solder points hard to reach, so we need to add some wire now. The button needs a bit of wire going from its upper left and bottom right pins to the two upper connection points next to the JST connector.
      The speaker's wires need to reach from the front nozzle section of the casing to the two connection points next to the ESP32 - or, if you use a breakout board for the I2S audio, to that.
      The power switch needs its wires to reach from the little cutout below the D-SUB connector to the two connection points above the battery JST connector. 

    4. Glue in the different components!
      You can use either a strong adhesive tape or something like loctite or cyanacrylate. Important is just that it can solidly connect the different parts to the frame, but that it also doesn't seep into the mechanics of the button and switch.
      For the switch and speaker you won't need that much glue, since neither will experience that much force - but for the trigger button I highly recommend a little more, just because players will probably be tempted to smash it a little harder than they need to. 

    5. Push in the two front LEDs (3mm IR LED and the WS2812) into their respective spots in the casing. You shouldn't need glue to fixate them since the case should fit them snugly, but it can't hurt to add a bit to make sure their bond lasts.
      Once they are in place, you can solder them up, using some copper wire to hook them to the six connection on the front of the PCB. 
      You shouldn't have to cross any wires over one another, but I highly recommend double-checking the polarity of the WS2812 and the IR diode!

    6. Slide in the battery into the holder. Depending on the type of battery you get, 

    7. Push M3 nuts into the six attachment points on the top and bottom of the core casing. You can fixate them by heating them up so the plastic melts around them, or just by adding a little more glue. Either way, make sure they sit flush with the surface of the casing 

    8. Screw on the top and bottom halves using the same small M3 screws as for the PCB!
      If everything went well, your piece should look somewhat like this now:

       
    9. And now?
      Plug the PCB into your computer via USB. If the firmware is already loaded it should start charging the battery (indicated by a very slowly growing battery LED). If not, you can go to the next step to flash the firmware of  the ESP and configure your access point

View all instructions

Enjoy this project?

Share

Discussions

dendad51 wrote 09/07/2018 at 07:54 point

Oh, the IR camera is just to be used to sight the gun in as the "image" is invisible.

I use these sort of flashlights and have IR LEDs to put in them. Just the LED and lens is used, in a 3D printed housing.

https://www.ebay.com.au/itm/5x-CREE-Q5-LED-Zoomable-Focus-Bright-Flashlight-Torch-1200LM-Light-AA-14500/172292965071?epid=2256915909&hash=item281d7602cf:g:4r4AAOSwK8BbQ~4V

And that feeds into one of these...

https://www.ebay.com.au/itm/Clip-on-12x-Optical-Zoom-HD-Telescope-Camera-Lens-For-Universal-Mobile-Phone-JFA/253742359147?epid=730731908&hash=item3b1439226b:g:GWAAAOSwR6RaRD~E

Yes, the WT558D modules are great. But don't forget to buy a programmer too.

  Are you sure? yes | no

Cor van Essen wrote 09/07/2018 at 07:16 point

That looks cool. I made something similar with everything stuffed in a toy gun. And the receiver LED were on the gun itself. Yours looks way nicer. I used an Adafruit board to connect to my phone which would then upload to the internet.  I have a proof of concept, but then other things came along. So this is inspiration to pick it up again.
How good is your IR range? 

  Are you sure? yes | no

Xasin wrote 09/07/2018 at 07:32 point

I'm using a strong IR led, probably over driving it a bit, and it's run through a fairly small hole (0.7mm diameter) to focus it. 

That gives me about 40m of range in low light conditions, some 20m if the sun is out. 

I'm still looking for a good IR lens though. With it I could focus a much larger beam, and the range could skyrocket. How much I sadly don't know.

  Are you sure? yes | no

Nick wrote 09/09/2018 at 11:08 point

Im not sure  how well they work, but have you tried lens's for arcade light guns? https://na.suzohapp.com/products/optical_guns/96-0068-00

They can usually be bought for cheap used on ebay,, or from local arcade operators.

  Are you sure? yes | no

Xasin wrote 09/09/2018 at 11:37 point

@Nick, that lens looks fairly good, thanks for the hint! But I fear glass lenses aren't the best option for IR - some materials don't let those wavelengths through very well. It's also a bit very expensive, so I'll stick with a simple lense-less design for the time being

  Are you sure? yes | no

denys wrote 09/06/2018 at 22:35 point

This is really interesting. I've stalled a bit on my Laser Tag system that was aimed at being finished last Christmas!

Mine is built into Nerf guns and uses an Arduino Pro Mini driving the IR LED from one of those metal flashlights. The LED and lens from the flashlight is mounted in a 3D printed housing that is stuck on the end of a mobile phone telephoto lens so it shows the "picture" of the LED at quite long range. Visible LEDs are used to setting up, but an IR enabled camera will be the way to go.

Sound is from a WT588D module. Various gunshot sounds can be selected, along with an empty click, and any other sound wanted.

It may be worth looking at these for your gun.

Power is an 18650 call with a USB charger/protector board.

But I like your ESP8266 idea.

Maybe I'll get back to it so my son gets it for this Christmas ;)

  Are you sure? yes | no

Xasin wrote 09/07/2018 at 07:32 point

The WT588D module is definitely something I'll have to look at! 

Sound is still something that my project is lacking at, I'm just using a variable frequency PWM output for the buzzer. 

I like the idea of using nerf gun casings, but my system doesn't care about what it's inside. 

As for using the IR LED of a flashlight together with a IR camera, I'm not sure if that is a good idea. A camera wouldn't be capable of decoding a modulated IR signal, meaning that any source of IR light would look like a shot. 

Plus, you wouldn't be able to discern individual players, which would not allow for different weapon types or teams to be used effectively.

Isn't a IR camera a bit expensive too? >.<

If you want, you can look at the code of my AVR chip. With a few modifications it can run in stand-alone mode, without the need for an ESP and server. 

You'd have to change it a bit to work with the sound module too, but that's doable.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates