Instructables
//Rustlabs

Overview:
this is my instructable of how to make an arcade style gun for FPS pc games.

Story:
I often play computer games through the home theater setup (it just seems more fun louder and bigger). and i thought it would be pretty cool if i could play games like HL2 and Deus Ex through an arcade style gun.

The outlines for the gun are:
+ it must be able to control both the walking and looking of the game (keyboard & mouse)
+ must have many other functional keys (space enter pause ect..)
+ relatively accurate
+ decent range from computer
+ cheap and simple

Stuff you will need:
+ an old (working) usb keyboard & mouse
+ various buttons, toggle switches and LED's (infrared) of your choice
+ an old web cam (working)
+ long cable containing 8 or more wires (sata will do)
+ various materials (wood, plastic,metal ect)
 
Remove these adsRemove these ads by Signing Up

Step 1: Planning.

keys.
to have various keys on the gun i plan to take apart a keyboard and map out the connections for later use. the walking function will be controlled by the thumb using a small mounded joystick controlling the W,S,A and D keys. other keys will be accessible through button panels and toggle switches mounted around the gun.

mouse.
as far as clicking scrolling and more clicking I will once again be taking apart an old usb computer mouse and wiring it to various switches around the gun. most of the mouse functions will be situated around the trigger finger and the trigger will of-course be a left click.

but the mouse has another function in FPS games, and that is to look around. and since the gun will be moving through the air there isn't many physical ways to interface the movement of the "gun" with the computer. I considered using an accelerometer mouse but that all gets a little complicated and expensive. so instead I chose to use my old web cam and some software (robo realm) to create a mouse like function by tracking an LED.

here are some photos of sketches and ideas i had before building the gun.

Step 2: Frame

intro
when constructing the frame it is important to keep ergonomics in mind as you will be holding the device for long periods of time. Also consider the placement of button panels and the accessibility of them.

handle
I constructed my trigger handle out of some F27 hardwood (not the lightest choice of material). I then welded up a frame out of some bits of steel to hold all the parts together. I then cut out another piece of wood for the LED mount in the fount of the gun.

important*
When constructing a device like this it is always important to keep in mind the assembly; otherwise you could end up with screws you can't reach and nuts in thigh corners ect.

Step 3: Trigger & joystick

IMGP7265.JPG
IMGP7256.JPG
trigger
I cut my trigger from a thick sheet of aluminum and mounted it on a piece of Plexiglas. this allows me to put a spring on the trigger so i can now have different trigger strengths. this interface will be the primary click of the taken apart mouse.

joystick
when creating the joystick it is important to keep in mind where it is going to be placed, then shape it accordingly. I used 4 roller switches for a smooth function and a piece of threaded rod with a spring and some bolts to hold it all together. the spring helps the stick center itself as do the roller switches.

Step 4: Button pannel's

intro
when playing games there are may auxiliary functions such as flashlight, use object, scope.. ect. Is is important to include an external button panel for use by your free hand.

construction
there are many was to do this and I guess it really depends on your design. I chose to go for a traditional color coded panel like in some console controllers. I used a sheet of aluminum to hold it all together. I made this part so that it wasn’t permanently connected to the frame, so I could detach it for wiring and repairs.

Step 5: LED's and webcam

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.

Step 6: Mouse!

mouse wiring.
this part is fairly simple. just take apart your USB mouse and make connections from the various switches and connect them to the controls you want (Eg: left mouse click to trigger ect...). you should probably still use the scroll wheel since it is fairly important to have when your playing to scroll through weapons. i situated all my mouse buttons around the trigger finger and made them easily accessible.

Step 7: Keyboard mapping

getting ready
If you don't have a continuity tester (like me) i recommend building one since it will save you so much time through this part. First you should decide what keys you want and what switches and buttons on the gun they will control. then crack open a USB keyboard and you should find that there is just a small and simple looking circuit up in the top right corner which connects to two floppy sheets of circuit covered in buttons and wires. peel the two apart but be careful not to tare them. then once you've got these three parts look at what keys lay on top of these buttons and write it on the circuit with permanent marker for later reference (see picture FILL IN !!!!). then draw an illustration of the hard circuit board on a piece of paper (all pins included).

Mapping
you are probably going to want to get some calm music going cause this usually takes a while
i recommend Pink Floyd dark side of the moon. Start with the first flexible layer of circuit and use you continuity tester to find which key connected to what terminal on the board (confused? the pictures should help) then when found mark it down on your illustration of the hard circuit board. then do the second layer. you will by now have noticed that the layers are somewhat different criss crossing the circuit together but if you draw it down simply on your circuit map you should have no troubles.

Step 8: Assembly

put it all together!
hopefully all your bits will fit together nicely without too much troubles. i have saved this step until after most of the circuitry so that you can make any last minute adjustments for fit them in your design, you should also consider where your wires are going to run.

photo #1 = frame
photo #2 = frame + led face + mouse circuit
photo #3 = frame + led face + mouse circuit + trigger & joystick part

Step 10: Testing & programing

don't worry, its simple..
go to the robo realm website and download the free software. once you've done that download the attached file and test it out with your gun. chances are it will be fairly sensitive since this is still a rough program but games are still fun to play through the gun (especially snipering since it seems so realistic). ill post up an improved program once i get it perfect.

UPDATE:
nubie kindly suggested using freetrack, its allot more simple and user friendly.

Step 11: Have fun!

its over!
have fun with your new arcade style computer controller. now you can play your favorite games on TV and not have to own a console.

here are some pics of the end product!

the end.
1-40 of 77Next »
comsa424 years ago
PLEASE!!!!!! I cant solder to the keyboard chip. I think its made from graphite.
comsa42 comsa423 months ago

It's funny looking at this four years from then. The pins weren't dirty or made from graphite. All you need is a little bit of flux and you are good to go :)

rustlabs (author)  comsa424 years ago
hey dude, have you tried scratching the pins on the "chip" to get a better connection? otherwise maby try an alternative keyboard.
yea ive tried, the pins are just too close to solder to
Newer keyboards have the chip wired directly to the board and covered in epoxy. Older ones have old fashioned DIP chips or surface mounted chips, so try this:
1. Go to eBay/yard sales/anywhere else that has old PC stuff
2. Find some REALLY old USB keyboards (like ones with plastic that USED to be white, with Win keys that have the old Windows logo on them).
3. Buy the oldest one you can find. (Many keyboards have a manufacture date stamped on them)
4. Try using the one you just bought.
Good Idear. I use the Wii Controllor as guided Directioanl mouse. and i Wired part of the keyboard into the handle of the pound store Wii lightgun holder.
Same as what you have here. except you only need a few things and its easyer than what you have done for people less able to use there hands for soldering :)
congratz :)
To add.
link this one.. except no LCD Display.. :P
http://www.instructables.com/id/PC90-Wiimote-based-gun-controller-for-PC-with-LC/
can you post a video using that?

if you know how to build a computer u can build it half price :)
mikuru5 years ago
thats all good but what do i do after i get the program how do i set it up?
mikuru5 years ago
where abouts do i put the LED on the gun?
mikuru5 years ago
where the hec do i put the LED on the gun or where?
Metallica6 years ago
This is pretty cool. But why, at the end, do you say "stupid expensive console?" An Xbox 360 costs much less than a decent computer that will run modern games...
gee...i wonder why.. maybe it is because a pc is superior to consoles?
Well sure, you may be able to run higher-end games on a high-end PC, but it will cost 2x what a next-gen console costs. Consoles are cheap is what I was saying.
take away someones console, and they can't play games. take away their pc, they can't play games, view pics, go on the internet, view files and dcuments, get their e-mail, pay bills, file tax stuff, etc.
you can do that all on a ps3 lol
Since when can you pay bills on a PS3?
Nearly every bank provides a web-based interface for account access, bill paying, etc... all you need is a web browser, and IIRC, the PS3 has one.
after you stuff Linux on it...
Very true, Q.
novint has the orange box bundle on sale-preorder only!!! is the novint falcon vr controller, three games from novint, the pistol grip for the falcon, and the orange box bundle!!! for $189. yet another reason why a pc is superior- virtual reality interfaces!!!!!!!
kagenin Nyanman5 years ago
The Novint Falcon is a Haptic device, not a VR device. But it is still pretty damn cool, and there really isn't anything like it for consoles.
rustlabs (author)  Metallica6 years ago
fixed :P
Madrias3575 years ago
Half tempted to make my own as well. I've got an old wireless mouse and play a few games I'd like to use a gun for.
antivenom5 years ago
This is a excellent instructable and I'm really considering making my own, and possibly making more of a casing for it, to give it a more realisic feel, or I might see if I can fit the electronics into an arcade gun casing. Depends if I can get my hands on a large enough gun casing.
jackm71276 years ago
very cool, i only have a few questions #1 could this thing work for an xbox 360? #2 where is the keyboard? #3 are there more detailed instructions? ...yeah thats it
You couldn't do this with an Xbox 360, unfortunately.
Very impressive.
tudgeanator5 years ago
I dont understand the keyboard bit.How do i connect outboard switches to the keybaord plastic layers?
rustlabs (author)  tudgeanator5 years ago
the plastic layers connect to a circuit like this, usually in the right hand corner of the keyboard, then you simply solder directly to it.
IMGP7246.JPG
Directly to the PCB? Or to the plastic bits? Cos it doesn't look like there are enough connections on the PCB... Thnx for the quick reply
rustlabs (author)  tudgeanator5 years ago
you need to keep the plastic connected to the PCB there should be two layers of plastic, sometimes 3. and the overlap connecting bits of the circuit. you need to map what keys you want (wasd, ect) and trace their connections back to the PCB using a marker so you don't get lost, it sounds complicated but its pretty simple.
IMGP7245.JPGIMGP7330.JPG
K cheers,i sortof understand. I'm sure it will all become clear when i hack open an old keyboard. Thanks
hock3ydud36 years ago
thats cool, im thinking about trying something like this, only a two handed design (think something like a wii/nunchuck controller) so that i can skip the whole webcam thing
wiimotes have bluetooth. you can control an NXT with them.
they do? *evil laugh*
not that the NXT could cause damage, and if it really did go crazy and try to take over the world, wait. the batteries will die eventually.
no they wouldnt, it would repeat the matrix and have unlimited battery power
Nyanman Nyanman6 years ago
thats why there are rechargeables. *BWA HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH*
1-40 of 77Next »