6 comments

  • Chepko93231 minutes ago
    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..<p>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.<p>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.
  • bobsterlobster2 days ago
    MSI shipped a genuinely good motherboard and forgot to wire one chip, so PWM doesn&#x27;t work. Instead of tossing the board or living with the noise, I decided to make lemonade.<p>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).
    • haktan1 hour ago
      Could you use an audio out port for creating the signal and ditch the Arduino?
      • magicalhippo41 minutes ago
        That might work for the PWM signal, however you&#x27;d still need some electronics as the fan has internal pull-up to 5V and expects it to be pulled low by the PWM signal.<p>But a small circuit with a Schmitt-trigger inverter IC and some resistors and capacitors might do the trick, for example.
    • gzread3 hours ago
      What if Windows crashes? It&#x27;s better to attach a thermal sensor to the heatsink, I think.
      • johndough2 hours ago
        Just send a heartbeat every few milliseconds and set fan speed to 100% if it died. Bonus: You get an audible indicator that the system crashed.
  • rurban2 hours ago
    I&#x27;ve built 4 different fan controllers for my companies&#x27; embedded board so far.<p>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&#x27;t want it to cool down below the dew point.<p>It&#x27;s PWM, controlled via mraa. mraa_pwm_write()
  • venzaspa1 hour ago
    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.
    • dv_dt41 minutes ago
      One could go farther and complain that it&#x27;s a waste of a microcontroller at all to control a fan when an analog circuit for fan speed vs temperature would work fine.
  • realaccfromPL2 hours ago
    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.<p>Would you mind sharing more technical review of what you created?
    • zeroflow2 hours ago
      RP2050 would work, as it also has the necessary built-in peripherals. ESP32 would add wifi and better ESPHome support. I suggest you stay away from the ESP8266, as it needs to do PWM in software and struggles with the 25kHz output frequency.<p>From my experience: ESP32&#x2F;RP2040 work without additional circuitry which works with most fans, but for protection, you want to add level shifters. Not all fans pull up the PWM pin to 3.3V, the spec allows for 5V.<p>Shameless plug, hopefully this is allowed here.<p>I built something like that, that allows fan control via WiFi. First I built it only for myself, but since the spare boards from PCBA quickly sold, I decided to keep it stocked.<p>Short gist: 12V Input, ESP32S2, ESPHome-based. Has 4 PWM-fan outputs, onboard temperature &amp; humidity sensor and Qwiic expansion port.<p>The ESPHome code &amp; schematic is on Github: <a href="https:&#x2F;&#x2F;github.com&#x2F;zeroflow&#x2F;wifi-fancontroller" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zeroflow&#x2F;wifi-fancontroller</a><p>If you want one, it&#x27;s available on Elecrow for $35,99: <a href="https:&#x2F;&#x2F;www.elecrow.com&#x2F;wifi-fancontroller1.html" rel="nofollow">https:&#x2F;&#x2F;www.elecrow.com&#x2F;wifi-fancontroller1.html</a><p>If you want to build it by yourself, the schematic is in the hardware folder. And if you don&#x27;t want to use ESPHome - there is no firmware lock, you find the pin assignment on the product page and can write your own firmware if you so desire.
  • rasz40 minutes ago
    &gt;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&#x27;t connect it to the board.<p>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&#x2F;mouse, serial and printer ports.<p>The problem must lie elsewhere, most likely bad BIOS.<p>&gt;Here&#x27;s what I knew:<p>&gt; Windows can read CPU temperature directly from the CPU&#x27;s internal thermal diode, completely bypassing the useless Super IO chip.<p>why not read temperature directly from Fintek using HwInfo?<p><a href="https:&#x2F;&#x2F;www.hwinfo.com&#x2F;forum&#x2F;threads&#x2F;faulty-sensor-readings-on-msi-990fxa-gd80.361&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.hwinfo.com&#x2F;forum&#x2F;threads&#x2F;faulty-sensor-readings-...</a> and yes it also works on 970 <a href="https:&#x2F;&#x2F;forum-en.msi.com&#x2F;index.php?threads&#x2F;msi-970-cpu-temps-with-hwinfo.254381&#x2F;post-1462006" rel="nofollow">https:&#x2F;&#x2F;forum-en.msi.com&#x2F;index.php?threads&#x2F;msi-970-cpu-temps...</a><p>not to mention MSI Command Center can read those sensors AND set FAN speeds&#x2F;curves, and most likely also SpeedFan.<p>&gt; asked LLMs<p>LLM failed this person :(