Giter Club home page Giter Club logo

gpio-tempfan's Introduction

Simple GPIO Temperature Fan Service

A simple temperature-controlled fan service for linux devices with gpio, like single board computers. Turns fan on when temperature is higher than thresold, off otherwise.
一个简易的温控风扇服务,用于单板机等有GPIO的linux设备。当温度高于阈值时打开风扇,反之关闭。

Modify parameters in the scripts and service file according to your enviornment before using. The default configuration is for Orangepi Zero with PG06 as control pin.
使用前请先根据你的环境修改脚本和服务文件的参数。默认配置是用于Orangepi Zero并使用PG06作为风扇控制引脚。

The tempfan.service can be copied into /etc/systemd/system and run as a systemd service unit:
可以将tempfan.service复制到/etc/systemd/system作为一个systemd服务单元运行:

sudo cp tempfan/tempfan.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable tempfan --now

An example circuit is provided in example_pcb folder. The circuit is quite simple that you can even solder it on a 3*3 universal circuit board.
example_pcb文件夹提供示例电路。该电路非常简单,可以在3*3洞洞板上焊接。

gpio-tempfan's People

Contributors

blue-beaker avatar

Watchers

 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.