Skip to content

Simple script to enable/disable a GPIO-connected fan in response to CPU temperature changes.

Notifications You must be signed in to change notification settings

MyNameIsMikeGreen/pi-fan-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Fan Controller

Overview

Turns on an external fan if CPU temperature exceeds a threshold. Turns fan off if the temperature falls below another threshold.

Polls temperature every few seconds.

Temperature thresholds are configuration using constants.

Usage

Hardware

  • 1 x 2N2222 NPN Transistor
  • 1 x 680Ω Resistor
  • 1 x 0.2A 5V DC Brushless Fan

circuit/pi-fan-controller.png

Software

Configure constants in main.py to set appropriate GPIO pin and temperature thresholds. Then execute:

python3 main.py

About

Simple script to enable/disable a GPIO-connected fan in response to CPU temperature changes.

Topics

Resources

Stars

Watchers

Forks