arduinoSentry01.jpg
I’m building an Arduino Nerf sentry gun. In the previous post, I showed how I wired and mounted the trigger connector. Now, I need a circuit to fire the gun from the Arduino microcontroller by bridging the two wires coming from the 1/8″ jack I put in the handle. I’m doing this is with a small, 5V relay wired to a digital pin and ground of the Arduino (my original plan called for a MOSFET, but the spot I wired to made a relay easier). Relays are electro-magnetic switches that can be opened and closed by energizing their coils. In this case, the low current, 5V from the Arduino is enough to do the trick all by itself. Here’s a snazzier circuit, if you have a less Arduino-friendly relay. My circuit also has a diode in it to prevent the collapsing magnetic field from frying the board. Here’s my sketch of this:

NerfRelayNtbkScan01.jpg
Here it is on a breadboard. I loaded a simple blink sketch on the Arduino, so that it pauses for four seconds, then fires the gun for one second, repeats. This is great for testing, and means I can now command a barrage of Nerf darts from my microcontroller. Watch out!

nerfGunRelay01.jpg

In the Maker Shed:

Makershedsmall

arduino_duemilanove_cropped.jpg

Arduino Duemilanove

One Response to Arduino Nerf sentry gun build: Relay firing circuit

  1. Jeremy on said:

    Looking good so far. In case you need some advice, I made almost the exact same thing last year. Good luck on the rest of the project!
    http://jeremyblum.com/2009/05/15/nerf-sentry-gun_be-afraid/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

%d bloggers like this: