I originally wanted to just make a single working Phaser. But over time it developed into a laser tag game.
It's very simple to set up. Mine broke due to simple wiring I messed up. But this shouldn't happen when you know what you are doing!
Keep in mind that I am not very experienced with Arduino.
How it works is when you push the button on the top or side of the phaser, a piezo buzzer will hum in a low pitch and the laser moodule will shoot a laser out of the gun. When you point this laser onto the reciever, a LED light will go on and the piezo buzzer will hum in a higher pitch. This way you know the reciever has been hit. The reciever should be worn on your chest as a target. The reciever is connected with the arduino and the laser aswell. It's all connected.
I built 1 phaser but you could build 2 if you want to play with friends.
Step 1: The Components Needed
You will need:
- 1 LED light
- 1 Piezo buzzer
- 1 Push button
- 1 Laser module
- 1 Laser reciever
- 1 Power supply for the Arduino (9V battery)
- 1 Battery clip (for the 9V battery)
- 1 Protoboard
- 2 Jumper cables (with an opening for 3 pins)
- 2 Resistors (I used 10K Ohm resistors)
- Simple wires
- A toy gun (preferably a toy phaser)
- Duct tape (any tape will do)
- A small pouch or bag to fit your Arduino (make sure the bag can be worn around your neck or waist)
- Equipment to solder
Step 2: The Code
You can find the code by following this link to Google Drive. Download and put it in a folder.
In the top of the code I have put the parts needed. Each line in the code has a comment so you can easily see what it means. The code has 2 if statements. 1 for pushing the button, and 1 for the detection of the laser.
Step 3: Building!
It's time to start building! I don't have photos of the building process so I am sorry for that. I do have photo of close-ups of the finished thing. But I will try to explain as best as I can!
The second photo is how the phaser should look like when it's not yet built into the phaser itself.
Now build the circuit on the first image. On the left is the laser module and on the right is the reciever. The resistor from pin 11 should go to where the purple line goes. The battery can be connected with a battery clip.
With everything connected and the code in place, the phaser should work. Now it's time to solder!
Step 4: Soldering
Now you have assembled the whole thing, you can begin to solder the wires against the parts so they can be easily placed inside the gun.
You should know I have no experience with soldering, so I apologize for limited explanation. Instead here are links to tutorials and basics for soldering.
The wires should be soldered against the pins on the buzzer, LED, laser module, reciever and button. With everything soldered correctly, we still have to build it into the toy phaser itself!
Step 5: Building Into Phaser
For this step you will need a toy phaser. But you can also do this with any toy gun that can be split in half. I used a nerf gun because I couldn't find a phaser to buy. See image 1.
Most of the toy guns/phasers are made of plastic an can be split in 2. There should be a seam. With a little pressure and pulling, (you can use a screwdriver or something like it) you can pry it open. See image 2.
The Arduino itself can't be placed inside the phaser. But the parts like the laser module, buzzer and button can. Place them in the phaser as you see fit and use duct tape to secure them in place. The laser module should point out of the "barrel" of the phaser. Make sure you have hole in the gun. A hole where the wires can go through like in the third and fourth image.
The button should partially be outside the gun so it's still possible to press it. The reciever and LED light can be placed on your chest with duct tape when using the phaser. You can also use a harness (like a cardboard box, cut out by the arms to use it as a harness) to place the reciever and LED light on.
Like I said, the Arduino can't be placed inside the phaser because it's probably too small. So if you have a small pouch/bag, put the Arduino in it. Wear the bag around your neck or waist. This is a simple way of carrying the Arduino.
Step 6: Finished!
It's finally finished!
If you would build a second one you could play with other people. The laser reciever also detects light. So when it is dark you could play with flashlights even. But I have not tested this out yet.
I hope you liked this instructable and that it helped you!