logoalt Hacker News

Built a cheap DIY fan controller because my motherboard never had working PWM

62 pointsby bobsterlobsterlast Monday at 9:30 PM26 commentsview on HN

Comments

bobsterlobsterlast Monday at 9:30 PM

MSI shipped a genuinely good motherboard and forgot to wire one chip, so PWM doesn't work. Instead of tossing the board or living with the noise, I decided to make lemonade.

An Arduino Nano generates the 25kHz PWM signal, and a companion Windows application reads CPU temp and sends the duty cycle over serial. The Arduino firmware is open source (MIT).

show 2 replies
rasztoday at 10:55 AM

>This board has a Fintek F71878AD, a perfectly capable Super IO controller that can read temperatures, control fan PWM, and monitor fan speeds, but MSI just didn't connect it to the board.

is not true. There is a diagram available for this mobo and U32 (F71889AD) is connected over LPC (modern serial ISA version). Its a full Super IO and it cant be _not connected_ as it also provides keyboard/mouse, serial and printer ports.

The problem must lie elsewhere, most likely bad BIOS.

>Here's what I knew:

> Windows can read CPU temperature directly from the CPU's internal thermal diode, completely bypassing the useless Super IO chip.

why not read temperature directly from Fintek using HwInfo?

https://www.hwinfo.com/forum/threads/faulty-sensor-readings-... and yes it also works on 970 https://forum-en.msi.com/index.php?threads/msi-970-cpu-temps...

not to mention MSI Command Center can read those sensors AND set FAN speeds/curves, and most likely also SpeedFan.

> asked LLMs

LLM failed this person :(

show 2 replies
venzaspatoday at 10:01 AM

Ironic, the day after the launch of Artemis II that people are using microcontrollers far more powerful than the original Apollo 11 navigation computer to control a single fan in their PCs now.

show 1 reply
rurbantoday at 9:24 AM

I've built 4 different fan controllers for my companies' embedded board so far.

We work in very hot greenhouses, so fans (and peltiers) are essential. And proper thermal sensors. I check 4 different ones. Esp. needed is also a humidity sensor, because we don't want it to cool down below the dew point.

It's PWM, controlled via mraa. mraa_pwm_write()

show 1 reply
Chepko932today at 11:04 AM

Glad you shared this. I ran into something similar when I tried using a Pico W as a USB HID device, hardware was up to the task, but the firmware just wouldn’t let me get where I wanted..

Using Arduino and serial is a smart way to go here. Still, it’s worth remembering: the Pico W has built-in WiFi, so you don’t have to lean on serial if you don’t want to. You could have your temp-reading app send control signals over HTTP instead. No need to tie up the USB port, and the connection isn’t killed if someone yanks the cable.

And yes, big agreement on the watchdog or failsafe. Any fan controller that doesn’t ramp up to 100% if it loses connection is just waiting for trouble. Fire risk is real.

realaccfromPLtoday at 8:40 AM

This looks really good! I am trying to do the same thing for cooling 11th gen Intel laptop motherboards with micro RP2050 board but came to the conclusion that I should just do it with ESP32 as mine has some limitations.

Would you mind sharing more technical review of what you created?

show 1 reply