Page 1 of 1

Single Auto Topup switch - delay

Posted: Thu Oct 30, 2014 5:23 am
by Ridwaan
Hi..

I have my ATO setup with one float switch...

is there code I can use to delay the switching on of the ATO after using feed mode?

Re: Single Auto Topup switch - delay

Posted: Thu Oct 30, 2014 11:11 am
by rimai

Re: Single Auto Topup switch - delay

Posted: Wed Nov 05, 2014 6:00 am
by Ridwaan
What I want must happen is that the ATO must have a delay of 3 minutes after feeding mode.
because I switch off my return pump during feeding mode. When return pump come back on and fills main display tank, the water level in the last chamber in my sump where the return pump is drops below float switch and then stabilizes within a minute and comes back to normal water level.

I found the following code, but only thing is I have a single float switch connect to low port. What can I modify in the code below

Code: Select all

if (ReefAngel.DisplayedMenu==FEEDING_MODE) atoTimer=now();

if (now()-atoTimer < 300) {
  ReefAngel.Relay.Off(Port6);
} else {
  ReefAngel.StandardATO(Port6,180);
}

Re: Single Auto Topup switch - delay

Posted: Wed Nov 05, 2014 6:53 am
by Ridwaan
ok, I thinki found how to code it correctly..
is this code correct for single ATO delay after feeding mode?

Code: Select all

static unsigned long atoTimer;

if (ReefAngel.DisplayedMenu==FEEDING_MODE) atoTimer=now();

if (now()-atoTimer < 300) {
  ReefAngel.Relay.Off(Port6);
} else {
  ReefAngel.SingleATO( true,Port6,60,0 );
}
Also does the 300 in the code below mean 300 seconds?

Code: Select all

if (now()-atoTimer < 300) 

Re: Single Auto Topup switch - delay

Posted: Wed Nov 05, 2014 7:22 am
by cosmith71
I think that will work. Alternately, you could use:

Code: Select all

ReefAngel.SingleATOLow(Port6, 60, 0);
That's a single ATO, using the low switch, with the pump on port 6, with a 60 second timeout, and no limit on how often it actuates.

Yes, the 300 is in seconds. Change it to 60 if you want a minute instead.

Here's a good read on float switch operation:

http://forum.reefangel.com/viewtopic.php?f=7&t=240

HTH,

--Colin

Re: Single Auto Topup switch - delay

Posted: Thu Nov 06, 2014 1:25 am
by Ridwaan
Thanks so much cosmith71..appreciate it