I have a small camera looking at the beach.
The wind + salty air gets the front glass of the housing all dirty.
I want to install a "windshield washer kit" from Pep Boys ($14 or so), that has a small tank, pump, tubing and nozzles.
Already did it to one camera, and it works awesome.
Yet my "timing" system is a mess/over-complication.
I want to turn on the washer system three times per day (morning, mid-day, afternoon).
At the moment, I have a digital timer, with a resolution down to 1 minute.
Ok, so I turn on the timer at 7:00am, and turn it off at 7:01am.
The 110vac of that timer, goes into a "delay timer relay" (I think its called).
This has an adjustment knob.
I adjusted this knob via trial-and-error to "send power out" about 58-59 seconds after it starts receiving 110vac.
Would there be a possibility to have this setup with an Arduino?
Have an output for 1, 2 or 3 seconds?
The PepBoys washer pump is for automotive, so it's 12volts.
At the moment, I'm running it with a AC-DC power plug (brick thingy) that I had laying around.
The output of it is 12vdc, at 1.5amps.
The pump runs awesome with that.
Any thoughts on what I can do?
Thank you very much for taking the time to help... very much appreciated!
When you're carrying a hammer, everything tends to look like a nail. I'm certain that what you want could be done with an Arduino and an RTC chip and a relay driver circuit. It would be great fun to do.
But if you only want it to work, couldn't you achieve that using an NE555 to control the 'spray' duration via a relay and an ordinary domestic timer (like you already have) to control how often it sprays?
Any additional direction you could provide me with?
I'm looking into that NE555 now... I see it has been in production since 1971 (and they estimate over 1 billion are manufactured every year at the moment!).
So the domestic timer would start (their resolutions are down to 15 minutes, the rotary type ones)...
Then the NE555 would activate a relay... and shut it down?
Sorry, I'm a n00b.
Yet any more information is greatly appreciated!!
Thanks!
What I had in mind was to rig up a circuit around the NE555 which produced a 'high' output when it was powered up, and went 'low' after a few seconds. The NE555 data sheet shows you how to wire it up to do that sort of thing. The output would then go through a transistor (with the obligatory flyback diode) to drive the relay. The relay would connect the 12V supply to the pump. The idea would be that the whole thing was powered by the 12V supply, the timer would switch the supply on, the NE555 would close the relay for a few seconds and then open it, it would then stay open until the timer cut the power off and the NE555 reset.
It's not remotely as much fun as doing it with an Arduino, but about a hundred times simpler I would think.
If you leave the 12V supply permanently connected to the mains, you can control the 12V pump from the Arduino using a logic-level mosfet, a gate resistor and a flyback diode. See http://bildr.org/2012/03/rfp30n06le-arduino/ for the connections, however it's recommended to connect a resistor of 100 to 220 ohms in series with the mosfet gate terminal. You can power the Arduino from the same 12V supply.
If you want the timing to be accurate then you will also need either a real-time-clock module, or a 60KHz time signal receiver module, or an Ethernet connection so that you can access an NTP server. Alternatively, instead of using fixed times, why not add a light sensor to your project? Then you can turn the washer on at dawn and and then at (say) 5 hour intervals until dark, and the system doesn't need to know the time.
To turn on the system whenever you want, why not just add a push button?
I'm looking at your provided link right now.
I can't press the button, because the camera(s) are off-site.
They're all spread out geographically.
So my idea is to do it remotely.
I also changed the idea of having the cycle start automatically, because there are days when the camera doesn't need the wash.
And I would be "wasting" that water inside the reservoir.
So that's why I think it would be better to remotely connect to the Arduino, and turn on the wash system cycle when desired.
Which Arduino board would you suggest I buy?
I see that there are like... 24 in SparkFun.com
Any thoughts?
I suggest this http://arduino.cc/en/Main/ArduinoBoardEthernet then. You will also need a 2-port Ethernet switch that supports POE both for the switch and for the attached devices (if such a thing exists), unless you double up the Ethernet cable.
Yes, that is an Arduino Ethernet. Btw there is also an Ethernet Shield which is for adding Ethernet to a regular Arduino - perhaps that is why you were confused.
I just bought my first Arduino Uno board.
(no shields yet. Also, it's the one with the Atmel chip in the "cradle" (name??). Not the new one that has the Atmel chip soldered on (SMB?))
Anyway, I got a couple of other items, yet I'm at a loss as to how to connect all this.
I think I'm missing various components before making this work.
Using the mosfet as shjown in that diagram, you should connect a 100 or 220 ohm resistor between the Arduino output pin and the mosfet gate. If you substitute a TIP120 for the mosfet then you MUST connect a resistor between the output pin and the TIP120 base terminal. 1K will do. The disadvantage of using a TIP120 is that it has a voltage drop of around 2 volts, which means it will get hot and need a heatsink unless the motor current is small.
Unfortunately, the IRF510 is not a logic level mosfet, it's designed to be driven from 10V on the gate instead of the 5V that the Arduino provides. With 5V on the gate, I wouldn't ask it to pass more than 500mA. Look for a logic-level mosfet instead.
Unfortunately, Radio Shack appears not to stock any logic level mosfets in its stores. You're not alone, here in the UK, Maplin is equally useless.