🌀 TMC2240 Fan Controller

One-click web installer for the ESP32-C3 stepper-driver cooling fan controller (Klipper / Moonraker printers, e.g. Snapmaker U1).

Install in your browser

  1. Use Google Chrome or Microsoft Edge on a desktop (Web Serial is required — Firefox/Safari won't work).
  2. Plug your ESP32-C3 Super Mini into a USB port.
  3. Click Install below and pick the board's serial port (it shows up as USB JTAG/serial or USB Serial).
  4. Wait for it to finish, then follow the Wi-Fi setup steps below.
⚠ Your browser does not support Web Serial. Please use Chrome or Edge on a computer. ⚠ This page must be served over HTTPS.

Install (recommended) uses reduced Wi-Fi transmit power (8.5 dBm). Many ESP32-C3 Super Mini clones have a poorly matched antenna, and at full power their setup hotspot can be weak or invisible. If your board works better at full power (e.g. it is far from the router), use the alternative below.

Nothing to install on your computer — flashing happens entirely in the browser.

Wi-Fi & printer setup (first run)

  1. After flashing, unplug and replug the board. It creates a Wi-Fi hotspot called FanCtl-Setup (open, 2.4 GHz only) and the blue LED blinks quickly while it is active. In the installer, Logs & Console prints a reminder every 5 s.
  2. Connect your phone or laptop to it — a setup page opens automatically.
  3. Pick your Wi-Fi network and enter the password.
  4. In the same form, fill in your Printer IP address and Moonraker port (default 7125).
  5. The board joins your network. Open its address in a browser (you can find it on the printer's router, or via the serial monitor) to see the dashboard.

You still need to wire the fan to the board — see the wiring table in the README.

What it does

Reads the temperature of your TMC2240 stepper drivers from Moonraker and smoothly controls a 4-pin PWM fan (e.g. Noctua NF-A6x25 5V) to keep the drivers at a target temperature — instead of letting them spike to 90 °C. The fan stays off when the printer isn't printing. Everything is tunable from a built-in web interface (English / Polish, with three difficulty levels).