Giter Site home page Giter Site logo

Comments (5)

pymumu avatar pymumu commented on May 29, 2024

When below the required temperature, the fan still spins for a certain amount of time to assist in cooling.
https://github.com/pymumu/fan-control-rock5b/blob/main/src/fan-control.c#L50-L56
The longest time is 180s

from fan-control-rock5b.

StuartIanNaylor avatar StuartIanNaylor commented on May 29, 2024

Prob that and I switched off before 180s :)

Thnx

from fan-control-rock5b.

StuartIanNaylor avatar StuartIanNaylor commented on May 29, 2024

@pymumu There is something a bit weird about the pwm control and not your software.
Or at least there is with the fan I have got.

echo 5000 > /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip1/pwm0/duty_cycle gives nothing (50%)
needs approx echo 5500 > /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip1/pwm0/duty_cycle (55%)

But also echo 7500 > /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip1/pwm0/duty_cycle (75% but over time you can hear the fan speed change)

I have no idea part from wtf as pwm can definitely control a fan at less than 50% mark-space even 10%
Its almost like its linear control but something more is wrong than that as even linear would not wobble the speed as it does.
I can tell from your software where 50% is the 1st minimum which is an odd choice you where likely as easily confused.

from fan-control-rock5b.

pymumu avatar pymumu commented on May 29, 2024

There is a minimum current requirement for fan spin. the pwm value of my fan is 5500, it stops when it is lower than 5500. You can adjust the initial value according to the requirements of your fan.

Picture of my fan:
image

from fan-control-rock5b.

StuartIanNaylor avatar StuartIanNaylor commented on May 29, 2024

Nope I am same as the vcc5v_sys doesn't seem to be able to suplly the current if I run stress-ng I can hear the fan slow down and when ends it speeds back up with no control change.
I just have an aliexpress 5v 0.20a fan and it acts exactly as yours as approx below 5500 it stalls.
But its sort of weird as after some play I understand more now and you are running @ 100Khz which guess is ok but 25Khz for fans is more normal but at 25Khz its even worse and know why you upped it to 100Khz.
I think your software works perfectly but beginning to doubt the hardware implementation that might need a revision for the fan.

from fan-control-rock5b.

Related Issues (6)

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.