ESP32 4-Channel PWM Fan Controller: Smart Cooling for Server Racks & NAS with Home Assistant

Quick Overview & Specifications

AttributeDetails
PublicationVinjo Engineering & Technology
CategoryHardware & IoT
AuthorVinay
Article TypeTechnical Tutorial & Case Study
Published2026-12-04
Last Updated2026-12-04
License / AccessOpen Educational Resource
Core Engineering Highlights:
  1. Verified hardware architecture, schematics, and pinout diagrams.
  2. Comprehensive firmware routines, protocol benchmarks, and build steps.
  3. Production design rules, tolerances, and thermal considerations.
Related Topic Taxonomy:
  • #ESP32
  • #PWM Fan Controller
  • #Home Assistant
  • #IoT
  • #Server Racks
  • #NAS
  • #Open Source Hardware
  • #Cooling
  • #DIY Electronics

ESP32 4-Channel PWM Fan Controller: Smart Cooling for Server Racks & NAS with Home Assistant

Summary: The ESP32 4-channel PWM fan controller from CoolMaker Lab provides an open-source, Home Assistant-compatible solution for advanced cooling management in server racks and NAS systems. It features independent control for up to four 4-pin PWM fans, including RPM monitoring, individual power switching for silent operation, and automatic speed adjustments based on external temperature sensors. With its robust features and open-source nature, it offers a versatile and customizable cooling solution for DIY enthusiasts and system administrators.

Key Takeaways

  • Versatile Cooling Control: Independently manages up to four 4-pin PWM fans with precise speed adjustment (1-100% PWM) and tachometer-based RPM monitoring, ideal for server racks, NAS, and other DIY enclosures.
  • Smart Automation & Integration: Fully compatible with Home Assistant via ESPHome, offering a built-in web interface, HTTP REST API, Bluetooth proxy functionality, and optional mmWave radar for presence-based control.
  • Advanced Power Management: Features individual fan power switches (TPS22810DBVR) allowing complete fan shutdown for zero-RPM operation, ensuring quiet environments when cooling is not required.
  • Open-Source & Customizable: The project is completely open-source, providing PCB designs, Gerber files, BOM, enclosure STEP files, and ESPHome firmware configurations on GitHub for easy customization and integration.

Detailed Overview

Designed by CoolMaker Lab in China, the ESP32 4-channel PWM fan controller is an open-source, Home Assistant-compatible board engineered for sophisticated cooling management. This versatile controller is perfect for server racks, Network Attached Storage (NAS) systems, network cabinets, and various other DIY enclosures requiring precise thermal regulation. It offers independent control over up to four 4-pin PWM fans, enabling granular speed adjustment, real-time RPM monitoring, and individual fan power switching.

The controller's capabilities extend to supporting up to four external DS18B20 temperature sensors, facilitating automatic fan speed adjustments based on environmental conditions. It also boasts a user-friendly web interface, an HTTP REST API for programmatic control, and Bluetooth proxy functionality. The latest v2.0 hardware and firmware further enhance its intelligence with optional LD2402G 24 GHz mmWave radar support for advanced presence-based automation.

ESP32 4 Channel PWM Fan Controller with Home Assistant support

Key Features and Specifications

The ESP32 4-channel PWM fan controller is built around robust components, ensuring reliable performance:

  • MCU: ESP32-WROOM-32-N4 module with 4MB flash, 2.4 GHz Wi-Fi, and Bluetooth LE (BLE proxy).
  • Fan Control:
    • 4x independent 4-pin PWM fan connectors with 1–100% PWM speed adjustment.
    • 4x tachometer inputs for RPM monitoring.
    • TPS22810DBVR-based individual fan power switch with load switches for complete shutdown (zero-RPM operation).
    • Automatic temperature-based fan speed adjustment.
  • Temperature Sensing: 3-pin connector for up to 4x external 1-wire DS18B20 temperature sensors (v2.0 board).
  • USB: USB Type-C port with CH340C USB-to-serial converter for programming and debugging.
  • Expansion:
    • 4-pin expansion header (5 V, GND, GPIO4, GPIO5).
    • Optional LD2402G 24 GHz mmWave radar support via UART (v2.0 board with compatible firmware).
  • Power:
    • 12 V DC input through a barrel jack (12 V/2 A or higher recommended).
    • TPS5430DDAR DC-DC buck converter (12 V to 5 V).
    • AMS1117-3.3 voltage regulator (5 V to 3.3 V).
  • Dimensions: TBD

PWM fan controller tested with a 120mm cooling fan and a DC power supply

Deep Dive & Technical Insights

Unlike many basic PWM controllers that only reduce fan speed, this board incorporates TPS22810DBVR load switches. These switches allow for complete power disconnection to each fan, enabling true zero-RPM operation when cooling is not needed. This feature is crucial for systems that prioritize quiet operation during low-load periods.

The controller leverages ESPHome to seamlessly integrate with Home Assistant. This integration allows users to remotely control fan states (on/off), adjust speeds, monitor RPMs, and configure complex automations. Beyond Home Assistant, a built-in web interface and HTTP REST API provide alternative control methods, ensuring flexibility for various setups. Additional features include over-the-air (OTA) updates for easy firmware upgrades and Bluetooth proxy support.

With the v2.0 DS18B20 firmware, the board supports up to four temperature sensors on a single 1-wire bus, allowing each fan to be assigned to a specific sensor. Fan speeds automatically adjust based on temperature thresholds. By default, fans remain off at 30 °C or below and gradually increase speed, reaching maximum at 50 °C. These limits are fully customizable, and the automatic control logic runs locally on the ESP32, independent of Home Assistant, ensuring robust and responsive thermal management. The optional LD2402G mmWave radar further expands automation possibilities, enabling presence-based fan control for energy efficiency and comfort.

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 Assistan


Conclusion & Resources

The ESP32 4-channel PWM fan controller by CoolMaker Lab stands out as a highly capable and flexible solution for managing cooling in server racks, NAS systems, and other demanding environments. Its open-source nature, combined with advanced features like individual fan power switching, temperature-based automation, and seamless Home Assistant integration, makes it an excellent choice for makers and system administrators seeking precise and intelligent thermal control. While commercial alternatives exist, this ESP32-based project offers unparalleled versatility and customization through its wireless connectivity and deep Home Assistant support.