Sprinkler Controller

This must be one of the most intelligent sprinkler controllers in the world! It not only works on the correct days and times, but it even checks on the web to determine how much rain has fallen before watering and keeps in touch with you via email.

Click here to check out other projects.

Click to search the Acacia site
Click to search using Google

Computerised Sprinkler Controller

Is your town on water restrictions? If so, and you like to dabble in Linux and electronics, this project might be for you. In Canberra, water levels in the dams are very low due to lack of rainfall for a number of years. This project will help your region minimise water but still keep that expensive garden alive through the use of a smart watering system. Automatic sprinkler systems can be used only for certain days at certain times with weeper hoses or drip irrigation systems. Under level 2 water restrictions, you may water for up to 2hrs on either odd or even days of the month between 19:00 and 04:00. There has even been a bonus day at the end of the month. I'd like to see any other sprinkler controller that can handle those conditions!


This page describes 2 hardware designs. The first uses an old PC and the parallel port I/O card shown below. Further down you will find another version of sprinkler controller that uses a ethernet based I/O card that can be placed anywhere on your LAN.

You will need the following hardware:

Mount your Linux system somewhere close to power for the PC, the plug-pack and the sprinkler cables. You will not need a screen if you have a network connection from another PC. Plug in the IO card, power it up and then boot the Linux box. Watch the LEDs to see what happens to the IO card during boot. Test the card by running the driver using:

./kv -t

You should see the relays cycle through every binary combination.


The following dot points describe the sprinkler controller features.

Note that I had to use a C driver application to control the IO board as I couldn't get Perl to directly talk to the parallel port. The code is provided below.

After you compile the driver and hook up the IO board, type kv to see the options. There is a test mode that cycles all of the relays. The extract below shows the result of running kv with no parameters.

+ Display Example...

One thing to watch with this project is the operation of the relays during a system reboot. My board actually turns all relays on for a couple of seconds so you should test this to ensure you don't have any problems before putting the system into production. This could be embarrassing if the relays are controlling your garage doors instead of the sprinklers.


Please let me know if you go ahead and make this or have suggestions on improvements.

You may like to consider using the Linux on a floppy or one of the following embedded systems and I/O cards for this project.

You may also like to check out the PicoServ embedded web server for this project.

If you want to add more smarts to ensure optimal watering based on evaporation rates, have a look http://limnosun.limnology.wisc.edu/evap_protocol.html

The formula on this site for evaporation rate is:
E = (Rnet ? S + Q + Ao) / [(1 + B + (Cp/L)*(Ts ? TA)], (1)


Shower Filters Shower filters and designer shower head water filter fixtures.


Click on the links below to download software to make this work.

# Make file to compile driver application
  gcc -W -O -o kv kv.c

# cron settings
# Turn on/off sprinklers (it manages odd/even days, rainfall etc)
0 19 * * * /io/check_rain.pl start 2>&1 >/dev/null
0 21 * * * /io/check_rain.pl stop  2>&1 >/dev/null

The Elexol Ether I/O 24 Hardware Solution

You may also like to try putting the hardware shown above together. Just purchase the parts from Electronic Solutions and download the code from the link below. This company offers very quick response, great service and support. Highly recommended!

Follow these steps...

Links to Other Suppliers

iPod Repair Let RestoreDoctors heal your iPod with fast, secure, reliable service and free shipping and free diagnosis.

Click here to check out the list of other projects.

You may also like to click here to check out the list of Artificial Intelligence projects.

If you would like to get any further information on this or any of the other projects shown on this web site, please send an email to Acacia Lateral Technologies. or place a comment in our Guest Book

You might also like to submit your idea to our Free Ideas page for the benefit of other like-minded soles.