Giter Site home page Giter Site logo

rpi-argonone's Introduction

DEPRECATED

Use pwm-fan device tree overlay.

https://github.com/alexander-kurichenko/devicetree-custom/tree/master/rpi4

To make it work, desolder controller pin and use Rpi PWM instead:

wiring

original image source: Argon40Tech/Argon-ONE-i2c-Codes#1

rpi-argonone

Fan and power control for Argon One Raspberry Pi case

Installation:

  • Install i2c-tools package:

    RaspberryPi OS / Debian / Ubuntu: sudo apt install i2c-tools

    Arch: sudo pacman -S i2c-tools

    Fedora: sudo dnf install i2c-tools

     

  • Update /boot/config.txt:

# Enable i2c
dtparam=i2c_arm=on

# Argon One poweroff button (triggered by double-click)   
dtoverlay=gpio-key,gpio=4,active_low=1,gpio_pull=down,keycode=116
       

Note for Ubuntu users: you can find this file in /boot/firmware

 

  • Copy these files to specified location in your system:

    • /usr/local/bin/fanctrl

      Simple script to control fan speed depending on measured CPU temperature and options in /etc/default/fanctrl

    • /etc/default/fanctrl

      Main configuration file

    • /etc/systemd/system/hw-shutdown.service

      Sends poweroff command at shutdown

    • /etc/systemd/system/fanctrl.service

      Starts /usr/local/bin/fanctrl.

  • Enable autostart: systemctl enable fanctrl hw-shutdown


  Manual control:

Usage: fanctrl [-D] [on|off] [0-4]

on/off - starts/stops fan (1st speed)

0/1/2/4 - set fan speed. More values were not implemented because of noisy fan

-D - this option is used to start it by systemd


NOTE: If fan was turned off or set to lower speed manually, it will be automatically started when temperature exceeds configured values

rpi-argonone's People

Contributors

alexander-kurichenko 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.