VR Gun USB Build

 

 

 

 

Material needed:

  1. Erazor MP5 Light Gun. http://www.gocybershop.ca/product_details.asp?ID=410
  2. Ultra Cordless USB Gyromouse. www.gyration.com
  3. Radio Shack 7x5x3 Enclosure Part # 270-1807
  4. Radio Shack Pushbuttons Part # 275-609
  5. Standard PS2 Keyboard
  6. 25ft DB25 M/M Serial Cable
  7. DB25 socket and mounting hardware
  8. 1- red LED and clip
  9. 1- green LED and clip
  10. Plastic stick-on Standoffs http://www.mouser.com Part # 561-LAD500 1/2” long
  11. 0.22uF SMD 0805 capacitors http://www.mouser.com Part# 81-grm40x224k16d
  12. Snap on RF Choke
  13. Ferrite RF Choke
  14. Lots of wire
  15. Shrink tube
  16. Rubber feet
  17. Solder

 

 

 

Tools needed:

  1. Soldering Iron
  2. Hot Glue Gun
  3. Basic hand tools (i.e., pliers, screwdrivers, etc)
  4. Dremel with grinding wheel
  5. Drill with bits
  6. DVM
  7. O-scope (for troubleshooting)
  8. Wire cutters
  9. Wire strippers

 

 

Recommended Sequence of Steps for VR Gun build:

  1. Purchase material
  2. De-trash MP5 gun
  3. Clean PCB in MP5 gun
  4. Clean gun
  5. De-trash keyboard
  6. Decode keyboard card
  7. Mount Keyboard card into gun
  8. Wire keyboard card and DB25 cable
  9. Wire keyboard card and PCB buttons and switch
  10. Wire trigger and tracking activate switch
  11. Build Enclosure
  12. De-trash gyromouse
  13. Wire MG100 into Gun
  14. Wire and mount MG100 PCB into enclosure
  15. De-trash gyromouse receiver and mount into enclosure
  16. Reassemble enclosure and gun

 

This is not a simple project. Unless you are very experienced with soldering and or an electronic technician, you may want to read this procedure before beginning. Here are some basic electronic questions. If you can answer these truthfully without having to look it up then you probably capable of building a VR Gun.

 

  1. Do you know what ‘tinning’ wires means?
  2. Can you use a DVM?
  3. Can you use an O-Scope?
  4. Do you know what solder wick is?
  5. Are you familiar with the concepts of voltage and current?
  6. Are you mechanically inclined?

 

If you can answer most of these questions then you’re probably in good shape. This document will lay out a VR Gun build. It is meant as a guide and a reference. It may not contain every detailed step but will definitely show you the path.

 

The approximate cost for building the VR Gun USB is 150.00 USD. You will need 10 to 15 hours to build one unit. The VR Gun will provide you with a tracked game controller designed for FPS games. It is designed to be used with an HMD and will provide you with a level of immersion unseen in prior devices.

 

Step 1. De-trash Blaze MP5 Erazor Gun

 

 

  1. You’ll need a small Phillips screwdriver and a pair of wire cutters.
  2. Remove all screws from the MP5 Gun and open it up. There are approx. 12 screws.

 

 

  1. Once open, remove everything except the PCB (printed circuit board) and the trigger switch. Cut all wires and remove all cables. Remove the feedback motor and mechanism.

 

 

 

Step 2. Clean PCB in MP5 Gun

 

  1. Remove the PCB from the gun by removing the four small black screws with a small Phillips screwdriver
  2. Using your wire cutters, cut everything from the board except the switches and or buttons. Remove all resistors, capacitors, IC’s and connectors.

 

 

  1. Use a DVM to identify all switches and button trace paths.
    1. Determine which pins are connected and activated by each switch and or buttons.
    2. Isolate each of these switches or buttons by cutting the trace paths as to disconnect it from the rest of the circuitry. Each switch and or button must be COMPLETELY isolated or problems will occur when wiring the keyboard card. Use a dremel and grinding wheel to remove the traces where needed.

 

 

    1. Reinstall PCB into the gun.

 

 

Step 3. Clean the Gun

 

  1. Clean the gun of all cut materials
  2. Wipe all grease from the plastic body. It must be completely clean so plastic stick-on stand offs can be attached.

 

 

Step 4. De-trash Keyboard

 

  1. Remove all screws from the keyboard and pull apart.
  2. Remove the keyboard card along with the PS2 cable.
  3. Throw away the rest of the keyboard. Only the keyboard card with its attached cable will be needed.
  4. On one side of the keyboard card you will see lots of contacts at the bottom edge of the card. They will be covered in carbon. Scratch this carbon off with a screwdriver. Use a pencil eraser to remove the last bits of carbon until you can see nice shiny copper contacts. All carbon needs to be removed so they can be soldered.

 

 

Step 5. Decode Keyboard card

 

  1. You will need to decode your keyboard card. To do this you’ll need a jumper wire with alligator clips.
  2. Plug your keyboard card into your computers PS2 keyboard port.
  3. Open any text editor such as Notepad.exe.
  4. Using the jumper wire start connecting the contacts together two at a time.
  5. Record any letters or numbers that are generated and what contacts generated them.
  6. You will need 6 total numbers and or letters for the gun. These numbers or letters will be wired to the guns switches and buttons to provide response to the computer while playing games.

 

 

Step 6. Mount Keyboard card into gun

 

  1. Cut the PS2 cable from the keyboard card. Take note of which color wire goes where. Record this for future reference. Do not throw away the keyboard cable. It will be used later.

 

 

  1. Fit the keyboard card into the gun. Mount it to the piece that does not house the PCB with the buttons and switches. Mount it in the rear as seen in the picture.
  2. You will have to trim the internal plastic of the gun to make it fit properly.
  3. Mount the keyboard card into the gun using plastic stick-on standoffs.

 

 

  1. Remove all solder from the solder pads where the keyboard cable was cut. Use solder wick to remove everything so that holes are apparent.
  2. Tin all the keyboard contacts.

 

 

 

 

Step 7. Wire keyboard card and DB25 cable

 

  1. Take your 25 foot DB25 M/M serial cable and fold it in half.
  2. Cut it in half. One half will be used for the gun. You should have a cable approximately 12 or so feet long with a DB25 male connection on one end. The other half will not be used.
  3. Remove the outer coating of the cable approximately 1 foot.

 

 

  1. We will be using pins 1 thru 11 and 21 thru 25 for our gun.
    1. Use the DVM and ohm out the pins and wires. Take note of which color wire goes with what pin.
    2. There is a bare shield wire coming out of the DB25 cable. Solder this wire to the base of the PIN 25 wire.
    3. Remove a small portion at the base of the DB25 pin 25 wire and wrap the bare shield wire around it. Solder into place.
    4. The pin 25 wire will also connect to the keyboard card solder pad 5. Cover the connection with electrical tape.

 

    1. Cut any unused wires short. The wires for DB25 pins 12 thru 20 will not be used.
  1. Drill a hole the same size of the DB25 cable in the bottom door of the gun to allow the cable to pass. It should be approximately a 5/16 hole depending on your cable.

 

 

    1. Before drilling remove the metal plates on the inside of the bottom door of the gun.
  1. Stick the cable in approximately 3” past the outer coating and place a zip tie at the base to keep it from pulling out.
  2. Route the DB25 pin 21 thru 25 wires up to the keyboard card cable solder pads (where the PS2 cable was cut from).
  3. Solder the DB25 pin 21 thru 25 wires to the pads accordingly.

 

DB25 pin Wires to Keyboard card pads

 

DB25 pin wire 21 to keyboard card solder pad 1.

DB25 pin wire 22 to keyboard card solder pad 2.

DB25 pin wire 23 to keyboard card solder pad 3.

DB25 pin wire 24 to keyboard card solder pad 4.

DB25 pin wire 25 to keyboard card solder pad 5.

 

This essentially makes the DB25 cable an extension for the PS2 cable which will be reconnected in the enclosure at the DB25 connection.

 

 

 

Step 8. Wire keyboard card and PCB buttons and switch

 

  1. You’ll need 11 wires to solder the guns PCB buttons and switch to the keyboard card. What you are doing is soldering these buttons and switch to the card to generate the numbers and letters you recorded earlier. You are replacing your keyboard keys with these buttons and switch. Thus making a small keyboard.
  2. Connect the wires from your recorded contacts to the buttons as necessary.
  3. Do NOT connect any keyboard wires to the main trigger or the ON/OFF push button. Wire only to the thumb trigger, the switch, and the momentary push buttons.
  4. Use two numbers or letters that had one similar contact in ‘common’ for the switch. The switch will have three connections. A ‘common’ connection to the center top pin and the two other contacts on the outer top pins. This should generate one letter when the switch is in the forward position, one letter when in the back position, and NO letters when in the middle position. This switch is perfect for enabling mouse look in games.

 

 

Step 9. Wire trigger and tracking activate switch

 

  1. Solder the DB25 pin 9 wire to the top tab of the main trigger switch, along with a jumper wire from the top tab to one side of the ON/OFF push button the gun PCB.

NOTE: There is only one ON/OFF Push button on the gun PCB. This is used to turn the tracking on and off.

 

  1. Solder the DB25 pin 11 wire to the other side of the ON/OFF push button switch of the gun PCB.
  2. Solder the DB25 pin 10 wire to the middle tab of the trigger.

 

 

  1. Route the wires as shown in the picture.

 

 

  1. Set the gun portion aside for now.

 

 

Step 10. Build Enclosure

 

  1. Solder long leads (wire-approx 6” long) to one green LED and one red LED.
  2. Also solder long leads to the red radio shack push button and the black radio shack push button. Use shrink tube where appropriate.
  3. Cut an opening in the bottom left edge of one of the small sides of the enclosure for the DB25 socket to be placed.

 

 

  1. Once the cut is in the enclosure hold the DB25 socket into place to use it as a guide to drill your mounting holes.
  2. Drill the mounting holes. Do not mount the DB25 yet.
  3. Solder wires approximately 6” long each to pins 1 thru 11 on the DB25 socket. You should have 11 wires total with one end soldered to each pin.
  4. You need to solder 0.22uF surface mount caps between pins 1 & 14, 2 & 15, 5 &17, and 6 & 19.

 

 

  1. Now solder pins 14, 15, 17, and 19 to the outer casing of the DB25 socket using small jumper wires. This outer casing will later be soldered to ground. PIC 6
  2. Drill ¼” holes for both LED’s and ½ holes for both buttons.
    1. Drill the first LED hole (1/4”) 1” from the left and 1.5” from the bottom edge of the enclosure. The next hole will be for another LED 2” from the left and 1.5” from the bottom.
    2. Your two button holes (1/2”) will be placed at 3” and 4” from the left and 1.5” from the bottom.
  3. Once drilled, the red LED goes in the left most hole. The green LED in the next LED hole.
  4. The red radio shack push button mounts in the hole closest to the LED’s. The black radio shack push button mounts in the remaining hole.

 

NOTE: You will need ¼” LED clips to mount them into the holes you drilled.

 

  1. Now solder the keyboard cable you removed earlier to the DB25 socket. Refer to your notes on which color went to what pin. Remember: DB25 pin 21 goes to keyboard card wire 1, DB25 pin 22 goes to keyboard card wire 2, and so on.

 

 

  1. Now connect the gun to the enclosure.
  2. Connect the keyboard cable to a keyboard port on your PC. Open up any text editor and test your buttons. You should get output from all of them except the main trigger and the ON/OFF push button. If not, check your wiring. Insure each button or switch is isolated from the rest of the circuit.

 

 

Step 11. De-trash Gyromouse

 

  1. Remove the gyromouse battery.
  2. Remove the two screws in the battery compartment.
  3. Pop the left/right click buttons off.
  4. Remove any revealed screws.
  5. Remove the top plastic frame of the mouse.
  6. Remove any revealed screws.
  7. The gyromouse PCB’s should now be removed from its plastic enclosure.
  8. Remove the thumb wheel.

 

 

  1. You should now see the MG100. It’s a square metal canister.
  2. Cut the contacts off on the left side of the MG100. They are long metal tabs sticking up along the side will black tape behind them on the MG100. The two contacts closest together will be soldered together later and will make the positive supply connection. The other contact farther from the two will make the negative supply connection.
  3. Separate the two PCB’s. They are connected by a pin header.
  4. Take the PCB with the MG100. Flip it over. On the bottom there will be 8 pins along one side of the MG100 and 1 pin on the other side. You may have to look at the PCB for awhile to become familiar with the appropriate pins. The pins you are looking for are on the OPPOSITE side of the PCB’s MG100.
  5. Before removing the MG100 from the PCB mark it for orientation such as front, back, left, and right.
  6. You need to remove all solder from these 9 pins with solder wick so the MG100 can be removed from the PCB.

 

 

NOTE: BE EXTREMELY CAREFUL NOT TO DAMAGE THE MG100 OR THE TRACES ON THE BOARD. IF DAMAGED, THE VRGUN AND GYROMOUSE WILL BE UNUSABLE.

 

 

Step 12. Wire MG100 into gun

 

  1. Once the MG100 is removed, solder it in the gun. You will need to solder DB25 cable wire PIN 1 thru 8 to the side of the MG100 with 8 pins. The single pin on the opposite side is not used. Solder DB25 pin wire 1 to MG100 pin 1, pin 2 to 2, and so on and so forth. Do this until you have all eight wires soldered to the MG100.

 

 

Step 13. Wire and mount MG100 PCB into enclosure

 

  1. On the back side of the PCB that once housed the MG100 you will need to remove R38 and R41. They are near the front of the board near the antenna. Removing these resistors will disable the optical tracking portion of the PCB.
  2. There where three contacts that you cut earlier. The two that are closest together should now be bridged with solder to make them one big contact. This is the positive supply connection. The third contact to the right of the pair will be the negative (or ground) supply connection.

 

 

  1. Solder long leads (approx. 1’ wires) to the positive supply connection and another to the negative supply connection.
  2. The PCB that housed the MG100 will now be connected to the DB25 socket inside the enclosure. Solder the DB25 socket wires 1 thru 8 to the holes in the PCB where the MG100 pins 1 thru 8 were soldered. 1 goes to 1, 2 goes to 2, and so on.
  3. Ohm out the activate button (this is the button that enables the gyromouse tracking when in the air. Refer to the gyromouse manual to locate the relative position of this button) and the left click button on the PCB that housed the MG100. These two buttons should have a common connection. Find this common connection and solder it to the DB25 socket pin 9 wire.
  4. Solder DB25 pin 10 wire to the other side of the left click button.
  5. Solder DB25 pin 11 wire to the other side of the activate button.
  6. Solder a wire from the DB25 socket outer chassis to the negative supply connection on the previously housed MG100 PCB.
  7. Solder the leads from the enclosure black radio shack button across the ‘teach’ button contacts (refer to the gyromouse manual for the relative position of the teach button).
  8. Solder the green LED leads to the small LED on the PCB that previously housed the MG100.
  9. Now reconnect the two PCB’s at the pin header. Secure them in together with a zip tie.
  10. Now position the PCB into the enclosure close to the front of the enclosure (the DB25 socket side).
    1. Set two plastic stick-on standoffs on either side of the PCB. Glue the PCB in place to the standoffs. Allow the glue to dry before continuing.
    2. Zip tie the commons wires together to clean it up. LED and switch leads can be zip tied together.
    3. Place a snap on RF choke around all eight MG100 wires from the DB25 socket to the PCB.
  1. Feed a ferrite choke around the positive and negative supply connection wires.

 

 

 

Step 14. De-trash gyromouse receiver and mount into enclosure

 

  1. Remove all rubber feet from the receiver.
  2. Remove all revealed screws.
  3. Remove PCB from plastic enclosure.
  4. Remove antenna.
  5. Solder positive and negative supply connection leads from the PCB that housed the MG100 to the USB supply pins of the receiver.
  6. Mount receiver PCB into the main enclosure along with the PCB that previously housed the MG100. Use stick-on standoffs to hold in place. Secure it with hot glue gun.
  7. Solder red LED leads to the receivers small green LED.
  8. Solder the red radio shack push button leads across the ‘learn’ button on the receiver (refer to the gyromouse manual for relative position of this switch).

 

 

At this point you should plug in the USB and keyboard port and test everything before buttoning it up.

 

  1. Glue the MG100 sensor into the VR Gun with the hot glue gun. Make sure the front of the sensor is facing the barrel and the back of the sensor is facing the guns button and switch PCB. Refer to the picture below for relative position. You may have to trim some internal gun plastic to make it fit.

 

 

 

Step 15. Reassemble enclosure and gun

 

  1. Carefully put the gun back together. Pay attention not to pinch any wires.
  2. Drill holes along the edge of the enclosure and its lid so that the keyboard cable and USB cable can come out of the rear.
  3. Place the enclosure lid on.
  4. Put rubber feet on the lid.

 

YOUR DONE!!!