I/O set to turn off relay

Basic / Standard Reef Angel hardware
Post Reply
poolman
Posts: 17
Joined: Mon Jan 30, 2012 1:36 am

I/O set to turn off relay

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

Re: I/O set to turn off relay

Post 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
Post Reply