Apex code help

pledosophy

Active member
I have a fan programmed to come on if my tank hits a certain temperature, and to run for an hour every night just to get fresh air into my stand.

The problem is that when the fan turns on for temp it only turns on for a couple seconds then off. The revving up and down is kinda annoying (it's a descent size fan).

Can someone help me with the code so that when the fan turns on for temp it stays on for a minimum of 15 minutes?

This is the code I have now.

Fallback ON
Set OFF
If Temp > 79.5 Then ON
If Time 01:00 to 02:00 Then ON
 
I have a fan programmed to come on if my tank hits a certain temperature, and to run for an hour every night just to get fresh air into my stand.

The problem is that when the fan turns on for temp it only turns on for a couple seconds then off. The revving up and down is kinda annoying (it's a descent size fan).

Can someone help me with the code so that when the fan turns on for temp it stays on for a minimum of 15 minutes?

This is the code I have now.

Fallback ON
Set OFF
If Temp > 79.5 Then ON
If Time 01:00 to 02:00 Then ON

Change your code to this:
Fallback OFF
If Temp > 79.5 Then ON
If Temp < 79.0 Then OFF
If Time 01:00 to 02:00 Then ON

The above will turn the fan on when the temp hits 79.5 and shut it off when it hits 78.9. You can adjust the OFF temp as you see fit. Remove the Set OFF. No need for it. Fallback should be OFF. Depending on how much the fan cools the tank, that hour run from 01:00 to 02:00 may drop your tank more than you might like. As such, you may want to shorten that interval if needed.
 
Change your code to this:
Fallback OFF
If Temp > 79.5 Then ON
If Temp < 79.0 Then OFF
If Time 01:00 to 02:00 Then ON

The above will turn the fan on when the temp hits 79.5 and shut it off when it hits 78.9. You can adjust the OFF temp as you see fit. Remove the Set OFF. No need for it. Fallback should be OFF. Depending on how much the fan cools the tank, that hour run from 01:00 to 02:00 may drop your tank more than you might like. As such, you may want to shorten that interval if needed.

Thank you!

I am trying the one hour thing with the fan just because I noticed a tiny bit of mold starting to grow in the stand. I'm hoping some fresh air everyday will help stop that from becoming a problem. If it drops the tank to low, I always have a heater :D

Thanks again for the help.
 
Thank you!

I am trying the one hour thing with the fan just because I noticed a tiny bit of mold starting to grow in the stand. I'm hoping some fresh air everyday will help stop that from becoming a problem. If it drops the tank to low, I always have a heater :D

Thanks again for the help.

Glad to help!
 
Back
Top