Giter VIP home page Giter VIP logo

pifantuner's Introduction

PIFanTuner

RaspberryPI CPU fan tuner with a s8050 triode.

This project enables a daemon which manage a CPU fan for you, it will start after system bootstrapping automatically.It enables CPU fan while its temperature is more than 45°(or defined by you), else the fan will be turned off.

You can also view your cpu temperature within this project or turn on/off a given GPIO port by simple commandline tool.

How to

Requires

Hardware

  • A Fan that works under 5v Voltage
  • A NPN triode(such as s8050)

Software

  • Python 2.6+
  • Raspbian(optional)

Hardware Setup

At first , follow the diagram below and connect your triode and fan together.

Your triode may be like this one:

s8050

The circuit diagram is like this one:

circuit-diagram

About Raspberry Pi PIN number

Use gpio readall to get map like following image.

screenshot

Software Setup

General

Enter console of your Raspberry Pi then start with

git clone https://github.com/winkidney/PIFanTuner.git

Or just download the zip file zipped by Github.

Then enter the project directory:

sudo python setup.py install

Now use following command to run fan-control daemon:

➜  ~ pi-fan-tuner fan simple --debug
DEBUG:root:Temperature 45.084 CPU fan on.

Raspbian

With raspbian or any system works well with systemd, you can use systemd service script to make pi-fan-tuner a daemon which automatically manage your fan.

After installation of the python package, you could run

./install-systemd-file.sh

to setup the systemd script for pi-fan-tuner.

Advanced

Monitoring CPU temperature

pi-fan-tuner cpu-show --loop

For other usage, please run:

pi-fan-tuner --help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.