Page 1 of 1

I/O set to turn off relay

Posted: Sun Aug 10, 2014 5:22 am
by poolman
Hi

I have searched the forum but cannot find a solution.
I think what I want to do is quite simple, just dont know how to do it. I have numerous tanks, these all have float switches, when any one of them over fulls it sets off a relay which in turn turns off the main return pump. This relay has now burnt out and I want to use my Reef Angel to do this.

I am only using my reef angel plus for wifi, relay ext and ph. so should have capability. I dont use it for ATO.
How do I program so that when one of the float switches close a circuit it switches off one of the port on the relay box?

Thanks

Bryan

Re: I/O set to turn off relay

Posted: Sun Aug 10, 2014 5:52 am
by cosmith71
This should do it. Put it in loop().

Code: Select all

if (ReefAngel.LowATO.IsActive()) ReefAngel.Relay.On(Port1);
  else ReefAngel.Relay.Off(Port1);
This is for the low port. I think if you're using the high port, you'll need to switch the On and Off.

Replace Port1 with whatever relay you want to use.

--Colin