Rock 4 SE - Fan control?

Hi,

I have a Rock 4 SE from Radxa and I’d like to control a fan. I want it to turn on when the temperature reaches a certain threshold, for example, between 50°C and 60°C. etc.

I’ve connected the fan to the following pins:

  • PIN#11 PWM0 GPIO4_C2 (Blue)
  • PIN#4 +5.0V(Red)
  • PIN#6 GND (Black)

Is this wiring correct?
Is there any way or script available to control the fan based on temperature?
what overlay is needed on other OS?

Hi, do you find a solution? If not, I have just developed a script to manage the fan speed based on the CPU temperature. Remember to enable the PWM pin in your SO.

You can find the project on GitHub (I’m not able to post the direct link): albertopiva/linux-fan-manager