Page 1 of 1

using ato flag to turn off port

Posted: Sat Apr 21, 2018 5:46 am
by bkc6868
Is there a way to turn off port 5(skimmer) if the ato times out? last night for some reason my skimmer started overflowing and filling my skimmate bottle. This caused my ato to time out and skimmer kept draining water into skimmate bottle almost over filling it it. i want to shutoff skimmer if ato trips the time set and sends a flag.

Re: using ato flag to turn off port

Posted: Sun Apr 22, 2018 5:20 pm
by rimai
Try this:

Code: Select all

if (ReefAngel.isATOTimeout()) ReefAngel.Relay.Off(Port5);

Re: using ato flag to turn off port

Posted: Sun Apr 22, 2018 5:41 pm
by bkc6868
Thanks

Re: using ato flag to turn off port

Posted: Tue Apr 24, 2018 5:50 pm
by bkc6868
error compiling
Compiling code for RA_STAR board

Number of Relay Expansion Modules: 1
Relay Expansion Module
Dimming Signal
Reef Angel Star
firmware.ino: In function 'void loop()':
firmware.ino:105:19: error: 'class ReefAngelClass' has no member named 'isATOTimeout'
if (ReefAngel.isATOTimeout()) ReefAngel.Relay.Off(Port5);
^
exit status 1

Progress: 41.38%
Your code has some errors and couldn't be compiled.
Please fix the errors above and try again.

Re: using ato flag to turn off port

Posted: Tue Apr 24, 2018 6:38 pm
by binder
One thing to note, since you are using the Star, you cannot use Port5 to reference the port on the main relay box. The Star has no default/master relay box and therefore all ports are actually on the first relay box. So all Port5 should be Box1_Port5.

As for your error, there is an error with the code. It should read like this:

Code: Select all

if(ReefAngel.isATOTimeOut()) ReefAngel.Relay.Off(Box1_Port5);
The letter O in timeout should be capitalized according to the libraries.

Re: using ato flag to turn off port

Posted: Tue Apr 24, 2018 7:05 pm
by bkc6868
Thank you Curt

Re: using ato flag to turn off port

Posted: Wed Apr 25, 2018 3:35 am
by binder
bkc6868 wrote:Thank you Curt
welcome

Sent from my XT1585 using Tapatalk