soulgriever / FanGPIO

Temperature driven PWM fan controller for raspberry pi over GPIO, designed with retropie in mind
GNU General Public License v3.0
5 stars 6 forks source link

FanGPIO

A small script to turn your fan on and off via GPIO and PWM

How does it work?

FanGPIO starts when your pi boots up and runs in the background to adjust the pi's fan speed to your needs

Will this hurt my RetroPie performance?

FanGPIO is a super small script written in C to avoid any additional stress on your pi. I have not completed thorough tests yet however so far the max CPU usage I have noticed is 0.9% across one of the 4 CPU threads.

Instructions:

Do not use this directly connected to a fan, you will likely blow your gpio pin! (read below)

How to install the script:

To install this simple script on your raspberry pi copy and paste the following

git clone https://github.com/soulgriever/FanGPIO
cd FanGPIO
sudo sh install.sh

Reboot your pi and the script is installed, yup its that simple!

How to wire up the Pi:

I recommend using either a Logic Level Power Mosfet such as the one Here, or using a transistor such as a TIP31C.