Variable fan speed using PWM for Raspberry Pi. Installs as a systemd service.
Note: this uses BCM pin 18 for Hardware PWM by default.
To install vfan as a systemd service use the following steps.
- Install pigpio. Instructions available here.
- (OPTIONAL) Run
vfan.py
withpython3 ./vfan.py
. - (OPTIONAL) Adjust parameters like FAN_GPIO and PWM_FREQ and restart the script as needed. You may wish to set
TEST=True
for this - When you are happy with the settings
sudo ./install.sh
. - That's it, vfan should now be running as a service.
Note: FAN_GPIO must be a GPIO that supports Hardware PWM
To remove vfan use the following steps.
- Run
sudo ./uninstall.sh
. - Manually uninstall unwanted python depenancies. See requirements.txt for what was isntalled. Note some depenancies may be used by other software.
- That's it. vfan should now be completely removed.