Yes. An ESP32-S3 can act as a wired USB Human Interface Device (HID), including a keyboard, mouse, custom HID device, or a composite device that combines USB functions. The most direct documented starting point is Espressif’s TinyUSB-based USB Device Stack for ESP-IDF and its keyboard-and-mouse example. The key prerequisites are a board whose USB connector is wired to the ESP32-S3’s native USB signals and firmware configured for USB device operation.
What you need before you start
- An ESP32-S3 development board with its native USB OTG connection available.
- A data-capable USB cable and a host computer.
- A framework and USB configuration that leave the native USB device interface available for your project.
Espressif documents GPIO 20 as USB D+ and GPIO 19 as USB D−. A development board may route those signals to a USB connector, but connector labels and wiring vary by board. Check the exact board schematic or guide before connecting it; a USB-C or micro-USB connector is not necessarily the native USB OTG port. See Espressif’s ESP-IDF v6.0 USB Device Stack documentation for the signal details.
As an Amazon Associate I earn from qualifying purchases.
Start with Espressif’s keyboard-and-mouse example
Espressif’s ESP-IDF USB Device Stack is built around TinyUSB and provides ESP-IDF integration. The documented peripherals/usb/device/tusb_hid example sends keyboard press and release events and moves a mouse after it connects to a USB host. Use the example as a reference for the device stack and event flow, then adapt its report definitions and application behavior to your project. The example is documented in Espressif’s USB Device Stack guide.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →A practical development sequence is:
- Confirm from your board’s documentation which connector carries native USB D+ and D−.
- Set up ESP-IDF for your ESP32-S3 project and start from the documented
tusb_hidexample. - Build and flash the example, then connect that native USB port to a host to check that the device enumerates and its keyboard or mouse behavior is recognized.
- Change the example’s behavior to suit your application. For custom reports, make the report descriptor, transmitted report format, and host-side consumer agree.
- Test on the specific host and application you intend to support; recognition and behavior should be verified for that combination.
Choose standard HID, custom HID, or a composite device
Standard keyboard or mouse
Use standard keyboard or mouse HID when the host should interpret input as conventional key presses or pointer movement. The official example is a useful implementation reference, but it does not establish that every application-specific behavior or host will work without adjustment.
#1 Best Overall
- 🔥【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.
Custom HID reports
A custom HID device defines reports for its own controls or data. Its descriptor describes the reports, and the firmware must transmit data in the format that descriptor specifies. The host-side software must also know how to consume those reports. Treat the descriptor, report format, firmware behavior, and target host as one design; validate the result with the actual use case rather than assuming that a descriptor will be accepted uniformly by every application.
Composite or vendor-specific USB functions
Espressif documents support for HID, vendor-specific functions, and composite devices. Choose HID when the host should handle the interface as an input or output device under HID conventions. A vendor-specific function may suit a custom protocol that does not fit ordinary HID behavior; whether it is appropriate depends on the host software and protocol design.
Rank #2
- 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)
Composite devices combine USB functions, so account for endpoint capacity when planning interfaces. Espressif’s ESP-IDF v6.0 documentation specifies a maximum of six endpoints for the ESP32-S3 USB device stack: five IN/OUT endpoints and one IN endpoint. Check that your proposed interface arrangement fits before committing to a composite design. See the ESP-IDF v6.0 USB Device Stack reference.
Free tools Windows power users keep installed
One-click scans. No signup required.
Choose a firmware framework
| Approach | When it fits | What to account for |
|---|---|---|
| ESP-IDF USB Device Stack | You want Espressif’s documented stack and its keyboard-and-mouse example. | Review the selected ESP-IDF release and plan the USB interfaces and endpoint usage. |
| Arduino-ESP32 USB device mode | You already work in Arduino and want to investigate USB device operation on ESP32-S3. | Espressif documents device-mode capability, but the documentation cited here does not establish a specific HID library, version, or canonical setup sequence. Verify the library and board configuration you intend to use. |
Espressif’s Arduino-ESP32 USB API documentation describes supported chips such as ESP32-S3 operating in device mode, including mouse or keyboard use. That high-level capability is not a substitute for checking the API and library versions in your own Arduino environment.
Rank #3
- 【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.
Plan USB mode and serial debugging
On ESP32-S3, USB_SERIAL_JTAG and USB_OTG share a PHY. Arduino documentation warns not to enable USB-OTG (TinyUSB) mode together with CDC On Boot. Decide which USB function your firmware needs and choose a compatible logging method rather than assuming that the same connection can serve every USB role at once. Consult the configuration warning in Espressif’s Arduino-ESP32 USB Host API documentation.
Quick Recap
Best Value
- 【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.
Rank #4
- 【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.
What to verify when the device does not work
- No enumeration: Recheck that the cable supports data and that the connected board port is wired to native USB D+ and D−, not just to a different USB interface.
- USB configuration conflict: Review the selected USB mode and serial logging configuration, especially the documented USB-OTG TinyUSB and CDC On Boot warning for Arduino.
- Host recognizes the device but custom input is wrong: Compare the report descriptor with the actual report bytes and confirm the host application knows how to interpret them.
- Composite configuration fails: Revisit the interface and endpoint plan against the ESP32-S3 stack’s documented endpoint limit.
- Behavior differs between hosts or applications: Test with the intended host and software; support for HID as a device class does not guarantee that every custom descriptor or consumer behaves identically.
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.




