OpenSprinkler Forums OpenSprinkler Unified Firmware 2 Master to control pumpstation and cityline water supply

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44133

    ylab
    Participant

    First of all congratulations to your Project….

    We like to control two differend water supply..
    Master1 – City water
    Master2 – water from well pumpstation

    we add an 24ac relay to the powersupply of the pump so its starts with the valve.

    We need to control all valves one time with master1 and a other time with master2. So that if the well is empty we can use the city water. To control the water in the well we add a sensor to the rainsensor input line of ospi

    2 questions:
    1. How and where we have to change the software to use all valves, in programs and manual settings, once with one master and later with the second master.

    2. How to change the software to use the rainsensor as switch between masters ( when well dry use city line).

    Thanks in advance.
    My System open sprinkler pi + raspberry pi 3 latest software on all (09.2016)
    Master 1 is set to S1
    Master 2 is set to S8 + ac24 to 220v relay to start pump
    S2-S7 diferent valves.
    S9-16 used for gpio relays
    And 6 radio plugs for lights etc…
    Rain sensor inputs used with Mxtby soil humidity sensor
    on gpio 10 dht22 temp and humidity sensor read with adafruit.py

    #44197

    Ray
    Keymaster

    Currently the firmware allows a station to be associated with only one master (either master 1 or 2 but not both). If you want a station to activate different masters in different programs, here is one possible work-around: remove the definition of masters (i.e. do not us master stations), instead, set the these two stations (let me call them station 1 and 2) as ‘parallel’ (i.e. turn sequential flag off). Then you can schedule station 1 or 2 in a program together with other stations, and set its water time to be at least the total of the other stations. Basically, this is simulating master stations by using parallel stations. A parallel station will turn on together with other stations. So if you schedule station 1 or 2 in a program with other stations, they will turn on together with other stations, which is essentially what a master station does.

    #44199

    951calguy
    Participant

    ylab How do you measure the water level in your well? Do you have a float level switch or something similar? if you do you can use that connected to a relay for the two master valves and at the same time you will be maximizing the well water usage.

    #44201

    ylab
    Participant

    We measure the water level with a simple soil moisture sensor for raspberry pi, so from this point on we think we have to do just programming.

    Our first idea was to install a cronjop on the raspberry to check every x time the soil moisture sensor and use the opensprinkler api with a phyton script to switch the master from station (well o raintank) to station (city water).
    But we like to have a control switch in the mobile app or web app of open sprinkler to choose in which program we like to use the sensor. We have already installed the js web in our own server.
    We think that we can use the rain sensor function (unified firmware file main.cpp line 334 ff) to add inside this function also the check of the well-sensor( if this function is called before and during the programs ? )
    But we are cc beginners so if you can give us a tip how to add the new var binary for the sensor and where it could be best integrated in the script.

    Best Regards
    Tobias

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware 2 Master to control pumpstation and cityline water supply