I see that I can connect my CPU fan (included with a kit) to pins 4 and 6 (red and black respectively) to cool my CPU. However this is rather loud.

How can I run the fan in a way that is quieter?

How can I run it in a variable-speed way in response to CPU load?

  • 3
    Plenty of answers about this. What is wrong with the existing answers? – joan Jan 13 at 16:12

Pins 4 and 6 are 5V and ground respectively, so you are connecting them directly to power. There is no way to control the speed of the fan using that setup. If you were to use a PWM pin to control a transistor, and connect the Fan to that, you would then be able to write code to control the speed of the fan. Your best option might be to just get a quieter fan that can run at full speed unless you want/need the ability to control its speed. The other option would be to put a resistor in series with the fan as you currently have it connected, this will lower the speed and should reduce the noise, but it wont be software adjustable.

Not the answer you're looking for? Browse other questions tagged or ask your own question.