adapting values, no more highpitch noise?

This commit is contained in:
2020-05-24 18:41:58 +02:00
parent f47025e575
commit e344809374

View File

@@ -10,15 +10,15 @@ import sys
# Configuration
FAN_PIN = getenv("RPI_FAN_PIN", 21) # BCM pin used to drive transistor's base
WAIT_TIME = getenv("RPI_FAN_WAITTIME", 5) # [s] Time to wait between each refresh
FAN_MIN = getenv("RPI_FAN_MIN", 60) # [%] Fan minimum speed.
PWM_FREQ = getenv("RPI_FAN_PWMFREQ", 50000) # [Hz] Change this value if fan has strange behavior
FAN_MIN = getenv("RPI_FAN_MIN", 70) # [%] Fan minimum speed.
PWM_FREQ = getenv("RPI_FAN_PWMFREQ", 25000) # [Hz] Change this value if fan has strange behavior
# Fan speed will change only of the difference of temperature is higher than hysteresis
hyst = getenv("RPI_FAN_HYST", 5)
debug = bool(getenv("RPI_FAN_DEBUG", "False"))
# Configurable temperature and fan speed steps
tempSteps = [50, 55, 57, 60, 68, 70] # [°C]
speedSteps = [0, 60, 65, 70, 80, 100] # [%]
tempSteps = [55, 57, 60, 65, 70] # [°C]
speedSteps = [0, 70, 80, 90, 100] # [%]
# tempSteps = [40, 45]
# speedSteps = [0, 100]