Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fan: Replace heatup/cooldown logic with up/down curves #500

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Sep 3, 2024

Replace calculating the duty on every update with tracking the level in the fan tables to use. This allows knowing whether the system is currently heating up or cooling down.

Replace the heatup and cooldown tables with an expanded fan table that defines separate up/down curves. The separate cooldown curve allows running the fans a few degrees below the initial turn-on point so that they do not constantly turn on and off at the threshold.

Replace calculating the duty on every update with tracking the level
in the fan tables to use. This allows knowing whether the system is
currently heating up or cooling down.

Replace the heatup and cooldown tables with an expanded fan table that
defines separate up/down curves. The separate cooldown curve allows
running the fans a few degrees below the initial turn-on point so that
they do not constantly turn on and off at the threshold.

Signed-off-by: Tim Crawford <[email protected]>
Mitigate some fan noise by using a moving average instead of
instantaneous points for thermal logic.

Current logic is set to update every 250ms, so use 4 points to average
over 1s.

Signed-off-by: Tim Crawford <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant