Howchoo / pi-fan-controller

Raspberry Pi fan controller.
241 stars 105 forks source link

Fan not working #1

Open nakulbende opened 4 years ago

nakulbende commented 4 years ago

Hello, I am using your script to add a fan to my Raspberry pi4. I hooked up the base of my transistor to GPIO17 via a 680 ohm resistor. Collector is connected to ground of fan, and emmitor is connected to the ground in pi.

Both fancontrol.py, fancontrol.sh are in their right place, the process is running, temperatures are above the CPU temps, but fan is not switching on.

How do I trouble shoot? I measured voltages on pins - the V+<>V- is 5V as expected, and GPIO17<>V- is 3.3V. Transistor used was 2n222a. Is there a way to check my transistor, if it is working or not?

nakulbende commented 4 years ago

As a sanity check - my wiring is as follows.

If you think of flat side to be facing towards you. Right pin is connected to ground of FAN Left pin is connected to Ground of PI Middle pin is connected to GPIO17, via a resistor

IMG_20200122_090742

If I hit ps-ef, I do see this in the list:

root 2044 1 0 08:53 pts/0 00:00:00 python3 /usr/local/bin/fancontro