Thoughts on reprogramming exhaust fans

Do you have a question on how to do something.
Ask in here.
Post Reply
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Thoughts on reprogramming exhaust fans

Post 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?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Thoughts on reprogramming exhaust fans

Post by rimai »

You need to leave a gap between on and off.
Let's say, on when >=800 and off when <795
Roberto.
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Thoughts on reprogramming exhaust fans

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