Introduction: Nerf+Arduino= Sentry Gun
Runner Up in the
Automation Contest 2016
Have you ever got tired in a nerf war and wished you could just sit and relax for ten minutes, well with this automatic (motion-activated) sentry gun you can sit back and relax while this awesome sentry gun exterminates all the players. So stop reading this and start building this amazing project.
Step 1: Materials and Tools Required
- An electric blaster (I used a Nerf Modulus)
- Two 75 cm PVC pipes
- Four PVC T connectors
- Six PVC elbow connectors
- Four PVC caps
- One plastic hanger
- A few pins
- Electric tape
- A piece of paper
- A marker
- Zip ties
- One 6 volts battery
- Any board that can be programmed with the Arduino software (I'm using a ChipKit Uno 32)
- A USB cable for the Arduino
- A power bank
- One motion sensor
- One micro servo
- One 6 volts servo
- A few female to male jumper wires
- Some male to male jumper wires
- Two different coloured LEDs (I'm using a red one and a green one)
- One small breadboard
- A candle
- A pair of scissors
- A glue gun
- One cutter
Step 2: Making the Base
Step 3: The Trigger Hook
Step 4: Setting Up and Gluing the Servos
This is the program you might need to run, to know where to glue the servo:
For the program above, you will need to connect the ground of the micro servo (the brown or black cable) to the ground pin on the Arduino, the power of the servo (the red wire) to the 3 Volts pin on the Arduino, and connect the signal of the servo (the orange or white wire) to the pin number 9 on the Arduino board.
Step 5: Setting Everything Up for the Wiring
Step 6: Wiring Everything Up
Wiring list (all connections are made with jumper wires)
- Connect the VCC of the motion sensor to the 5 volts pin on the Arduino, then connect the OUT of the sensor to pin 2 on the Arduino, and connect the GND of the sensor to the ground pin on the Arduino
- Connect the positive of the 6 volts servo to the positive on the 6 volts battery, then connect both, the ground of the servo and the ground pin on the Arduino, to the ground of the battery, and connect the signal of the servo to pin 9 on the Arduino
- Connect the positive of the micro servo to the 3 volts pin on the Arduino, then connect the signal of the micro servo to pin 8 on the Arduino, and connect the ground of the micro servo to the ground pin on the Arduino
- Connect the ground of the green LED to the ground pin on the Arduino, and connect the positive of the LED to pin 13 on the Arduino
- Connect the ground of the red LED to the ground pin on the Arduino, and connect the positive of the LED to pin 12 on the Arduino
*You will need to use the breadboard for all the ground connections and other connections as well.
Step 7: The Finale
You're almost done. All you need to do is open the link below, copy the the program and upload it to your Arduino and you're done!
If you liked this project, please go check the automation contest (if it's still going on) and smack the vote button.
We have a be nice policy.
Please be positive and constructive.