Pwm fan control6/19/2023 I use the following code to vary the duty cycle. Good thing is that the fan is running (at full speed) when I connect the power supply. So the PWM signal wire is the only connection between the pie and the fan. In the end my circuit looks like the one from this tutorial: except that I don´t use a 5V sensor but the 5V PWM input of the fan. The only thing left to do is to connect the GPIO pin which I use for the PWM signal to the 4th pin of the fan. Other than that I connected an external 12V dc power supply to the fan (first two pins on the fan connector). So I decided to use a level shifter from 3.3V to 5V ( ) to feed a 5V PWM signal to the fan. I wish to control a 4 pin 12V dc pc fan ( ) with my raspberry pie.Īfter reading several threads I came up with the following:įirst problem is that the PWM signal must be 5V but the GPIOs only give 3.3V.
0 Comments
Leave a Reply. |