
由我国 CoolMaker Lab 设计的 ESP32 四通道 PWM 风扇控制器,是一款开源且兼容 Home Assistant 的电路板,可用于管理服务器机架、NAS 系统、网络机柜以及其他 DIY 机箱中的散热。它能够独立控制最多四个 4 针 PWM 风扇,支持基于 PWM 的调速、基于转速计的转速监测,以及单个风扇的电源通断控制。
该控制器支持连接最多四个外部 DS18B20 温度传感器以实现风扇自动调速,同时提供网页界面、HTTP REST API 以及蓝牙代理功能。最新的 v2.0 硬件与固件还可选配 LD2402G 24GHz 毫米波雷达,以实现基于人体存在的自动化控制。
ESP32 四通道 PWM 风扇控制器规格参数:
ESP32 PWM 风扇控制器搭配 120mm 散热风扇与直流电源进行测试
该电路板为每个风扇分别采用独立的 PWM 与转速计信号,在实现独立调速的同时监测实际转速。不同于仅能降低风扇转速的基础款 PWM 控制器,该电路板采用 TPS22810DBVR 负载开关,可在风扇关闭时彻底切断其电源。因此,对于在不需要散热时要求安静运行的系统而言,该电路板非常适用。
该电路板运行 ESPHome 以连接 Home Assistant,因此可以控制风扇的启停、调节风速、监测转速并设置自动化任务。它还内置了网页界面和 HTTP REST API,无需通过 Home Assistant 即可进行控制。其他特性还包括支持蓝牙代理、OTA 固件更新,以及可选配 LD2402G 毫米波雷达以实现基于人体存在的风扇控制。
借助 v2.0 版 DS18B20 固件,该主板在单条 1-Wire 总线上最多可支持四个温度传感器,每个风扇分别对应不同的传感器。风扇转速会根据温度自动调节。默认情况下,当温度为 30°C 或更低时风扇会停止转动,并随着温度升高逐渐加速,直至在 50°C 时达到设定的最大转速。您可以自行修改这些温度阈值,且整个自动控制过程均由 ESP32 在本地运行,无需依赖 Home Assistant。
该仪表板展示了 NAS 温度、散热风扇转速、网络活动以及系统资源监控情况;Home Assistant 界面可用于控制四个 PWM 风扇并配置基于温度的风扇调速功能;ESP32 PWM 风扇控制器在 Home Assistant 中显示了风扇转速(RPM)读数、温度传感器数据以及毫米波雷达的状态。
该项目完全开源,所有相关文档均已发布在 GitHub 上,包括 PCB 设计文件、Gerber 文件、物料清单(BOM)、外壳 STEP 文件以及 ESPHome 固件配置。代码库中还提供了预编译的固件版本、说明文档以及将该控制器与 Home Assistant 集成的操作指南。所有资源均提供中英双语版本。
此前我们介绍过的联网风扇控制器项目并不多,其中一个颇受关注的项目是 ANAVI 烟雾抽排装置,这是一款基于 ESP8266 的设备,能根据空气质量读数自动控制风扇的启停。而 CoolMaker Lab 推出的这款控制器则面向截然不同的应用场景,它能够管理四个独立的散热风扇,并具备转速反馈、独立供电控制以及基于温度的自动化调节功能。
这款 ESP32 PWM 风扇控制器在 Tindie 上的售价为 28 美元(不含运费)。该主板从中国发货,运费起价为 5 美元。我们还关注到了一款功能较为相似的商业解决方案——ARCTIC 风扇控制器,它配备了 10 个独立的 PWM 接口,支持 Windows 和 Linux(内核 7.2 及以上版本)系统,兼容 Libre Hardware Monitor 开源软件,在亚马逊上的售价为 10 美元。该设备依赖主板接口提供的 USB 2.0 供电以及标准电源的 SATA 供电,因此主要面向 PC 和服务器设计。由于缺乏无线连接功能且不支持 Home Assistant,其适用场景不如这款 ESP32 项目广泛。
德巴什·达斯(Debashis Das)是一名技术内容撰稿人兼嵌入式工程师,在行业内拥有五年以上的从业经验。凭借在嵌入式 C 语言、PCB 设计以及 SEO 优化方面的专业知识,他能够将复杂的技术主题与清晰明了的表达方式巧妙结合。
支持 CNX Software!可通过加密货币捐款,在 Patreon 成为赞助者,或在 Amazon 或 AliExpress 上购买商品。我们还会在文章中使用联盟链接,若您点击这些链接并完成购买,我们即可获得佣金。
本文来源:https://www.cnx-software.com/2026/11/13/home-assistant-compatible-esp32-4-channel-pwm-fan-controller-is-designed-for-server-racks-and-nas-systems/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。
Designed by CoolMaker Lab in China, the ESP32 4-channel PWM fan controller is an open-source, Home Assistant-compatible board for managing cooling in server racks, NAS systems, network cabinets, and other DIY enclosures. It can independently control up to four 4-pin PWM fans, supporting PWM-based speed adjustment, tachometer-based RPM monitoring, and individual fan power switching.
The controller supports up to four external DS18B20 temperature sensors for automatic fan speed adjustment, along with a web interface, an HTTP REST API, and Bluetooth proxy functionality. The latest v2.0 hardware and firmware also support optional LD2402G 24GHz mmWave radar for presence-based automation.
ESP32 4-channel PWM fan controller specifications:
ESP32 PWM fan controller tested with a 120mm cooling fan and a DC power supply
The board uses separate PWM and tachometer signals for each fan to adjust speeds independently while monitoring actual RPM. Unlike basic PWM controllers that only reduce fan speed, this board uses TPS22810DBVR load switches to disconnect power to each fan completely when it is turned off. This makes it useful for systems that need quiet operation when cooling is not required.
The board runs ESPHome to connect to Home Assistant, so you can turn fans on or off, adjust their speeds, monitor RPM, and set up automations. It also has a built-in web interface and HTTP REST API for control without Home Assistant. Other features include Bluetooth proxy support, OTA updates, and optional LD2402G mmWave radar support for presence-based fan control.
With the v2.0 DS18B20 firmware, the board supports up to four temperature sensors on a single 1-wire bus, with each fan assigned to a different sensor. Fan speeds adjust automatically based on temperature. By default, fans turn off at 30°C or below and gradually increase speed until reaching the set maximum at 50°C. You can change these limits, and the automatic control runs locally on the ESP32 without Home Assistant.
Dashboard showing NAS temperature, cooling fan speed, network activity, and system resource monitoring Home Assistant interface for controlling four PWM fans and configuring temperature-based fan speed adjustment ESP32 PWM fan controller showing fan RPM readings, temperature sensors, and mmWave radar status in Home Assistant
The project is completely open-source, and all the documentation, including the PCB design files, Gerber files, a bill of materials (BOM), enclosure STEP files, and ESPHome firmware configurations, is available on GitHub . The repository also includes precompiled firmware releases, documentation, and instructions for integrating the controller with Home Assistant. Everything is available in Chinese and English.
We haven’t covered many connected fan controller projects, and one notable project is the ANAVI Fume Extractor , an ESP8266-based device that automatically switches a fan based on air-quality readings. The CoolMaker Lab’s controller targets completely different applications and manages four independent cooling fans with RPM feedback, individual power control, and temperature-based automation.
The ESP32 PWM fan controller is available on Tindie for $28 , excluding shipping. The board ships from China, with shipping starting at $5. We also noticed a somewhat similar commercial solution called the ARCTIC Fan Controller with 10 independent PWM connectors that works on Windows & Linux (Kernel 7.2+), supports Libre Hardware Monitor open-source software, and sells for $10 on Amazon . It relies on USB 2.0 from the motherboard’s header and SATA power from a standard PSU, so it’s mainly designed for PCs and servers, and is not quite as versatile as the ESP32 project since it lacks wireless connectivity and Home Assistant support.
Debashis Das is a technical content writer and embedded engineer with over five years of experience in the industry. With expertise in Embedded C, PCB Design, and SEO optimization, he effectively blends difficult technical topics with clear communication
Support CNX Software! Donate via cryptocurrencies , become a Patron on Patreon, or purchase goods on Amazon or Aliexpress . We also use affiliate links in articles to earn commissions if you make a purchase after clicking on those links.