I am looking for a way to control a PWM fan depending on a measured temperature.
Fan is a Noctua NF A12 PWM which is connected via a PCA9685 with the Raspberry. Temperaturesensor is a DS18S20.
So I know that there are PID nodes but unfortunately I do not really understand this.
The fan cools a housing and should keep the target temperature in it. I know roughly how I could do this with an if / then circuit but the fan will probably not survive long. The fan must find the right rpm to hold the temperature.
Can somebody help me with that?