vurspain.blogg.se

Linux pwm fan control
Linux pwm fan control









If you obstruct the airflow you'll notice that the fan's RPM changes even if the signal stays the same. Hardware doesn't necessarily behave the same device to device, or sometimes over time the device characteristics can change, in addition to the variance caused by environmental factors. You can purchase widely available PC chassis fans that have this feature, and that's what I tested this code with - specifically a Noctua NF-A14.

linux pwm fan control

Mainly, we'll be covering 4 pin fans that have a tachometer. This is to ensure a best effort attempt at achieving the target RPM. The code needed to control for environmental conditions and hardware variance that can influence the response curve of the fan with respect to the PWM duty cycle versus the RPM response.

linux pwm fan control

I needed some code to control a 12 volt fan with a 5 volt PWM input and a 5 volt tachometer output.











Linux pwm fan control