r/ArduinoProjects • • Jul 21 '24

USB Protocols

Hello, Is it possible for a microcontroller like the ESP32-S3 or RP2040 to access keyboard outputs while the computer remains the host? In other words, can the microcontroller read the data sent from the keyboard without being the host, while the computer continues as the primary host? Through this, could the microcontroller, for example, control an LED or create shortcuts when a specific key on the keyboard is pressed, without affecting the keyboard's functionality for the computer?

Thank you in advance for your assistance!

0 Upvotes

3 comments sorted by

View all comments

1

u/xebzbz Jul 21 '24

I never tried, but probably you can simulate an USB hub and see all keystrokes going through it.

Another option would be to connect a Bluetooth keyboard to the esp32 and present it to the USB host.