Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

USB HID (Human Interface Device) lets a device describe its functions and the layout of its data so a compatible host can interpret incoming reports. An ESP32-S3 can use Espressif’s TinyUSB-based USB device stack to present documented HID examples such as a keyboard or mouse. What it can do in a finished build depends on its report descriptor, the host’s support for the usages it declares, the board’s USB wiring, and the chip’s endpoint and USB-controller constraints.

How USB HID works

HID is a USB device class, not a single keyboard protocol. The USB-IF’s HID 1.11 specification describes how manufacturers build compatible devices and how a class driver extracts information from them. Its design emphasizes compactness, extensibility, robustness, nested collections, and self-description. See the USB-IF HID Specifications and Tools and the HID 1.11 specification.

Descriptors tell the host what to expect

When a USB device is connected, it provides descriptors that describe its configuration and interfaces. A HID interface includes a HID descriptor that points the host to a report descriptor. The report descriptor defines the structure and meaning of the reports the device will send or receive: fields, their sizes and types, and how they are organized.

Usages give report fields meaning

HID usages identify the purpose of collections and fields. A collection can identify a device function, while usages on fields can describe the meaning of values—for example, a key or a pointer movement. A host that recognizes the declared HID function can interpret reports through its generic HID support, without requiring a bespoke protocol for every device.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Hosyond 3Pack ESP32-S3 Development Board N16R8 MCU with Dual-Mode Wi-Fi Bluetooth Type-C, Compatible with Arduino IoT ESP32-S3-WROOM-1
  • 🔥【Dual Mode & High Performance】 The ESP32-S3 development board features integrated dual-core xtensa 32-bit LX7 microprocessor, clock speed up to 240 MHz, with 16MB Flash and 8 MB PSRAM. Perfect for Arduino IoT projects requiring stable wireless communication with ultra-low power consumption.
  • 🔧【Easy Programming & Debugging】 Equipped with dual USB Type-C ports, this ESP32-S3 board supports both USB and UART modes for effortless programming, firmware flashing, and debugging.
  • 🌐【Versatile Wireless Connectivity】 Built-in Wi-Fi (2.4GHz) and Bluetooth 5.0 (LE) dual-mode ensure seamless connectivity with a wide range of smart devices, making it ideal for IoT, smart homes projects.
  • 🚀【Flexible Download Options】 Supports dual download methods — USB direct download or USB-to-serial download — offering flexibility and convenience for different development needs.Ideal for beginners and developers working with ESP32-S3.
  • 🔋【Advanced Power-Saving Modes】 Designed for energy-efficient applications, with 3.3V SPI voltage, the ESP32-S3 board supports multiple low-power modes, allowing you to extend battery life based on different usage scenarios.

Reports carry changing values

Once the host understands the report layout, the device sends report values in that format. For a keyboard, reports communicate key state changes; for a mouse, they can communicate pointer movement and button state. The descriptor defines how to interpret the data; the reports carry the changing values. The HID 1.11 specification includes examples with an interrupt endpoint and a report descriptor reference.

Can an ESP32-S3 emulate a keyboard or mouse?

Yes. Espressif’s ESP32-S3 USB device stack is built around TinyUSB and supports HID as well as other standard device classes, composite devices, and vendor-specific classes. Espressif’s ESP-IDF v6.0 USB Device Stack documentation describes a TinyUSB HID example that implements a USB keyboard and mouse: it sends key press and release events and moves the mouse in a square trajectory when connected to a USB host.

Rank #2
3PCS ESP32 ESP32-S3 Development Board Type-C WiFi+Bluetooth Internet of Things Dual Type-C Core Board ESP32-S3-DevKit N16R8 Development Board ESP32-S3 Module
  • ESP32-S3-DevKitC-1-N16R8 SPI voltage: 3.3v, ESP32-S3-DevKitC-1 is an entry-level development board equipped with Wi-Fi + Bluetooth module ESP32-S3
  • Most of the I/O pins on the module are broken out to the pin headers on both sides of this board for easy interfacing. Developers can either connect peripherals with jumper wires or mount ESP32-S3-DevKitC on a breadboard.
  • The ESP32-S3-DevKitC development board equipped with ESP32-S3-DevKitC-1-N16R8, a general-purpose Wi-Fi + Bluetooth LE MCU module that integrates complete Wi-Fi and Bluetooth LE functions.
  • ESP32-S3-N16R8 cable can be used: USB Type A to Type-C cable or CC cable Note the distinction between the commonly used USB A port to Type-C cable that can only be charged, which cannot be used for communication between YD-ESP32-S3 and the host.
  • USB-to-UART Port and ESP32-S3 USB Port (either one or both), default power supply (recommended)

That example establishes that keyboard and mouse behavior can be implemented; it does not guarantee that every custom descriptor or host environment will behave identically. Your firmware must define a report descriptor appropriate to the intended behavior and send reports that match it.

What else can an ESP32-S3 present as USB HID?

HID covers more than keyboards and mice. The USB-IF’s HID materials include related areas such as Physical Interface Devices for force-feedback joysticks and steering wheels, point-of-sale usages for barcode scanners and scales, and power-device usages. These examples indicate the breadth of the class, not automatic compatibility for every device idea.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
AYWHP 3 PCS ESP ESP-32-S3 Development Board ESP-32-S3 Module with ESP-1-N16R8 Low Power MCU with Dual-Mode Wi-Fi and Bluetooth Type-C Connector Compatible with Arduino
  • 【Low-power performance】: The AYWHP ESP32-S3 Core development board integrates a 2.4 GHz Wi-Fi and Bluetooth 5 (LE) dual-mode communication module, perfect for Arduino Internet of Things (IoT) projects.
  • 【Simple programming and debugging】: The ESP32-S3 module makes it easy to program and burn in your ESP32-S3 board via dual USB Type-C ports, with a choice of USB or UART modes.
  • 【Multiple Power Saving Modes】: The ESP S3 development board supports multiple low-power modes, which can be configured according to different application scenarios to provide longer battery life.
  • 【Dual download modes】: The ESP S3-1 module supports both USB direct connection download and USB to serial port download, providing more flexibility and convenience.
  • 【Diverse connectivity options】: The ESP32-S3-1 supports dual-mode Wi-Fi and Bluetooth 5.0 (LE) connectivity for a wide range of smart devices, making it ideal for Internet of Things (IoT) applications.

A defined usage is not a promise that a host will support it. The USB-IF cautions: “The creation of a new Usage does not imply support for that Usage by any USB HID Host vendor.” For a less common or custom function, check that the target host and operating system recognize the usage and can make it useful to applications. If not, you may need host-side software or a different USB interface approach.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What limits an ESP32-S3 USB HID build?

USB data pins and board routing

On the ESP32-S3, USB D+ is GPIO20 and D− is GPIO19, as listed in Espressif’s ESP-IDF v5.4 USB Device Stack documentation. Development-board layouts differ, so check the board schematic or vendor pinout to confirm that the connector you plan to use is connected to these signals.

Rank #4
Lonely Binary 3-Pack ESP32-S3 N16R8 Development Board + 3 Terminal Bases
  • 【ESP32-S3 PERFORMANCE】Dual-core 240MHz processor with 16MB Flash and 8MB PSRAM for IoT, AI, and machine learning projects.
  • 【WIRELESS CONNECTIVITY】Onboard antenna for 2.4GHz WiFi and Bluetooth 5.0 LE — for smart home devices, no external antenna needed.
  • 【LEAD-FREE GOLD EDITION DESIGN】Immersion gold (ENIG) plating for durability and conductivity. Lead-free, RoHS-compliant — for long-term prototyping.
  • 【PRE-SOLDERED, PLUG-IN DESIGN】ESP32-S3 boards come with pre-soldered headers and plug directly into the included expansion and terminal boards — no soldering required.
  • 【MULTI-PLATFORM COMPATIBILITY】Works with C++, MicroPython, ESP-IDF, Raspberry Pi, and STM32 — with online tutorials for quick start. Power via USB-C (5V) or VIN pin (5–12V); do not exceed 5V on the USB-C ports.

Endpoint budget

The cited Espressif v5.4 documentation sets a maximum of six USB endpoints for the device stack: five IN/OUT endpoints and one IN endpoint. Treat this as a hardware/resource limit when planning HID alone or a composite device that combines HID with other USB classes. Count the endpoints required by the chosen interfaces before settling on the design.

USB-OTG is not USB Serial/JTAG

The programmable USB-OTG device path is distinct from the ESP32-S3’s USB Serial/JTAG controller. Espressif describes USB Serial/JTAG as fixed-function hardware for serial and JTAG debugging; it cannot be reconfigured to act as a programmable HID device. The USB Serial/JTAG Controller Console guide explains this distinction.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Lonely Binary ESP32-S3 N16R8 16MB Gold Edition Dev Board + IPEX Antenna
  • 【GOLD EDITION — IMMERSION GOLD PCB】The Lonely Binary Gold Edition features a black PCB with lead-free immersion gold (ENIG) plating and clear silkscreen — the signature finish of the Lonely Binary Gold Edition line. RoHS-compliant.
  • 【16MB FLASH + 8MB PSRAM】Large memory capacity for OTA updates, large programs, and AI/ML tasks — more headroom than 4MB boards for data-intensive IoT and automation projects.
  • 【EXTERNAL IPEX ANTENNA】External IPEX antenna can be positioned for extended WiFi and Bluetooth signal coverage — for remote applications like weather stations, robots, or enclosed builds.
  • 【DUAL USB TYPE-C PORTS】Separate power and data ports for macOS, Windows, and Linux. Power via USB-C (5V) or VIN pin (5–12V); do not exceed 5V on the USB-C ports.
  • 【FLEXIBLE PROTOTYPING PINS】2x40-pin GPIO headers compatible with breadboards and sensors. Supports external ToF sensors via I2C for distance sensing.

USB-OTG and USB-Serial-JTAG share the internal PHY by default, so only one can operate at a time in that configuration. Espressif’s USB OTG Console guide says an external PHY is needed to have both active together. It also notes that the ROM CDC console feature is incompatible with TinyUSB, although TinyUSB can provide its own CDC implementation. Account for debugging and console needs when planning how the board will connect to a host.

Checklist before building

  1. Choose and verify the board: confirm its USB connector is routed to ESP32-S3 GPIO20 (D+) and GPIO19 (D−), rather than assuming every connector supports the programmable USB device path.
  2. Use the USB device stack: configure Espressif’s TinyUSB-based stack and write a report descriptor for the intended HID behavior.
  3. Plan the interface composition: if combining HID with other classes, check that the endpoint needs fit within the six-endpoint maximum documented for the ESP32-S3 stack.
  4. Plan debugging separately: account for the shared PHY if USB-OTG device operation and USB Serial/JTAG would otherwise be needed at the same time.
  5. Test on the intended host: confirm that it recognizes the usage and responds as your project requires; the existence of a usage definition alone does not establish host support.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.