Author Topic: LPT port irrigation control  (Read 10490 times)

krys

  • Addicted
  • *
  • Posts: 583
    • View Profile
LPT port irrigation control
« on: February 23, 2009, 08:35:30 pm »
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

  • Addicted
  • *
  • Posts: 529
    • View Profile
Re: LPT port irrigation control
« Reply #1 on: February 23, 2009, 11:45:04 pm »
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

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: LPT port irrigation control
« Reply #2 on: February 24, 2009, 06:28:21 am »
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

  • Addicted
  • *
  • Posts: 583
    • View Profile
Re: LPT port irrigation control
« Reply #3 on: February 24, 2009, 03:18:22 pm »
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

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: LPT port irrigation control
« Reply #4 on: February 24, 2009, 10:37:15 pm »
Krys, I think soil moisture would be a good way to go altough I'm not sure there's a sensor for this ...

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: LPT port irrigation control
« Reply #5 on: February 25, 2009, 12:20:54 am »
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 - http://www.agocontrol.com home automation

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: LPT port irrigation control
« Reply #6 on: February 25, 2009, 02:29:27 pm »
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

  • Addicted
  • *
  • Posts: 583
    • View Profile
Re: LPT port irrigation control
« Reply #7 on: February 25, 2009, 03:43:13 pm »
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.

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: LPT port irrigation control
« Reply #8 on: February 25, 2009, 08:32:10 pm »
link ?

Itsik

krys

  • Addicted
  • *
  • Posts: 583
    • View Profile
« Last Edit: February 25, 2009, 08:45:56 pm by krys »

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: LPT port irrigation control
« Reply #10 on: February 25, 2009, 09:29:55 pm »
rock your home - http://www.agocontrol.com home automation

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: LPT port irrigation control
« Reply #11 on: February 26, 2009, 06:16:50 am »
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 ...

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: LPT port irrigation control
« Reply #12 on: February 26, 2009, 06:36:26 am »

hermanvh

  • Regular Poster
  • **
  • Posts: 28
    • View Profile
Re: LPT port irrigation control
« Reply #13 on: February 26, 2009, 01:32:10 pm »
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

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: LPT port irrigation control
« Reply #14 on: March 04, 2009, 06:47:38 am »
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