PINE64

Full Version: Best quick/easy way to control case fan speed?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I have this case: https://kksb-cases.com/products/kksb-roc...8bfc&_ss=r

It includes a little fan (which is quite noisy, haha), and it works fine just by using the pins on the board.

But it goes at full blast all the time. I was wondering if you guys could help me figure out a way to have a voltage control setup tied to CPU temp?

I remember seeing something for the RPi with Python, but I can't seem to find it.

any help is appreciated.
(09-19-2020, 07:18 PM)idillicah Wrote: [ -> ]Hello!

I have this case: https://kksb-cases.com/products/kksb-roc...8bfc&_ss=r

It includes a little fan (which is quite noisy, haha), and it works fine just by using the pins on the board.

But it goes at full blast all the time. I was wondering if you guys could help me figure out a way to have a voltage control setup tied to CPU temp?

I remember seeing something for the RPi with Python, but I can't seem to find it.

any help is appreciated.

I've not tried these yet because I can't get my fan to respond at all (which GPIO pins did you use?) but they seem well-worth a look.

https://github.com/Matei-Ciobotaru/Tempe...ol-Scripts

https://github.com/Matei-Ciobotaru/Rock64-R64.GPIO
(06-22-2021, 07:00 AM)Mrfixit2001 Wrote: [ -> ]https://github.com/mrfixit2001/Rock64-R64.GPIO

https://github.com/tuxd3v/ats

I use ats to control the case fan in my RockPro64, it works fine. I've also just manually set the fan speed with e.g.
   echo 50 > /sys/devices/platform/pwm-fan/hwmon/hwmon3/pwm1

(You must be root of course)

edit: just realized this thread is about Rock64, not RockPro64...
If you don't want to spend CPU cycles soft-PWMing in userspace, you can use a microcontroller and gpio-fan in the dts to get the same thing done with no userspace daemons or python scripts.