Arduino Sprinkler System + Web Control





Introduction: 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 !

Step 1: Collect Parts

For this instructable you will need:
- 1 x arduino board
- 1 x ethernet shield (e.g. Ethernet Shield V1.0 for Arduino from )
- 1 x 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

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 !

Step 3: Arduino Sketch

The sketch is very close to the one posted in my original instructable (here)

Quick comments:

- The following code turns on the pull-up resistor of the analog input. A good thing to know.

pinMode(analogInPin, INPUT);
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.

Step 4: Voila ?

Everything else is covered in my previous instructable (here).

- connect the valves.
- use the web interface.
- make the system wireless.
- (optional) scripting.




  • Epilog Challenge 9

    Epilog Challenge 9
  • First Time Author Contest 2018

    First Time Author Contest 2018
  • Sew Warm Contest 2018

    Sew Warm Contest 2018

We have a be nice policy.
Please be positive and constructive.



I want to control 40 valves please send details


How could we add to this system a water level sensor, so if use water from a bucket it checks if the level of water is to low and than notifies me trough let say pushbullet.


I have used the barometrically operated micro switches from Washing machines to indicate if a tank of water is full. It does require a minimum of approx ten inches of water column to act, but the switch offers both NO and NC positions to operate. (Normally Open, and Normally Closed. Closed means On.)

sir,in my project of smart sprinkler ,the sprinkler should automatically get on for a set duration(for ex- if i set the timer on for 5-6 am everyday the sprinkler should get on automatically on the assigned days.)So, can it be done using a RTC(real time clock module for arduino.)??It wil keep a good eye on the activities of the user

where is the HTML code's please tell me i could not find the HTML code

Would it be possible to make it so it can control 8 valves?

Did you ever find out if this could be modified to 8? I need a system that can handle 12 zones.

I am very interested in this project could you email me the details to


I’m irinakim and I’m work in the Wiznet.

Thank you for using our product.

I want to upload the previous post together.

Can I post your product on our Web site?

I still cant find the _arp code on the zip file is it possible to clip it out from somewhere else?