Arduino Motion Detecting Squirt Gun

davisde
[vc_row][vc_column width=”2/3″][vc_separator][venera_framed_image content_type=”video” css_animation=”appear” frame_type=”browser” slider_engine=”flexslider” video_link=”https://www.youtube.com/watch?v=bSz4FQPsir8″ browser_url=”https://www.youtube.com/watch?v=bSz4FQPsir8″][vc_separator][/vc_column][vc_column width=”1/3″][/vc_column][/vc_row][vc_row][vc_column width=”2/3″][vc_tabs][vc_tab title=”About This Project” tab_id=”1402713028-1-39e9a4-2f8846d9-0fc4″][vc_column_text]

In case you want a nerdier way to make a cheap motion detecting squirt gun, Here’s how you can build your own with an Arduino and a PIR sensor!

[/vc_column_text][/vc_tab][vc_tab title=”Parts and Downloads” tab_id=”1402713028-2-39e9a4-2f8846d9-0fc4″][vc_column_text]

Acquiring the Parts
Here’s what you will need:

  1. Raid Auto Trigger
  2. Arduino
  3. PIR Motion Sensor
  4. Diode
  5. NPN Transistor
  6. Wire cutters and wire

TOTAL COST: ~$45.00

[/vc_column_text][/vc_tab][vc_tab title=”Assembly” tab_id=”1402753910272-3-846d9-0fc4″][vc_column_text]

Disassemble the Automatic Sprayer
Wire Up The Arduino
Here is a schematic of the Arduino. You can download the Fritzing files by clicking on this link. Screen Shot 2014-03-29 at 3.15.19 PM [tabby title=”Step 3″]

Add The Code
Here is a copy of the Arduino code to upload to your arduino. You can also download it by clicking on this link. const int pirPower = 13; const int pirIn = 12; int motorPin1 = 3; void setup(){ pinMode(pirPower, OUTPUT); pinMode(pirIn, INPUT); pinMode(motorPin1, OUTPUT); digitalWrite(motorPin1, LOW); digitalWrite(pirPower, HIGH); } void loop(){ int value= digitalRead(pirIn); if (value == HIGH){ digitalWrite(motorPin1, HIGH); delay(500); digitalWrite(motorPin1, LOW); } }

[/vc_column_text][/vc_tab][vc_tab title=”Important Links” tab_id=”1402753981900-3-1046d9-0fc4″][vc_column_text] Help support my channel: http://www.patreon.com/tinkernut Follow Tinkernut! Google + Facebook Twitter [/vc_column_text][/vc_tab][/vc_tabs][/vc_column][vc_column width=”1/3″][/vc_column][/vc_row]

2 Comments

  1. June 14, 2014 at 8:21 pm

    […] you want a geekier way to build a motion detecting squirt gun, check out the Arduino version of this same […]

  2. October 29, 2014 at 11:06 pm

    The Ships’s Voyages

    I believe technological know-how just makes it even worse. Now there is a channel to never care, now there wouldn’t be considered a possibility for them to discover.

Leave a Reply