Float switch as a fail safe for the waterlevel expansion
Posted: Mon Mar 02, 2015 11:00 pm
Hi guys, I have the following code for my waterlevel expansion:
// If waterlevel is below 94%, Freshwater ATO on until 99% or greater
if (ReefAngel.WaterLevel.GetLevel()<=94) ReefAngel.Relay.On(Port5);
if (ReefAngel.WaterLevel.GetLevel()>=99) ReefAngel.Relay.Off(Port5);
Now, I noticed that sometimes the reading is lower than it supposed to be (leak somewhere).
I would use my float switch (high ato ) as a failsafe, however I would like to keep the wires on the top (out of the water).
Is there a line of code that when the high auto is deactivated (float touching the wire end) as a result of Freshwater pump kept running, port 5 will be switched off. And where do I put the code? Before or after the code, mentioned above? I don't want it to be in conflict with the above code.
Hope you guys can help me out.
Leslie
// If waterlevel is below 94%, Freshwater ATO on until 99% or greater
if (ReefAngel.WaterLevel.GetLevel()<=94) ReefAngel.Relay.On(Port5);
if (ReefAngel.WaterLevel.GetLevel()>=99) ReefAngel.Relay.Off(Port5);
Now, I noticed that sometimes the reading is lower than it supposed to be (leak somewhere).
I would use my float switch (high ato ) as a failsafe, however I would like to keep the wires on the top (out of the water).
Is there a line of code that when the high auto is deactivated (float touching the wire end) as a result of Freshwater pump kept running, port 5 will be switched off. And where do I put the code? Before or after the code, mentioned above? I don't want it to be in conflict with the above code.
Hope you guys can help me out.
Leslie