3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

FPS arcade style gun

Step 5LED's and webcam

LED\
«
  • IMGP7339.JPG
  • IMGP7336.JPG
  • IMGP7337.JPG
  • IMGP7248.JPG
  • IMGP7249.JPG
  • IMGP7338.JPG
Intro
This part of the gun will vary depending on the environment you use the gun in. the software will track a color and convert its movement into mouse movement; for example I usually use a blue LED but if I use it in a room with blue objects in front of the camera it can get somewhat confused and glitches violently. To compensate for this I also put some infrared LED's and through a simple selection switch I can choose which light will best suit the environment of use. You should also try a variety of different LED's brightness's, if you use an LED to bright it can reflect under the webcam and other parts of the room also confusing the system. I ended up using two bright (not super bright) 160° Blue LED's which work nicely.

Infrared webcam
This step is only necessary if you want to use infrared LED's you could always just have many different colors to choose from, and that way you wouldn't have to change your webcam. But I used infrared anyway. To convert your webcam to infrared simply take it apart and look around for the filter. If you're lucky it's a fat little slice of glass you can just pull out. But since webcams are usually pretty small they seem to just print the filter on the inside of the lens. I used a Dremel brush to scrape off the printed filter.

LED mount
It doesn't really matter how you do this part, just as long as your LED's end up facing forewords and can have a pretty good spread of light.
« Previous StepDownload PDFView All StepsNext Step »
3 comments
Jul 13, 2009. 1:58 AMmikuru says:
where abouts do i put the LED on the gun?
Apr 11, 2008. 11:33 AMtom61 says:
You may not need to take apart the cam at all, depending on model. Most digital still cameras I've played with see the light from a remote control to varying degrees, and the web cam on my Asus EEE sees IR from a remote very well (will flare if pointed closely at it).
Apr 9, 2008. 9:09 AMaaon says:
A while back someone posted a way to use a laser to control a mouse. Maybe mount a laser on top and point it at a mouse sensor. Small target but would help with the movement.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
25
Followers
9
Author:rustlabs(michaelcandy.com)