News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

LPT port irrigation control

Started by krys, February 23, 2009, 08:35:30 PM

Previous topic - Next topic

krys

Hey guys, I have an idea but would like some input before I really start tearing into it. As the title states I am considering controlling my 8 zone lawn irrigation system via the parallel port on my core. I know that there are some X10/insteon options out there for this same purpose, and I think there is a zwave device that is coming out soon, but I would like to save $$$ whenever possible and I also like neat projects. I know that it is possible to open and close the valves via the parallel port, what I would like is some opinions on how well this could integrate into LMCE. Here is what the system would need to do.
1. Open each valve 1 at a time for a pre-determined amount of time at a set frequency per week. (basic necessity)
2. option to use the dawn event so that the sprinklers would run when the sun rises (a set time in the morning would be acceptable)
3. a floorplan layout would be nice to see what zone is currently on with the ability to manually trigger each zone either on or off
4. An option to skip the next watering event in case there has been recent rain and there is no need to water

Maybe more options, but the main one is obviously the first, the others can come down the road if they are more complicated. So let me know if you think this is crazy or a good idea. Any tips would help because this would be at the far end of the spectrum of what I am capable of doing on my own.
Anything I can come up with I would gladly share so that others can enjoy the same feature. I figure that I should be able to implement this for the cost of a parallel port relay board ($20-30) and alot of time (I have plenty) assuming that it can be done. If it looks like there is any interest I will start a wiki page to document the different areas that need work to bring this together.
Thanks,
-Krys

darrenmason

Hi krys,

I think that it is all pretty doable.

There are a few examples of C++ devices with worker threads which you could model the code from.
The first couple of points should be able to done through the event management stuff in webadmin.
The floorplan might need some work, I think others have presented similar things as light switches to get it to show up.
Point 4 might require some thought and possibly implement a new command that tells a particular zone to ignore events for a period of time.

Interested to see how you get on.

darren

Itsik

If I may add an idea,
How about using a simple relay moisture sensor that could be set with a thresh hold. Maybe something like keeping the irrigation on as long as the moisture precentage is below 30%.
Here's a scenario I've been thinking about: In the summer season, on Sunday, Tuesdat and Thursday, betwin 5:00-6:30 AM, check for the moisture level and if it's below 30% turn irregation on.
Is this something that can be done ?

Itsik

krys

Itsik: Thats a good idea, are we talking about air moisture, or soil moisture? I dont know if I have ever seen a soil moisture sensor....On the software side I think that would be a prettty easy feature to add though.

Itsik

Krys, I think soil moisture would be a good way to go altough I'm not sure there's a sensor for this ...

hari

I'm working on a battery less solar powered soil moist sensor.. but the components are around 160-170 EUR..

best regards,
hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Itsik

I've started checking this more seriously. Hopefully I'll have some solid info about what's availble out there, how efficiant it is and what's the price range, in about a week.

Itsik

krys

I like where this is heading. I am finishing up a few projects but probably next week I will start working on a relay board and some simple commands to get the valves open, closed. I found a pretty decent looking relay board online it has LED's for each relay to tell you when its open or closed, and a LPT port. If I remember right it had 8 relays and was $20.



hari

rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Itsik

http://www.fourier-sys.com/pdfs/sensors/soilmoisture_dt171a.pdf
Check this out guys.
The pricing here is roughly 170$-200$
I'm not sure we could use it but the PDF mentions something about setting a specific reading as zero, so maybe this could be used to set a certain threshold point to use to open and close the relays ...


hermanvh

For soil moisture control I use an older model from the manufacturer Gardena, which works fine.
Currently they supply this one
http://www.twowests.co.uk/TwoWestsSite/pages/product/product.asp?prod=COMS&cookie_test=1

Regards Herman

gollywog

Just a thought. Is there any sort of plugin that allows control of lighting from LPT? If so can't we just mash that to do the same thing for retic? Or is there a generic device that allows switching via LPT.

Could be completely stupid but just some ideas.

G-Wog