Can ESP32 be recognized as HID mouse or HID keyboard in Windows like Arduino Leonardo?

If I connect ESP32 to a PC, will it be recognized as HID mouse or HID keyboard in Windows like Arduino Leonardo,?

1 Like

No it will not. Because when you connect sep32 to a pc through USB there is USB-UART bridge and esp32 will be shown as a serialPort on Device manager.

https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/api/usb.html

Adding --
Emulating A Bluetooth Keyboard With The ESP32 | Hackaday

1 Like

Thank you!

Is the USB HID functionality only over bluetooth, or can it be a wired USB HID devices as well? The hackaday tutorial seems to use BlueTooth.

There is support for USB HID with the newer ESP32-S2 and ESP32-S3 microcontrollers. The ESP32 Arduino boards platform comes with a library named "USB" that includes examples for emulating a mouse and keyboard similar to what you can do with the Leonardo board:

But note that library is only for those specific microcontrollers. You can't use it with the original ESP32 microcontroller or the newer ESP32-C3.

Does it have to be specific the esp32 or can it be another board like rpi pico? There are tutoeials out there how you can programm it with arduino IDE like the esp32. For HID's its the way better uC to use.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.