Single Auto Topup switch - delay

Basic / Standard Reef Angel hardware
Post Reply
Ridwaan
Posts: 32
Joined: Thu Apr 03, 2014 11:37 pm

Single Auto Topup switch - delay

Post 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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Single Auto Topup switch - delay

Post by rimai »

Roberto.
Ridwaan
Posts: 32
Joined: Thu Apr 03, 2014 11:37 pm

Re: Single Auto Topup switch - delay

Post 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);
}
Ridwaan
Posts: 32
Joined: Thu Apr 03, 2014 11:37 pm

Re: Single Auto Topup switch - delay

Post 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) 
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Single Auto Topup switch - delay

Post 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
Ridwaan
Posts: 32
Joined: Thu Apr 03, 2014 11:37 pm

Re: Single Auto Topup switch - delay

Post by Ridwaan »

Thanks so much cosmith71..appreciate it
Post Reply