This is part 2 of the Nerf Gun hack, you can see part 1 of the project here. Last time some wiring was done to allow us to remotely control the three internal motors. This time the control wires are connected to a simple circuit that uses two darlington transistors to spin up and fire the gun. A 16f88 PIC microcontroller is being used to monitor an IR beam and fire the unit when the beam has been broken. The IR beam consists of an Infrared LED and an Infrared Transistor. To determine when the beam is broken an analog reading is taken by the PIC when the IR LED is off and again when the IR LED is turned on. The difference is used to determine the state of the beam, if the difference is small the beam is not broken and if the value is large we know something is blocking the beam. When the beam is broken the controller turns on the first darlington transistor to spin up the rotating motors, then a short time later the second darlington is activated which fires the dart into the spinning wheels.

11 Responses to “Nerf Gun Hack – Secure Area and Fire on Intruders – Part 2”

Nice work, Alan. Now if only the nerf gun itself could be hacked to speed up the load & fire sequence. Either that, or I suppose one would have to strategically position the sensor to hit your target with that kind of delay.

Either way, it occurs to me that’d be a good way (in the Rube Goldberg sense) to train a cat to stay off the counter. 😉

You could meter the button of the camera and use an NPN or a PNP transistor accordingly. You could also use a small N/O relay contact if you don’t want to have any of your experimental electronics mingling with the electronics of the camera. Of course this assumes that the camera uses a N/O (normally open) push button which is a good assumption.

[…] nice Nerf Sentry Gun, he used the NERF Vulcan which was the same gun I was thinking of using for my Nerf Gun project which is currently being finished but it was quite a bit more than the knock off that I ended up […]