Instructables

Arduino Sprinkler System + Web control

Featured
Picture of Arduino Sprinkler System + Web control
A smart sprinkler system for the rest of us... No soldering involved ! Just pile up a couple of shields on top of an arduino and control your sprinkler system from anywhere.

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.

Enjoy !
 
Remove these adsRemove these ads by Signing Up

Step 2: Put it together

Picture of Put it together
To put everything together, just follow the pictures, it should be fairly self-explanatory...

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 !
kevinmarkmadz2 months ago

How much does that valve costs??

espdp23 months ago
I thought this was for a FIRE sprinkler, and I did a double take! Hahaha.
tintino4 months ago
I think you could've done this without the ethernet shield, by using the serial port header on the router to communicate with the Arduino. Of course you would have had to write code to run on the router under dd_wrt, open_wrt ..etc
building king10 months ago
Seeing that this relay shield only has 4 relays, couldn't you use this 16 relay one?

http://www.amazon.com/gp/product/B0057OC66U/ref=ox_sc_act_title_2?ie=UTF8&psc=1&smid=A10EAPE4CAYC9P
sfkhooper1 year ago
This looks pretty promising for me. Just wondering, would it be possible to extend this circuit to ALSO come on briefly upon a motion sensor being triggered? I'd like this for animal/pest control. I'm somewhat experienced with Arduino programming.
ajoneill1 year ago
You may have uploaded etherShield_1.1.zip but it doesn't fix the problem!
nicoo (author)  ajoneill1 year ago
I have tried and compiled my code and... it compiles.
For the avoidance of doubt I am using the arduino ide 0022.
What ide are you using ?
N.
tavjas1 year ago
I still cant find the _arp code on the zip file is it possible to clip it out from somewhere else?
kini19851 year ago
Hey,

its pretty good idea, so i thought to apply for my lawn, but i am getting error which says that "Timer1 was not declared in the scope".....just for your reference, i already include the TimerOne.h file in my library.
nicoo (author)  kini19851 year ago

Make sure your TimerOne.h file contains:
extern TimerOne Timer1;

and that your TimerOne.cpp file contains:
TimerOne Timer1;

If they don't, use the version of TimerOne.zip I have added to this instructable (extract into hardware\libraries)

Good luck !

N.
kini1985 nicoo1 year ago
Hey thanks for replying so fast, however i used your eterShild library for my eternet shield, it is still give me below errors, what should i do?

Web.cpp: In function 'void loop()':
Web:183: error: 'class EtherShield' has no member named 'ES_make_arp_answer_from_request'
Web:187: error: 'class EtherShield' has no member named 'ES_eth_type_is_ip_and_my_ip'
Web:205: error: 'class EtherShield' has no member named 'ES_make_tcp_ack_from_any'
Web:242: error: 'class EtherShield' has no member named 'ES_make_tcp_ack_from_any'
Web:243: error: 'class EtherShield' has no member named 'ES_make_tcp_ack_with_data
nicoo (author)  kini19851 year ago
Make sure the file hardware/libraries/etherShield/etherShield.h contains:

[...]
class EtherShield
{
public:
[...]
void ES_make_arp_answer_from_request(uint8_t *buf);
uint8_t ES_eth_type_is_ip_and_my_ip(uint8_t *buf,uint16_t len);
etc...
[...]

If it does, then your script is not including it, given the errors you have.

If it doesn't, then replace the whole hardware/libraries/etherShield by the zipped file I attached to this instructable.

N.
fmarky1 year ago
Hi, I have tried to find the ehershield.h library and I think you might be using an older version of the library. I have checktout the latest with SVN from : http://ethershield.googlecode.com/svn/trunk/ Can you please give a link, or just upload the ehershield you have been using? Some of the class members are not there like:
ES_make_arp_answer_from_request
ES_eth_type_is_ip_and_my_ip
ES_make_tcp_ack_from_any
ES_make_tcp_ack_with_data Thanks,
MarKo
nicoo (author)  fmarky1 year ago
I just added the library (etherShield_1.1.zip).

I hope this helps.

Regards,
N.
fmarky nicoo1 year ago
Thanks
bpike11 year ago
Nice job, I'm curious has the momentary button method changed in any way?

I found I had to disconnect mine because I ran it in cat5 to the solenoids which caused false triggers with brown outs all the time.

Thanks
nicoo (author)  bpike11 year ago
Hmm, if you are having problems like this, it is probably because your cat5 acts as a big antenna. Instead of using the internal pull up, you could consider using a resistor at the end of your cat5, so that no wire is open-ended.

Use a twisted pair for the permanent connection (Vcc and A0 if you are using my code) and connect it to a resistor (pull-up) at the far end of your cable.

Pressing the button will connect A0 to ground (when this happens, the resistor is between ground and vcc, right?).

It turns out that the only difference (not on purpose though) between version 1 and version 2 of my system is this very point: I use the pull-down resistor of the momentary button's shield instead of the arduino's internal one.

I hope this helps,

Regards,

N.
epierce1 year ago
What is the voltage of your solenoid valves? 24?
nicoo (author)  epierce1 year ago
yep, 24v AC (from Gardena)
cool! what are you using each of the three zones for? can you automate each of them separately?
nicoo (author)  amandaghassaei1 year ago
Thanks.

The 3 zones is because I don't have enough pressure at the tap to water the entire garden at once. So I turn on one zone at a time.

I automate watering with a script in the crontab of my linux box (detailed in my other 'ible):

# m h dom mon dow command
01 19 * * 0-6 /bin/bash sprinkler.sh -on 1
21 19 * * 0-6 /bin/bash sprinkler.sh -on 2
41 19 * * 0-6 /bin/bash sprinkler.sh -on 3
51 19 * * 0-6 /bin/bash sprinkler.sh # everything off

Regards,
N.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!