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

Fix formula for automatic fan control and adjust minimum fan speed #59

Merged
merged 6 commits into from
Nov 25, 2023

Conversation

ozbibi
Copy link
Contributor

@ozbibi ozbibi commented Nov 22, 2023

Fixed the formula for the automatic fan control #58.

Adjusted the minimum fan speed to 33 (vs 25 previously), and min temp to 40 degrees c (vs 50 previously), as tests with a Noctua NF-A4x10 5V PWM at 24 degree c ambient, show that this keeps the chip temperature cooler (~42 degrees c) than the previsous minimums (~51 degrees c).

Copy link
Collaborator

@johnny9 johnny9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

The original code does have an error with values at the minimum temp and your code fixes it and appears to do what the original code intended. Have some minor comments. The main thing is to at least fix the comment since that can be very confusing if you have a comment that doesnt match the logic.

If you replace all hard coded values with descriptive local variables you can likely delete the comments above the function as well since it should be self evident at that point what the logic is doing

main/tasks/power_management_task.c Outdated Show resolved Hide resolved
main/tasks/power_management_task.c Outdated Show resolved Hide resolved
main/tasks/power_management_task.c Outdated Show resolved Hide resolved
@benjamin-wilson
Copy link
Collaborator

Please change the min temp back to 50 as it is still very cool for the chip and reduces fan noise.

* reworded comment to be clearer
* added min_fan_speed local variable
* added fan_range local variable and rennamed existing range local variable to temp_range
@benjamin-wilson
Copy link
Collaborator

Great, i'll test it tonight

@ozbibi
Copy link
Contributor Author

ozbibi commented Nov 22, 2023

I have tested this successfully with a Noctua NF-A4x10 5V PWM:

  • keeping reported chip temperature at 44 degrees c with min fan speed
  • reducing reported chip temperature from a starting chip temperature of 56 degrees c down to 44 degrees c , with an increased fan speed to start with, then gradually slowing down until chip temperature below 50 degrees c.

@benjamin-wilson my Bitaxe ultra feels warmer than the reported chip temperature: at 44 degrees c reported, an infrared thermometer shows 55 degree c for the heating surface temp, and 59 degree c at the back of the board under the BM1366.
The Bitaxe appeared unstable at 55+ degrees chip temperatures.

@benjamin-wilson
Copy link
Collaborator

@ozbibi Which version of bitaxe ultra do you have? Sounds like V1? V1 won't work with automatic control as the temperature sensor is not in the correct location.

@ozbibi
Copy link
Contributor Author

ozbibi commented Nov 22, 2023

@benjamin-wilson I indeed have a V1. I'll use manual fan control for it then.

@benjamin-wilson
Copy link
Collaborator

Checked this out tonight. @ozbibi I think 33% starting is a little aggressive, I tested with 20% and it seemed to work well settling the chip temp at 55C. Could you change it to 20? Then I think it's good to go.

@ozbibi
Copy link
Contributor Author

ozbibi commented Nov 25, 2023

@benjamin-wilson I have lowered the min fan speed to 20 as requested.

@benjamin-wilson benjamin-wilson merged commit 7abda99 into skot:master Nov 25, 2023
1 check passed
aaron3481 pushed a commit to aaron3481/ESP-Miner that referenced this pull request Jun 11, 2024
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.

3 participants