Coder Social home page Coder Social logo

gajdipajti / fan-control Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17.89 MB

A project for controlling 2, 3, and 4 wire DC fans using Arduino or a Raspberry Pi. It also integrates into munin monitoring. Funded by the Free Software Foundation Hungary. The code is under GPLv3. Schematics, drawings, and the documentation is under CC BY-SA-4.0. If you have an idea about how to improve the project, jus file an issue.

License: GNU General Public License v3.0

C++ 87.08% Python 10.49% MATLAB 2.43%
arduino ds18b20 lcd lm35 pwm pwm-fan raspberrypi fsf openhardware

fan-control's Introduction

fan-control

A project for controlling 2, 3, and 4 wire DC fans using an Arduino Nano or a Raspberry Pi. It also integrates into munin monitoring. Funded by the Free Software Foundation Hungary. The code is under GPLv3. Schematics, drawings, circuit diagrams, and the documentation is under CC BY-SA-4.0. If you have an idea about how to improve the project, just file an issue and contribute.

Pages

Wiki

In hungarian and in english: wiki

Fan Control Nano - Schematic

Note: There are multiple solutions displayed here, only implement the needed ones.

image How to start placing the components image

Fan Control Nano - Code

Serial communication

  • 115200 bps
  • Main Functions:
    • pwm? - GET all PWM outputs
    • pwm[A-F]? - GET PWM output
    • pwm[A-F]p - SET PWM output to pilot mode
    • pwm[A-F][0-255] - SET PWM output manually
    • rpm[C,D]? - GET RPM output from 4-wire fans
    • t? - GET measured temperature
    • t[A,D,L,N]? - GET measured temperature from selected source
    • ts? - GET temperature source (example Dallas 1-wire)
    • tsa? - GET all available temperature sources
  • Calibration Functions:
    • Ch[L,H,C][A-F]? - GET LOW HIGH temperature for a channel
    • Ch[L,H,C][A-F][0-100] - SET LOW HIGH temperature for a channel
    • p[L,H][A-F]? - GET LOW HIGH PWM speed for a channel
    • p[L,H][A-F][0-255] - SET LOW HIGH PWM for a channel
  • Misc Func:
    • hrs? - get board uptime [%d:%H:%M:%S]
    • ver? - HW board version number
    • cbn? - CODE build version number
    • ? - Ping, Are You There? + Flash a LED

Fan Control RPi - Schematic

Note: There are multiple solutions displayed here, only implement the needed ones.

Note: Under testing.

image

Planned updates

  • External ADC experiments
  • Other board support (RP2040, Attiny85, ...)
  • Without machine spirit (no microcontroller)

References

Free Software used in this project

Note: I only mention software that can be downloaded and installed.

fan-control's People

Contributors

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