Raspberry Pi Fan Control
Simple Python and shell scripts to run a fan based on CPU temperature for your Raspberry Pi.
This setup uses GPIO pin 18 with an NPN Transistor (S8050).
Running on Boot
Here's how to run this script automatically on boot:
- Modify the shell script to ensure you have the correct path run-fan.py.
- Make the files executable using sudo chmod a+x run-fan.py and sudo chmod a+x launcher.sh.
- Use crontab (or another method) to execute launcher.sh on boot.