Creating your own DYI Laser shooting range...
- Posted: May 31, 2013 at 6:00 AM
- 4,918 Views
Come on, it's fricken lasers!
This is probably the first post on (hopefully) a series of ‘offtopic’ posts covering cool things I’ve done and consider worth sharing. It’s about a side project we did more than two years ago, while working on multitouch tables and IR technology.
At first we incorporated a 780 nm infrared laser into a plastic MP5 soft-air toy gun. The laser perfectly fit into the barrel (Fig. 1a). Two 1.5 V batteries were placed inside the hold (Fig. 1b) and wired with a capacitor (I’ll check its capacity and update this), a switch and the laser (Fig. 2).
The idea behind using a capacitor is to prevent continuous firing of the laser, most importantly as a security measure.
The assembled MP5 laser gun can then be used to fire light bursts of a few milliseconds.
To track the infrared light spots on a projection surface, we used a modified Hercules Classic Silver webcam. It’s a very cheap model (only 320×240 pixels) but it features a M12 lens with integrated IR filter which can easily replaced by a custom M12 lens with a bandpass filter, transparent for infrared light. Another reason we used the Hercules Classic Silver is that my grandpa had it laying around.
Community Core Vision (CCV) and MultiTouchVista (MTV) were used to create Windows touch input from the IR spots. (Note: On Windows 8 I’d recommend my TouchInjector software instead of MTV, as it’s more responsive and easier to set up.)
After calibration of the projection screen dimensions in CCV (using a single IR LED, or another (infrared) light source) we were able to shoot mouse clicks onto the screen with the laser MP5.
One might suggest to play the game Moorhuhn, but it should be noted that Moorhuhn spans across the screen and requires scrolling (at least if you want to shoot ‘em all). For that reason I wrote the WPF application “LaserRange” (app & sources [Click through for the source link], requires .NET 4.5), that can be used to shoot blue circles of varying size. Precision, as well as reaction time get scored and, of course, there’s a lasergun sound effect
The app is simple, but hey, it's not the app that we're here for, it's the lasers!