Giter Site home page Giter Site logo

fanctl's Introduction

fanctl

树莓派温控风扇启停,43 度启动,35 度停止。

硬件

材料

  • 风扇 x1
  • TO-92 封装 S8550 三极管 x1
  • 杜邦线 x2

组装

  • 三极管平面朝上,从左往右依次为 E B C。
  • 风扇负(黑)接 E 极。
  • C 极连接树莓派 GND。
  • B 极连接树莓派 GPIO22。
  • 风扇正(红)连接树莓派 5V。

依赖

需要 wiringPi,raspbian 可使用以下命令安装。
sudo apt-get install wiringpi

编译安装

make && sudo make install

使用

执行 sudo /usr/bin/fanctl 守护进程。强制风扇运行 sudo killall -SIGUSR1 fanctl,取消强制状态 sudo killall -SIGUSR2 fanctl

注意

如果三极管类型和接法有所不同,程序中的高低电平可能需要对调。

fanctl's People

Contributors

mujjus 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.