This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO temperature controlled PWM fan
#1
Here's a nice write-up of a tinkerboard install in a case with a temperature controlled fan:

Quote:To manage the fan speed, we wrote a simple program which gets the CPU temperature from /sys/class/thermal/thermal_zone1/temp and uses that to set the fan speed by adjusting the PWM output.  According to ASUS the PWM functions were not enabled on the version of Linux we were using but their GPIO C API, available on their support website, included an example for controlling the PWM pin using WiringPi so we tried modifying the example and found that it worked.  The code and schematic for the fan controller can be found on our GitHub account.

With the fan fitted we tried running the CPU at 100% load and found that even with the fan only running at 50% the temperature would not rise above 55°C and with no load the fan would stay off with a CPU temperature of between 35°C and 40°C.

http://www.briandorey.com/post/Building-...nker-Board
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)