Git Product home page Git Product logo

picfan's Introduction

picfan

Raspberry Pi PWM fan controller

The Raspberry Pi 4 tends to run rather hot, and active cooling is a more important option. PiCFan provides a PWM Cooling Fan Controller written in C, which is installed as a Systemd service.

This software is very much in alpha state, and is probably riddled with bugs. It also lacks decent documentation. I am however making this repo visible while I work on it.

Quite a bit of work is still required to tidy this little daemon and its documentation up.

In order to operate, picfan expects a fan which has a PWM input attached to GPIO18 (pin 12 on the Raspberry Pi GPIO header). I have tested mainly on a Raspberry Pi 4. The code compiles and installs on a 3b+ although I have not installed a fan yet. The code also seems to work on a Pi Zero (which doesn't need a fan). I intend to supply a circuit diagram for a PWM controller in the future.

##Installation I haven't got around to familiarising myself with Autotools, so I have only written a rudimentary Makefile. This software depends on the bcms2835 library by Mike McCauley. The bcm2835 library can be found at http://www.airspayce.com/mikem/bcm2835/index.html

Installation currently requires the following steps, best performed as root, as it will try to install bcm2835.a in /usr/local/lib:

make
make install

This will install picfan in /usr/local/bin, as well as installing a Systemd service called picfan.service.

picfan's People

Contributors

gmrza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.