3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

A watering controller that can be home networked

A watering controller that can be home networked
«
  • Board-FullView-small.JPG
  • Old Controller.JPG
  • New controller.JPG

A couple of weeks ago, I published a great little controller module that provided 6 relays able to be controlled from a computer via a network.  After I published it, I got to thinking that the same basic design, with a couple of changes could be pressed into service as a garden watering system controller.  So, I got to work, modified the design, and here you have it...  A sprinkler controller that runs by itself, that can be programmed and monitored from your computer via your home network.

This specific version of my sprinkler controller obeys some simple rules that have had to be implemented where I live.  I live in Australia, or more specifically in an inland region called the A.C.T, where our government have implemented an ODDS and EVENS watering regime.  Under the system if you live in an odd numbered house, you may water on an odd day of the month.  Likewise, if you live in an even numbered house, you may water on an even day of the month.  Everybody may water on the 31st.

This system, along with the mandatory replacement of sprinklers for dripper systems has sucesfully reduced the load on the cities limited inland water supply so that more drastic measures were not required.

Unfortunately, this system was unable to be implemented on my commercial water controller, it wanted to water on a Monday, or a Wednesday, so I was breaking the law, and subjecting myself to a potential fine every other week...  So I had to build my own controller.

This instructable shows how I built it - there certainly is enough detail shown so that you can make it yourself if you are enthusiastic, and willing to give it a go. 

Update:  the full source tree for the Kicad project is located here
 
Remove these adsRemove these ads by Signing Up
 

Step 1How do you drive the solenoids?

How do you drive the solenoids?

The sprinkler controller is built on the base of my Adruino Ethernet controller.  The Arduino ethernet controller provided a basic network connected ATMega328 chip, and had a number of spare I/O lines. 

I extended the PCB design to provide 6 solid state outputs, each able to drive +12v at 300mA, which is enough for a watering solenoid.

Each solenoid output is driven from a NPN transistor, as shown by the attached picture.  To turn on the transistor, the port pin is simply driven high.  I decided to use individual transistors, as they cost $0.03 each, and if they are destroyed, they are individually replaceable easily.

There is also a DS1302 RTC chip on the PCB - it is simply driven directly off 3 pins of the Arduino.

The whole board is driven by a 12VDC plug pack transformer.

It is not sensible to describe the full details of the Ethernet controller here, just check out the Arduino Ethernet controller (which is basically an Arduino and a NuElectronics shield) for info.

You will find the full schematic diagram attached as a PDF.

« Previous StepDownload PDFView All StepsNext Step »
60 comments
1-40 of 60next »
May 25, 2012. 2:04 AMdiy_bloke says:
Just out of general interest for the watering code in ACT. Is there just a code for using sprinklers or a hose on odd or even days or is it even forbidden to go around with a can to give thirstuy plants some relief.

As I am sure everybody is still allowed to take a bath everyday, would it be allowed ot water your garden with bathwater, even if it is not 'your day'?

I know it ha slittle to do with this project, I was just interested
Apr 19, 2012. 10:15 AMdiy_bloke says:
Great idea. I see you did not include the dipswitch that you have in your other arduino ethernet designs.
Apr 19, 2012. 11:33 PMdiy_bloke says:
Thanks Doug, but darn, I found all the parts I need locally, so I have no excuse not to build it anymore :-)
Jul 22, 2011. 11:21 AMrupin.chheda says:
If I wanted to replicate the PCB, is there are kind of scaling I need to apply or just print the Copper layer without scaling?
May 23, 2011. 8:44 PMpgenns24 says:
Hi,
This is a very good Instructable.
I am new at all this and i have been searching for the ENC26J60 library with all the members you are using, and i just can not find one. May be i am just missing a part of the project. Could you please help me to find de Library?
Thanks in Advance!
Mar 21, 2011. 8:34 PMfalk3n says:
hi brother the problem is that in my country that connector Sparkfun not get so I drew a rj45 jack pc the problem is not if you have the same distribution that Sparkfun connector that is why for me is to record I was using a rj45 but the arrangement of transformers and that did not enter the address 192.168.1.2 is there any way to connect directly to a connector enc28j60 RJ45 transformer arrangement? thanks in advance
Mar 21, 2011. 1:14 PMterys2 says:
The same here led blinks and when i put default ip i can`t get in the web browser. The lan is light btw. If anyone can help.Thnx in advance
Mar 20, 2011. 10:20 PMfalk3n says:
brother do you know that installing the sprinkler system and I'm great the problem is that when I try to access the default ip 192.168.1.2 and nothing comes out and measures to see if I had any problems in the lines of the board and nothing in fact to turn the LEDs twinkle rj45 port and the yellow LED blinks then I do not understand clearly what is happening only in so I'm not equal to your system is that it got the magjack Sparkfun rj45 rj45 if not normal, you consider that I appreciate your response is that a hug
Mar 20, 2011. 12:48 PMtermm says:
Awesome project.
I love web controlled thingies.
Mar 8, 2011. 3:21 PMterys2 says:
Hi with what program i compile the .pde file .Thnx in advance
Mar 2, 2011. 5:58 AMfalk3n says:
I hope you are good friends very well I think it's great your project but you could be q up the libraries that the program gives me error e downloaded these libraries appear and persist errors by
Nov 15, 2010. 6:43 PMCODIY says:
Wonderful Instructable Doug! I am in the planning stages for a similar controller for my garden irrigation, though I plan to use zigbee to interface with the computer.

I was wondering on the odd/even day of the week determination whether you had considered using the modulo function. By dividing by 2, the modulo would always be either 1 or zero, so to determine whether to water or not, you would just have to determine if the modulo of the date results in a 1 or zero.
Nov 14, 2010. 8:22 PMWire54321 says:
having alot of problems with the come "Time time;"

and do i need to download anything if so where?
Nov 14, 2010. 6:31 PMWire54321 says:
Please Can you make one with 6-Zones. And possible with a port for bluetooth or can i use programming port?

A++ for pump mode
Oct 23, 2010. 5:08 PMagis68 says:
Excellent Job, well made and projected....5/5
Oct 13, 2010. 7:39 PMinventgeek says:
I have a strange problem with my setup. The web examples don’t work but the link lights come on. and the leds flash appropriately for the loading of the enc chip and if i load the ping sketch it will respond but destination as unavailable. the leds blink with traffic but it seems like part of this are not working right. anyone run into this type of issue?
Oct 6, 2010. 9:17 AMkyle brinkerhoff says:
how much if i asked you to make me one ?
Sep 27, 2010. 8:08 PMgentry says:
Awesome. This is exactly the project I wanted to do for our home irrigation system, since the commercial watering controllers have horrible UIs.

You mention that you protect your boards with a solder-through spray lacquer -- do you have a brand name or a supplier?

Sep 15, 2010. 9:37 AMdjairjr says:
Amazing instructables!
It is possible do the same with wireless conection?
Sep 20, 2010. 1:21 PMsdgenxr says:
Wireless option would be awesome! Then you could easily feed data to a computer that runs 24/7 and create graphs and such from there.

(Patiently waiting for the WiFi version)
Sep 16, 2010. 3:52 AMacksheep13 says:
Actually if you have an open plug near where you are you could use a Wireless Network Bridge WNB. This lets you plug it into the computer for your info then you plug it ino the ethernet port on your system after programmed and it should latch onto any wireless network it is programmed to.
Sep 19, 2010. 6:37 AMjrawling says:
Regular solenoids (in North America) prefer 24 Volts AC. Since I have 12 Volt DC draught (remote property, solar) I would like to use that to run my irrigation solenoids. Can I feed 12VDC to a 24VAC solenoid and make it function?
Sep 19, 2010. 6:40 PMcyberdove says:
No, it won't work with 12v.
Sep 19, 2010. 8:58 AMleadpencil says:
You can get a 9volt dc magnetic latching solenoid for the big three (toro, rain bird, hunter)
Sep 19, 2010. 8:46 AMdataboy says:
Simple answer is NO. AC and DC are different power systems. DC will burn out AC coils.
Sep 19, 2010. 5:56 PMGooru says:
If only the answer were that simple. Yes, AC and DC are different power systems (Alternating Current vs. Direct Current). It's a case of Tesla versus Edison.

In a DC circuit, the "resistance" will limit the flow of current. The same is true in an AC circuit, but there is an additional component called "impedance". This one is a lot tougher to measure because it hinges on the ability of a coil to resist the formation or collapse of a magnetic field. A solenoid or relay coil of a given resistance must operate at a higher AC voltage in order to overcome both components. There is also a difference between "peak" and "RMS" voltage, but that's going a bit too deep for this discussion.

The bottom line is that most AC solenoids or relays will function just fine on DC, but at a reduced voltage. The trick is to keep the current through the windings within spec.
Sep 19, 2010. 8:53 AMdataboy says:
I will add to the above comment. I am a qualified electrician, I live in Australia. The local 24 volt coils will not work on DC; if they do work, the local heat 40 degrees C in the summer will overheat the coils.
Sep 19, 2010. 7:37 PMGooru says:
The difference between an AC and a DC coil can be substantial or none at all. Years ago I toured a Siemens plant where one line was manufacturing relays for a third party vendor (name never mentioned). We watched the automation wind and solder coils, assemble the contacts and armature, then snap on colored caps. The caps were preprinted with the pin outs and specs; yellow caps for DC, green for AC. It was the same component under the cap. The engineer leading the tour explained the design parameters allowed the relay to function under a wide range of voltage, AC or DC.

On the other hand, a design can be very specific. This is especially true where size, efficiency, response time or environment is paramount. In this case a variation of voltage of as little as 10% can fail a component, or at least shorten its life significantly.

Someone mentioned that DC could magnetize an AC relay or solenoid, causing it to stick. Some DC “latching” relays are designed to do just that. The AC version requires a mechanical latch. Magnetic stiction might be a problem for coils with a ferrite core, but ferrite costs more and requires special handling. Most relays and solenoids use laminated steel which resists both residual magnetism and hysteresis currents. The latter contribute to heating when the coil is left energized.

So while running an AC coil on DC might not work, it often does usually at a somewhat lower voltage. You could spend a lot of time researching whether one specific device will function or not, and someone will always tell you it won’t. The only way to tell for sure is to plug it in and try it. Measure the current, monitor the temperature, and if it doesn’t catch fire you are good to go.
1-40 of 60next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
362
Followers
11
Author:drj113
I have a background in digital electronics, and am very interested in computers. I love things that blink, and am in awe of the physics associated with making blue LEDs.