FranzAT / libreelec_PWM_fan

Cooling Raspberry Pi, which is running LibreELEC, by controlling the fan speed of a 5V fan.
MIT License
1 stars 0 forks source link

Wrong parameter #3

Open thor171 opened 2 years ago

thor171 commented 2 years ago

Hi, just installed your script. There is an error in line 49 in file PWM_fan.py It needs to be GPIO.setmode(GPIO.BCM) in order to utilize GPIO12. If BOARD is used, it tries to use Pin 12 which is not the same and won't work. Also the PWM frequency is pretty low, you should prefer something higher about 20kHz when controlling fans. The rest of the script seems to work fine, well done.