Replies: 1 comment
-
You need to use GPIO18 for the PWM not GPIO21, then it should work fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
could anyone please help me how I have to adapt the code in order to get the PWM fan control working? I would rather not connect the 5V fan directly to the 5V and ground pin so that the fan does not run at full speed all the time. Instead I used this layout using a diode, transistor and resistor to control the fan speed depending on the temperature (see image and link below). The code is also provided, but given my limited coding capabilities, I can't figure out where and how to implement it in the code.
Thanks so much!
https://www.instructables.com/PWM-Regulated-Fan-Based-on-CPU-Temperature-for-Ras/
Beta Was this translation helpful? Give feedback.
All reactions