Instructables
first what youll notice my grammer isnt the best :)
ok what youll need: 1 transister/mosfet that can handle the current for the water gun motor, this is the one i used - http://www.sparkfun.com/products/10213   -   then a diode, i used this one  -   http://www.sparkfun.com/products/8589   - then a 10k ohm resistor, then a PIR, i didnt use this one but it should work -  http://www.sparkfun.com/products/8630   -  then a bread board, i used this one   -   http://www.sparkfun.com/products/7916  -  then some jumpers these are what i used   -   http://www.sparkfun.com/products/124   -   then an arduino, i used a uno   -     and a water gun, which was for me, a pretty hard thing to find around the house, but i got one from a pesticede battery operated sprayer (it had never been used). and i made the sprayer tip using some tubing, a .22 air gun pellet and a tack ( im pretty creative:). last a battery  and battery holder that will work for your sprayer motor.  oh and also keep in mind this instructable was done by me, a 14 year old who just got into elctonics in the last few months, plus this is my first instructable :).

Step 1: The code

Picture of The code
first, upload the code. go to the bottom of this page - http://www.ladyada.net/learn/sensors/pir.html - copy and then paste it in the arduino ide, then change the LED pin to digital pin 3, then save the code in the ide, then upload the code to your arduino.

Step 2: Wiring up the PIR

Picture of Wiring up the PIR
p2.JPG
p1.JPG
follow this wiring diagram for the PIR. yellow jumper is out or signal, black is ground, and red is positive 

Step 3: The circuit

Picture of The circuit
p2.JPG
p3.JPG
now build this circuit on a bread board, but know that you wont get it to work the first time. and its very picky on how you put the jumpers, especially around the mosfet/transistor.

Step 4: The box

Picture of The box
now, i built a box from some 1/4 luan plywood and some VERY heavy duty super glue called "2p-10" made by fast cap. but im not going to tell you exactly how to built it because it depends on how you want to rig it all up and how big your water tank is.
 
Remove these adsRemove these ads by Signing Up
sdcharle6 months ago

This is pretty cool. I would have liked a little more detail on how you put together the sprayer though, it sounds like you had a clever solution but I'm not quite sure how to repeat it.

FJMSoft6 months ago

I would do this without the Arduino.
PIR switches the mosfet and turns on the pump.
Some PIR modules have adjust for high and low time.

Can you upload a picture of how you connected/what you connected to the breadboard?Thanks
MisterZhen1 year ago
WOW!!! I really wished you had posted this a month ago. I was working on a project that used a servo to active a motorized sprayer but this is so much more efficient! The only question I have is what voltage is the motor that you pulled out from the sprayer? Mine blew out but I'd like to replace it and try out this configuration. Good job and thanks!
dean14111 (author)  MisterZhen1 year ago
i think it was a 6v but it ran on 9v and hasnt blown out yet
i was wondering what is the battery pack you used to supply the board what batteries are there and how mant
dean14111 (author)  brandintripp1 year ago
do you have an anduino? because its best to get a battery pack designed for arduino so you know its the right suppy voltage (5v) and to answer your question (1) 9v battery and a male bell connector with a switch to turn the arduino on and off.
did you use a MOSFET transistor?
Okay I got you on that, but is that a servo motor you used? If so how do you get it to push the trigger of the spray gun? Or what did you use to push the trigger?
dean14111 (author)  brandintripp1 year ago
i didnt use anything, i took the motor/pump completly out of the water gun/sprayer and then wired it directly into the ciricit so when the PIR senses motion and then sends the signal to the arduino and then the arduino sends the signal to the mosfet then it supplys the power from the 9v battery to motor on the pump. again if you have anymore problems let me know
The pump itself what did you use to pump the water?
dean14111 (author)  brandintripp1 year ago
i think i said this somewhere in the instructable but i used a battery powered sprayer from a pestiside bottle but you can use almost anything like maybe a electric kids water gun or just about any type of sprayer and then for the nozzle it really depends on the power of the pump and if the pump has a "stream" or "spray" nozzle on it already. hope this helped but if not feel free to ask if you run into any more problems
okay i have a question. I am trying to make this project. can you please explain how you made the water pump. i know you have to hook the motor up i just need to know how you got it to work and shoot the water out
dean14111 (author)  brandintripp1 year ago
you mean as far as the wiring or the pump itself? and sorry for the late reply i didnt have very good internet where i was the last few days.
jj.inc2 years ago
You should have two outputs for the water gun which point at slight angles away from the motion sensor, that way if you are passing quickly, you still get hit.
dean14111 (author)  jj.inc2 years ago
i never thought of that, great idea and i will do that on the next one i build.
scottsmith2 years ago
I like this project! Very fun idea.
dean14111 (author)  scottsmith2 years ago
thank you, and insted of the bug sprayer you can up the power and use this --- http://www.sparkfun.com/products/10456 -- and then you have a SUPER SOAKER!!!! please reply
thanks
putty1cat2 years ago
You sound older than 14 in the video! lol But really good job on the instructable, I like this one.
dean14111 (author)  putty1cat2 years ago
finally someone commented!!! and i get that a lot:) and thanks for the complment about the instructable. my next instructable will probably be a capacitor bank from old disposible cameras, i just need more caps before i make it!!!