Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 794 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 794 Bytes

PWM Based RPi Fan

A really nifty script for Optimal Cooling on the Raspberry Pi Based on Real Time Temperature Values From Raspberry Pi 4 (2020).

Just fun This code as service and forget About Overheating

Shopping List :

  1. A 5V DC Raspberry Pi Cooling Fan.
  2. A BC547 Transistor or any General Purpose NPN Transistor. (Rating More than 100mA recommended)
  3. Some jumper Wires

Wiring The Fan :

Schematic

Running as a service

Place the "FanCon.py" file in the home/pi/ directory and then copy the fancon.service file to /etc/systemd/system/. Then Open Terminal And Type in the following Command:

sudo systemctl enable fancon.service