Topping Off
Posted: Sun Dec 04, 2011 10:29 am
I am planning on using the two float switches independently (ATO High and ATO Low). The High switch is mounted in my sump. The low switch is mounted in my water reservoir.
If the High switch is not triggered (water is low in sump) and the Low switch is triggered (water in reservoir) I want the top off pump to kick in.
I define LowWarn as an int and set it to 0 in the top section of my pde. I have only been watching through 1 even hour, but it doesn't seem to be working like I want.
Any help is appreciated.
If the High switch is not triggered (water is low in sump) and the Low switch is triggered (water in reservoir) I want the top off pump to kick in.
I define LowWarn as an int and set it to 0 in the top section of my pde. I have only been watching through 1 even hour, but it doesn't seem to be working like I want.
Code: Select all
// turn on top off pump up to 12 times a day if float switch allows
// do not top off if low float switch is active
LowWarn = digitalRead(lowATOPin);
if ((hour() % 2 == 0) && (LowWarn == HIGH)){
ReefAngel.SingleATOHigh(Port1);
}
else{
ReefAngel.Relay.Off(Port1);
}