ssn circuits

Friday, September 3, 2010

Lazer Tag, Infrared Receivers, and other distractions

So I wasn't really in the mood of making and coding the timing controller for the PCB laser printer. And I remembered I had this laser tag gun that I took out of optical alignment the last time I took it apart. I figured it wouldn't be a bad idea to take it apart to do some mods and to fix the alignment again:


This is a Nerf (previously Tiger) "Lazer Tag" Phoenix LTX tagger. There's a lot of talk and background on this guy online, so if you're really interested Google further. This is indeed marketed a toy laser tag gun, but as it turns out, its performance far exceeds most toy laser tag guns. In real-world testing, the range limit of the gun seems to be on the order of 400 feet or so, and it's pretty trivial to make hits at half that distance (with good aim, of course). 

So first, a little background on how these guys work: despite their name, most of these taggers don't use lasers for the actual hit transmission. Instead, they use IR LEDs, much like your infrared TV remotes. In fact, the whole system is essentially a well-mounted TV remote and receiver with optics to keep the beam narrow. So when you're playing, you actually do need to use the iron sights to really hit anyone reasonably in the game--the aim is fairly realistic.

Of course, it's not perfect, and that's why I'm making a post about it. The IR receiver is mounted on a little dome on the gun and not on the player's body. This makes it easy to cheat and cover the dome, and makes the experience a lot less realistic--you're guarding your gun, not your body. So I figured I'd re-investigate the IR receiver and see if it was reasonable to wire up external sensors. The last time I took the gun apart, I remember there being a couple of issues involving the IR receiver circuit they used and the fact that you couldn't disassemble the module without permanent damage to the plastic. But heck, this tagger was the runt of the litter and odd one out (literally, too--I have 7 taggers, they only sell these in pairs, and you can't form even teams with this guy around) so I decided to finally take it apart and fully reverse engineer the schematic:


I left out the red LEDs (there's two pins for flashing all four on and off, and it's completely separate from the IR receiver, probably to reduce noise). The indoor mode, as it turns out, only changes the receiver sensitivity by changing the bias on the PIN photodiodes. The main IC in the circuit is under an epoxy blob, but their very well documented patent actually tells you exactly what it is: a "KA2184." Unfortunately, this chip is at least a decade old (back from when the patent was submitted), but it's quite obvious what it does. Every time you fire a shot you need to more than an infrared pulse--you need to transmit information on what team you're on and what kind of hit it was. Most importantly, you need to be able to distinguish the hit from, say, light bulbs or the sun, so the IR signal is typically modulated by a 38kHz or some similar frequency carrier. What's inside the receiver IC isn't much different from an RF receiver IC--you have an amplifier in front (in this case, a transimpedance amplifier for I-V conversion), an AGC so that you can still demodulate weak signals without saturating the receiver with stronger signals, a bandpass filter to filter out the actual signal of interest, and a demodulator to output the actual digital signal. It's really just OOK (on-off keying) for IR instead of RF.

If you Google hard enough, you'll find a couple of equivalent part numbers, one of which still has an application schematic online. Chances are, they use some equivalent part. These ICs are generally called "infrared amplifiers" or "infrared preamplifiers." They're pretty unpopular these days; only a few chinese manufacturers and Atmel (T2526 and family) seem to still make them, probably for very low price point products like this toy or other applications which require more control over the receiver circuit. I don't know any distributors which stock them.


The unpopularity of designing receivers like this ties directly to why my attempt to wire up external sensors didn't work. If you've ever played with any infrared transmission scheme, you've almost certainly run into nice little three pin infrared receiver modules. These modules have the PIN diode (random tidbit: PIN stands for p-type - intrinsic - n-type, and is a type of semiconductor junction used in most photodiodes) and IR receiver ASSP in a single plastic module, which is often shielded internally by a metal leadframe. These seem to have, for the most part, displaced the old approach with a separate PIN diode and receiver ASSP because the noise and shielding issues you've got to deal with if they're not in a single package. In this case, the designers probably chose this path to meet the price point ($25 per tagger isn't much to work off of given how much is in this gun) while still having three receivers for 360 degree coverage for the receiver dome. If you used three separate IR receiver modules, you'd also have to deal with somehow combining the three outputs. This is, circuit-wise, easy because a lot of these modules are open collector, but what if the signals are received with some phase shift due to variances in the AGC, or what if two sensors receive two different signals from two different taggers? There's a good chance of losing lots of hits in heavy firefights rather than at least taking a hit from the strongest signal (which is what happens thanks to the AGC). The ideal way to do this is to process all three IR receivers separately, but that's probably more horsepower than the dinky toy-grade MCU they used probably had.

So back on topic--the noise issues are exactly what I ran into (and what I expected, but I wasn't totally sure and I figured I'd try it out anyway). I desoldered the three original PIN diodes from the circuit, wired them up some servo connectors (I have a bunch of servo extension cable assemblies) and taped the whole thing to piece of elastic (like these MilesTag sensors http://www.lasertagparts.com/mtsensors.htm). And the receiver spat out so much noise that the tagger refused to fire, probably because it kept on entering the routine which prevents firing while being shot or thought that it was firing at itself from an infrared reflection. A cap helps to filter out the noise, which I noticed when I stuck a scope probe on, but it also degrades the performance of the receiver and reduces the effective distance, so that's pretty useless. The only real thing to do is to improve the shielding of the cable I used (which was barely twisted pair), but you don't really want an expensive and heavy piece of coax just to transmit a silly 38kHz signal. So for now, at least, this project is scrapped until I feel like wiring up actual IR receiver modules and replacing the dome's receiver entirely.


Well, I hope that first real post had some interesting info that'll help you on your own endeavors. Happy hacking!

P. S. Yeah, I meant to crop all of those images, but I'd rather finish this up and start on working on the laser printer controller than reupload these photos.

Labels:

2 Comments:

Blogger MrSimpson said...

I presume you're aware of the yahoo group:http://games.groups.yahoo.com/group/LazerTagTeamOps/messages frequented by one of the developers Brian Farley aka tagferret and Greg's hub site for all things related to these taggers http://www.ggaub.com/ltag/

October 7, 2010 at 4:26 PM  
Blogger Fritz John Marajas said...

Experience the thrill of outdoor laser tag skirmish in a new and exciting way. It’s an ideal activity for kids and teenagers birthday parties!

laser tag

December 4, 2014 at 2:51 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home