Python script for Raspberry Pi to automatically control a PWM Fan
I bought these: https://amzn.eu/d/7JYcTCE
-
Connect the Fans PWM cable to Pin 18
-
Open the terminal and type
sudo crontab -e
-
It will ask you what editor you want to use. Just press 1 to use Nano
-
add this lime at the bottom ("path" is the path to the file):
@reboot python3 path/autoFanControl.py
- DONE!