Topping Off

Do you have a question on how to do something.
Ask in here.
Post Reply
peitro
Posts: 13
Joined: Sat Oct 22, 2011 5:19 pm

Topping Off

Post by peitro »

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.

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);
        }
Any help is appreciated.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Topping Off

Post by rimai »

Code: Select all

if ((hour() % 2 == 0) && (LowWarn == HIGH)){
This comparison is also checking for even hours. So your ATO would only kick in on even hours.
Roberto.
peitro
Posts: 13
Joined: Sat Oct 22, 2011 5:19 pm

Re: Topping Off

Post by peitro »

I had downloaded the code a few minutes after 12. I thought it would be able to trigger the top off through the entire 12 o-clock hour? Wasn't sure if HIGH was the proper word to use?
peitro
Posts: 13
Joined: Sat Oct 22, 2011 5:19 pm

Re: Topping Off

Post by peitro »

It is working correctly as is. I forgot I had the ATO set so it will wait an hour before it goes on again. That was why it looked like it didn't work when I tested it.

Thanks,
Post Reply