GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vc1492a/Raspberry-Pi-Fan-Control: Simple Python and shell scripts to run a fan on a Raspberry Pi using CPU temperature.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
wiring_diagrams
wiring_diagrams
 
 
.gitignore
.gitignore
 
 
launcher.sh
launcher.sh
 
 
license.txt
license.txt
 
 
readme.md
readme.md
 
 
run-fan.py
run-fan.py
 
 

Repository files navigation

Raspberry Pi Fan Control

Simple Python and shell scripts to run a fan based on CPU temperature for your Raspberry Pi.

Language License

The Setup

This setup uses GPIO pin 18 with an NPN Transistor (S8050). Wiring diagrams for this setup are provided in the wiring_diagrams directory, with an image of the most basic setup below.

Basic Wiring Diagram

Raspberry Pi Fan Wiring Diagram

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.

Helpful Links

The code included in this repository is mainly the work of others, with some modification and adaptations made to the code to document the approach.

  • How to control a fan to cool the CPU of your RaspBerryPi
  • Execute Script on Start Up

Thanks to @vollman-ariel for providing a wiring diagram which includes an additional resistor.

About

Simple Python and shell scripts to run a fan on a Raspberry Pi using CPU temperature.

Resources

Readme
MIT license
Activity

Stars

46 stars

Watchers

4 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.