Page 1 of 1

Delaying ATO port

Posted: Sat Jan 26, 2013 9:08 am
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.

Re: Delaying ATO port

Posted: Sat Jan 26, 2013 10:26 pm
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.