A Watering Controller That Can Be Home Networked
A Watering Controller That Can Be Home Networked
A Watering Controller That Can Be Home Networked
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
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.
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
Image Notes 1. the old controller supplied 24VAC - which is a bit much for my new board - So I am temporarily running 12VDC to the board till I can replace the transformer in the unit. Yep - The solenoids run fine on +12V 2. I have to modify the case - for some unknown reason the original manufacturer didn't think of ading a socket hole for an ethernet connector! 3. I only have a couple of zones in use at the moment - but that will change 4. Yep - I have to re-tag the dryer... one day
File Downloads
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Sprinkler-Controller-Schematic-v1.pdf']
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
Image Notes 1. Power Connector 2. Solenoid Common 3. Pump output 4. Output 5,4,3,2 & 1 5. Battery Backup for the clock - 4.5VDC 6. Debugging and programming connector 7. Reset Switch
File Downloads
Sprinkler-Controller-v1-Manual.pdf ((595x842) 800 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Sprinkler-Controller-v1-Manual.pdf']
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
File Downloads
Sprinkler_controller_ACT_Government_Rules.pde (32 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Sprinkler_controller_ACT_Government_Rules.pde']
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
File Downloads
Sprinkler-Controller-v1-Component.pdf ((595x842) 41 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Sprinkler-Controller-v1-Component.pdf']
Sprinkler-Controller-v1-Copper.pdf ((595x842) 86 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Sprinkler-Controller-v1-Copper.pdf']
Sprinkler-Controller-v1-Jumpers.pdf ((595x842) 27 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Sprinkler-Controller-v1-Jumpers.pdf']
Step 9: DC vs AC Solenoids.
There have been many comments on this Instructable regarding DC vs AC solenoids. I am using Rainwater 24V AC Solenoids - and they operate well using 12V DC. Essentially, when operating a solenoid outside it's design specification, you have to understand that your experience may vary, depending on the manufacturer. As one posted indicated, the inductance of the coil is what limits the current flowing through the solenoid to a safe value when driven in an AC circuit. In a DC circuit, there is no inductance, just the resistance of the coil. I would never recommend operating a 24V AC coil at 24V DC, that will certainly overheat the wiring, leading to premature failure. One commenter did mention that using a coil with DC will increase the amount of heat that it had to dissipate - This is correct, as long as you don't reduce the supply voltage. Depending on the DC resistance of the coil, you may find that your specific coils run just fine. My advice, use a 12V battery, and a multimeter measuring current, and see whether (a) the coil is pulled in enough to run, and (b) how much current is flowing when the coil is energized. As long as there is less than about half an amp, then you are likely to have no problems. I am working on a 24V AC version of this design, so that peoples concerns are alleviated - but that won't run using a solar cell as it needs an AC supply to operate.
Related Instructables
A Remotely Programable Relay Controller (Christmas Lights or Home Automation Controller) by drj113
Cheap How to make a touchpad. by Linux powered garden sprinkler Computothought system. by bkimmons
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
Comments
48 comments Add Comment
terys2 says:
Hi with what program i compile the .pde file .Thnx in advance
drj113 says:
The .pde file is an Arduino sketch. It is designed to be loaded with the Arduino IDE.
falk3n says:
Mar 2, 2011. 5:58 AM REPLY 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
drj113 says:
No problems - Which libraries do you need?
CODIY says:
Nov 15, 2010. 6:43 PM REPLY 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.
Wire54321 says:
having alot of problems with the come "Time time;" and do i need to download anything if so where?
Wire54321 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
agis68 says:
Excellent Job, well made and projected....5/5
inventgeek says:
Oct 13, 2010. 7:39 PM REPLY I have a strange problem with my setup. The web examples dont 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?
drj113 says:
Hi,
The standard reason that people have problems wit hthis project is that they don't use a magjack - or that they have a transposition error between the TX and RX lines on the Ethernet side, or that the computer is on a diferent network number range to the project. If the LEDs flash on boot, then the communications between the micro and the Ethernet controller are correct. just check the use of a Magjack, and make sure you are either (1) plugged into a hub, or (2) using a crossover ethernet cable from your computer. Also, double check your network settings - it is important that you are on the same network as the project, as it has no routing capability. Also double check the address you set up in the code. Take care, Doug
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
gentry says:
Sep 27, 2010. 8:08 PM REPLY 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?
drj113 says:
It is an Australian Brand called Servisol. It can be purchased from Jaycar. http://www.jaycar.com.au/productView.asp?ID=NA1002&keywords=lacquer&form=KEYWORD
djairjr says:
Amazing instructables! It is possible do the same with wireless conection?
drj113 says:
That is an awesome idea - I am sure that it could be done, using some of those inexpensive rf data link modules. I am not aware of a way that I could get 802.11 actual wireless networking into the design. With an rf data link module, I suspect that the architecture would change completely - we wouldn't have to implement a web server in the box, because we could simply implement a simple remote control protocol. I don't think I would go to the extent of having wireless solenoid controllers. The current drain when they are operating would destroy batteries very quickly :-)
sdgenxr says:
Sep 20, 2010. 1:21 PM REPLY 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)
acksheep13 says:
Sep 16, 2010. 3:52 AM REPLY 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.
jrawling says:
Sep 19, 2010. 6:37 AM REPLY 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?
cyberdove says:
No, it won't work with 12v.
drj113 says:
Sep 19, 2010. 7:24 PM REPLY Depending on the manufacturer of the solenoid, you may find that it works - Mine are made by Rainbird, and they work fine on 12V DC - you have to try it yourself though. Doug
drj113 says:
Sep 19, 2010. 2:18 PM REPLY I discovered that my solenoids were happy with 12VDC just by trying it out - If they turn on and off with 12VDC, then they are ok.
leadpencil says:
You can get a 9volt dc magnetic latching solenoid for the big three (toro, rain bird, hunter)
databoy says:
Simple answer is NO. AC and DC are different power systems. DC will burn out AC coils.
Gooru says:
Sep 19, 2010. 5:56 PM REPLY 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
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
databoy says:
Sep 19, 2010. 8:53 AM REPLY 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.
drj113 says:
Thats interesting - Thanks for your thoughts.
I never water during the heat of the day - it is really bad for the plants - and the local council only allows watering between 7pm and 10pm in any case. Do you know what is different between an AC and a DC coil? What manufacturing difference is there?
Gooru says:
Sep 19, 2010. 7:37 PM REPLY 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 wont. The only way to tell for sure is to plug it in and try it. Measure the current, monitor the temperature, and if it doesnt catch fire you are good to go.
drj113 says:
Yep! --- There is nothing wrong with giving it a go!
BlueFusion says:
Sep 19, 2010. 7:51 AM REPLY Short answer - yes. Long answer - yes, but they don't like it much. They will work, but you may end up magnetising them from the DC - which means they could get stuck on or off. Basically, it works, but you reduce the lifetime of the solenoid.
manicmonday says:
Sep 19, 2010. 9:22 AM REPLY Anyone have any ideas about building a diy electrically activated on/off water valve? Once you have that you can create as many as you want, and control them in any number of ways. Come to think of it I haven't contacted the plumbing supply to see if they sell anything like that at low price. I have checked at Walmart and they sell them for $30 each as part of a programmable water timer system. I will call the plumbing supply tomorrow and keep you all updated.
drj113 says:
Sep 19, 2010. 2:29 PM REPLY I appreciate the idea of a home made watering valve, but the possibility of a failure occurring in it makes me just be happy to pay the $30. Water is just to precious to loose through a construction failure. Our local Bunnings sells buckets of commercial valves at about $30 each.
rvbcrs says:
Sep 19, 2010. 9:10 AM REPLY Wow drj113 what a good project really nice!! I just hope on thing, do you think you will ever make this same project but then just out of smd components? I would really love that! Sep 19, 2010. 6:12 AM REPLY
jamwaffles says:
Nice PCB! Can I ask what software you use? Eagle is so very nice but the board size is so very limiting! :(
evildeece says:
Sep 17, 2010. 6:38 PM REPLY You're in the ACT? Awesome! We're building a hackerspace and have maker meetings every alternate Tuesday. You're welcome to join - Make Hack Void
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
drj113 says:
Wow - That would be awesome - I will have a look at when I can drop over - Thank you!
diamantmatch says:
hello
i dont understand how you keep power on the RTC chip when it loses power. in the skematic it says that there is a cap between it's backup pin and gnd but it is called capapol and i dont know wich one that is? somewhere in the parts pdf i found that it only charges it's battery when it is told to ? thank you diamantmatch
drj113 says:
I use a set of 3 AAA cells, providing 4.5v to the right controller connection - that is where the supply to the RTC chip directly.
diamantmatch says:
hello again :) can you upload the librarys to? i dont have the lib for ds1302 and etherlib and stuff thank you diamantmatch
diamantmatch says:
wow your'e featured on hackaday! congratulations! thank you for the pcb files it is really usefull!
drj113 says:
Hi,
You are pretty well right - My focus was kind of having built an enabling technology (The Arduino Ethernet Board), there were many things I could do. And my wonderful wife did suggest that instead of working on the awesome arduino music project I have working in the back of my brain, I could finish the job I started a couple of years ago when I said I would replace the sprinkler controller :-P
diamantmatch says:
hello can you upload the schematic files from eagle cad please? it would certeanly help because i wouldnt have to do everything by hand :) thank you diamantmatch
drj113 says:
Hi, I am very sorry, but I don't use Eagle because it is not open.
Eagle is severely restricted in the size of PCB that it can make in the freely accessible version in that it can't be used for projects greater than 4" x 3.2". Given that my Workclock project was 6" x 6" I couldn't use Eagle. So I searched for an open source alternative. I use KiCad, which has no restrictions, and is fully open. I am very happy to provide Kicad schematic and PCB files if you like.
diamantmatch says:
Hey, oh sorry i thought you where using eagle. But if you can provide me with pcb files , that will be great. thank you diamantmatch
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/
drj113 says:
Not a problem at all - Send me your email to [email protected] - and I will respond tomorrow morning. Doug
diamantmatch says:
Sep 15, 2010. 12:36 PM REPLY hello i can not seem to find the ENC38J60 but i have found the ENC28J60 on ebay but it is rather expensive.. (well expensive.. XD 5 dollar but still) is it okay to use a ENC28J60 in my circuit instead of the ENC38J60? what is the difference in them? thank you very much i really adore your projects i truly think they are wonderfully build and designed thank you diamantmatch
drj113 says:
Whoops - it was suposed to say ENC28J60 anyway --- I have fixed the instructable. Doug
http://www.instructables.com/id/A-watering-controller-that-can-be-home-networked/