Page 1 of 1

Thoughts on reprogramming exhaust fans

Posted: Tue Oct 16, 2012 7:41 pm
by agentgreen
So I currently have this code to turn on and off my exhaust fans in my canopy:

// Turn on Port 3 when the temp of T2 gets above 80.0 degrees
if ( ReefAngel.Params.Temp[T2_PROBE] >= 800 ) ReefAngel.Relay.On(Port3);
// Turn off Port 3 when the temp of T2 gets below 80.0 degrees
if ( ReefAngel.Params.Temp[T2_PROBE] < 800 ) ReefAngel.Relay.Off(Port3);

The issue is, once the temperature gets to around 80.0 degrees, it starts bouncing between 79.9 and 80.0, which causes my fans to flicker on and off for a couple minutes until the temperature stabilizes below 80.0. My fans aren't plugged into port 5 or 6 with the extra dampening, so I can't imagine this is healthy for the controller.

Any thoughts or ideas on how to reprogram this so the fluctuation doesn't happen?

Re: Thoughts on reprogramming exhaust fans

Posted: Tue Oct 16, 2012 8:18 pm
by rimai
You need to leave a gap between on and off.
Let's say, on when >=800 and off when <795

Re: Thoughts on reprogramming exhaust fans

Posted: Wed Oct 17, 2012 4:18 am
by agentgreen
rimai wrote:You need to leave a gap between on and off.
Let's say, on when >=800 and off when <795
Great idea. Thanks!