Hi,
coming back to the 4-wire fan with PWM:
I just connected the blue wire (pwm control wire) to GPIO18 (pin 12), set in the cooler.py script: GPIO.PWM(12, 25000) 12 for the pin and frequency to 25kHz and here we go: works like a charm -so far.
Thanks for your help.
Cheers
Roland
Display More
You can set GPIO and Frequence variables here
# Configuration
FAN_PIN = 18 # BCM pin used to drive transistor's base
WAIT_TIME = 10 # [s] Time to wait between each refresh
FAN_MIN = 30 # [%] Fan minimum speed.
PWM_FREQ = 25000 # [Hz] 25kHz for Noctua PWM control
and leave this as is
fan = GPIO.PWM(FAN_PIN, PWM_FREQ)
You can also play with the temp and speed you need...
# Configurable temperature and fan speed steps
tempSteps = [30, 40, 45, 50, 55, 60, 65, 70, 75] # [°C]
speedSteps = [0, 30, 35, 40, 60, 70, 80, 90, 100] # [%]
this is what I m using
My fan only starts at 30% so anything lower then that it won't start
This is a small tool to change speed from SSH for testing before you set lowest speed in script..It lets you input different speed from SSH till your fan starts..
calibrate.py.txt