This program controls the external fan for Raspberry Pi. It uses temperature sensor to change the output value on a selected GPIO pin.
- Install python3
sudo apt-get install python3
- Copy 'fan_controller.py' file to a RaspberryPi's SDCard
- Add the application to the '/etc/rc.local' for auto-launch on startup
For example:
python /home/pi/fan_controller.py &
This line should be inserted before 'exit 0' line.
- Original code and fan wiring guide - https://hackernoon.com/how-to-control-a-fan-to-cool-the-cpu-of-your-raspberrypi-3313b6e7f92c