Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: sprinklers_pi – An alternative sprinkler control program #25037

    kenb
    Participant

    @rszimm wrote:

    Ken, if you really want to get into the code, and you’re using the OpenSprinklersPi hardware, I think you only need look at core.cpp line 119 and maybe line 122. I believe that if you change the 16 to a 15 in line 119, you’ll have full 8 zones without the pump. I don’t have the hardware in front of me right now so I can’t try it out, but if you’re daring, give it a shot and let us know the results.

    Keep in mind that if you make hard changes like this to the software, you’ll have to re-make them every time a new release is created. I will put this on the TODO list because a number of people have asked and it seems that the master/pump feature isn’t particularly widely used…

    Understood that any changes I make would need to be redone if I pick up a new version of the code.

    Be great to see this make it into baseline support! I haven’t had a chance to play with this yet, so much other stuff going on so I’ve temporarily flipped back to using the “Interval Program”. Until the code is changed, when I get a chance I’m going to try the stellar suggestion from Eddiek2000.

    in reply to: sprinklers_pi – An alternative sprinkler control program #25026

    kenb
    Participant

    @rszimm wrote:

    Great ideas! Pretty busy today but I’ll dig into this tomorrow.

    Oh, and yes, the first output of the board is reserved for the “pump” or “master valve” output. That’s why there are only 7 zones.

    Just started to play with this package on my setup. I have 8 zones and no need for pump so wondering how difficult it is to modify to support 8 zones with the main board. Seems silly for me to need to buy an expansion. 😀

    I haven’t opened the source up to see how things work.

    EDIT:
    So now I have opened the source up. Looks like the zone control and pump control is in a couple functions: pumpControl(), TurnOnZone() and isZoneOn()

    Looks like if there was a flag for “Use Pump/Master” then these 3 functions could be modified to allow for the first pin to be used as a Zone vs. used as pump. Are there other assumptions in the code in other places that might also need a change?

Viewing 2 posts - 1 through 2 (of 2 total)