LinuxMCE Forums
May 26, 2013, 02:40:25 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1] 2
  Print  
Author Topic: LPT port irrigation control  (Read 2576 times)
krys
Addicted
*
Posts: 583


View Profile
« 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
Logged
darrenmason
Addicted
*
Posts: 529


View Profile
« 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
Logged
Itsik
Guru
****
Posts: 158


View Profile
« 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
Logged
krys
Addicted
*
Posts: 583


View Profile
« 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.
Logged
Itsik
Guru
****
Posts: 158


View Profile
« 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 ...
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« 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
Logged

rock your home - http://www.agocontrol.com home automation
Itsik
Guru
****
Posts: 158


View Profile
« 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
Logged
krys
Addicted
*
Posts: 583


View Profile
« 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.
Logged
Itsik
Guru
****
Posts: 158


View Profile
« Reply #8 on: February 25, 2009, 08:32:10 pm »

link ?

Itsik
Logged
krys
Addicted
*
Posts: 583


View Profile
« Reply #9 on: February 25, 2009, 08:40:27 pm »

here is one
 http://cgi.ebay.com/-8-Relay-Board-for-PC-LPT-printer-parallel-port_W0QQitemZ170305669912QQcmdZViewItemQQimsxZ20090224?IMSfp=TL090224122006r28884

then another that you can get as a kit or assembled
http://www.electronickits.com/kit/complete/elec/ck1601.htm

another, this one doesnt list the voltage though
http://robokitsworld.com/index.php?main_page=product_info&products_id=213
« Last Edit: February 25, 2009, 08:45:56 pm by krys » Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #10 on: February 25, 2009, 09:29:55 pm »

http://www.audon.co.uk/udin.html
Logged

rock your home - http://www.agocontrol.com home automation
Itsik
Guru
****
Posts: 158


View Profile
« 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 ...
Logged
Itsik
Guru
****
Posts: 158


View Profile
« Reply #12 on: February 26, 2009, 06:36:26 am »

Guys, I think I've found something that might do the trick. Check these out...
http://www.agrolan.co.il/UploadProductFiles/watermark.pdf
http://www.agrolan.co.il/UploadProductFiles/watermark_ins.pdf
Logged
hermanvh
Regular Poster
**
Posts: 28


View Profile
« 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
Logged
gollywog
Newbie
*
Posts: 13


View Profile
« 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
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!