06-07-2017, 10:40 AM
Here's a nice write-up of a tinkerboard install in a case with a temperature controlled fan:
http://www.briandorey.com/post/Building-...nker-Board
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