Skip to content
MCU Atlas
ESP32ESP32-S3

X-Knob: LVGL smart knob for MQTT smart home and Surface Dial

X-Knob is an ESP32-S3 smart knob inspired by SmartKnob: an LVGL interface, MQTT smart-home control and a Surface Dial mode over USB.

Difficulty:AdvancedSource available

Photos

X-Knob: LVGL smart knob for MQTT smart home and Surface Dial photo 1
X-Knob: LVGL smart knob for MQTT smart home and Surface Dial photo 2

Photos: SmallPond/X-Knob

Key Facts

  • Chip: ESP32-S3
  • UI: LVGL on round display
  • Modes: MQTT smart home, Surface Dial (BLE HID)
  • Haptics: BLDC + FOC

About This Project

X-Knob builds on SmartKnob's idea of a haptic, motor-driven knob but uses a cheaper motor and a straight cylindrical design, and replaces the UI with LVGL. It can control smart-home devices over MQTT (for example Home Assistant lights) and act as a Bluetooth Surface Dial for a PC. Documentation is primarily in Chinese with an English README.

Source & Attribution

Source: GitHub
Also from: dingmos.com
License: MIT
Last verified: 10/15/2026
X-Knob: LVGL smart knob for MQTT smart home and Surface Dial

How to Build It

X-Knob is a SmartKnob-inspired haptic knob on the ESP32-S3. It has an LVGL interface on a round display, MQTT smart-home control, and a mode that works as a Surface Dial over BLE. A BLDC motor driven by SimpleFOC provides the haptic feedback.

Parts Needed

  • X-Knob PCB (ESP32-S3)
  • BLDC gimbal motor
  • Magnetic encoder
  • Round 240x240 LCD
  • 3D-printed enclosure

Steps

  1. 1

    Assemble

    Build the PCB and enclosure from the repo's hardware and CAD files, mounting the motor and encoder as shown.

  2. 2

    Open the firmware

    Open the Firmware project in VS Code with PlatformIO. ESP32-S3 support needs the Espressif32 platform 4.4.0 or newer.

  3. 3

    Add your secrets

    Copy src/secrets.h.example to src/secrets.h and fill in your Wi-Fi and MQTT server details. You can also set MQTT_HOST in config.h, which becomes part of your MQTT topics.

  4. 4

    No MQTT yet?

    Disable MQTT in platformio.ini to keep the smart-home UI for testing without connecting to Wi-Fi or a broker.

  5. 5

    Build and flash

    Build and upload from PlatformIO. To flash a release binary instead, write it at offset 0x10000, because it only contains the app partition.

  6. 6

    Tips

    If you see 'sdkconfig.h not found', update the PlatformIO espressif32 platform. Brightness, Wi-Fi and MQTT can later be changed from the web settings page.

Bill of Materials

Parts list

4 parts · 1 linked

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

No verified link — check the original project
No verified link — check the original project
No verified link — check the original project

Not included: 3D-printed case, wire, solder, USB cable

Download CSV

Related Projects

SmartKnob: haptic knob with virtual detents (ESP32-S3)
Illustration
ESP32ESP32-S3
A haptic input knob with software-defined detents and endstops, built from a BLDC motor, encoder and round LCD on ESP32.
Advanced·Code
5 parts listed
RempyRadar: round-screen flight radar desk toy (XIAO ESP32-S3)
Illustration
ESP32ESP32-S3
A sonar-style radar that shows live nearby aircraft from ADS-B data on a 1.28in round screen, compass-stabilised.
Beginner·Code
3 parts listed
BroGlow: a desk traffic light for your AI coding agents on an ESP32-C3
Illustration
ESP32ESP32-C3
A three-LED lamp on an ESP32-C3 SuperMini that shows whether Claude Code, Codex, opencode or Copilot CLI is working, paused or needs you.
Beginner·Code
6 parts listed