Delaying ATO port

Do you have a question on how to do something.
Ask in here.
Post Reply
Dugong
Posts: 12
Joined: Fri Nov 23, 2012 6:00 am

Delaying ATO port

Post by Dugong »

I'm using AvastMarine ATO kit to detect water level in my sump, currently this is the code:

Code: Select all

ReefAngel.SingleATO( true,Port8,240,0 );
However when the tank restarted after lights off the pressure-sensitive switch seems to change state that turn on the port. So I am wondering how to delay the ATO port after the power turned back on? Thanks.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Delaying ATO port

Post by rimai »

You can use this:

Code: Select all

if (millis()>60000) ReefAngel.SingleATO( true,Port8,240,0 );
It will wait for 60 seconds before the ATO function starts working.
Roberto.
Post Reply