A couple of friends wanted to replicate the sprinkler system presented in this instructable but were scared by the complexity of it.
Well, it truly isn't complicated and it does not even require to solder anything if you pick the right parts... Since I long wanted to make the system more compact, I took the opportunity to make this solder-free arduino instructable. The system is very similar to (exactly the same as?) the previous instructable and just as open (supports scheduling, twitter etc...).
Connecting this arduino to your sprinkler system will allow you to remotely turn your garden watering on and off from any web-enabled device. From there you can make it as fancy or as simple as you wish.
Step 1: Collect Parts
- 1 x arduino board
- 1 x ethernet shield (e.g. Ethernet Shield V1.0 for Arduino from http://www.nuelectronics.com )
- 1 x relay shield (http://seeedstudio.com/wiki/Relay_Shield)
- 1 x 10vDC adaptor (a recycled phone charger)
- 1 x momentary push button
You will not need:
- a soldering iron.
Step 2: Put It Together
The push button is optionnal, it allows you to cycle manually through the sprinklers. Otherwise your only mean of control is the web interface... which is good too !
Step 3: Arduino Sketch
- The following code turns on the pull-up resistor of the analog input. A good thing to know.
digitalWrite(analogInPin, HIGH); // turn on pull-up resistor
- I added a check on the size of the buffer that holds the page, so you have an indication that bad things happened if the buffer was too small.
- The manual button cycles through the valves (and uses A0,A1,A2 for convenience reasons).
- The web interface can turn on/off any combination of valves.
- The valves are turned off automagically after 60 minutes (can be modified, time in seconds, 0 disables the functionality).
- Up to 4 valves can be controlled.
- Startup logic as been added to prevent spurious turn on.