The best solution I've found for pocket-sized USB HID is an EspUSB Tiny:
https://github.com/cnlohr/espusb
It's an ESP8285 acting as a USB keyboard, with the keystrokes coming over WiFi from a nearby phone.
The best solution I've found for pocket-sized USB HID is an EspUSB Tiny:
https://github.com/cnlohr/espusb
It's an ESP8285 acting as a USB keyboard, with the keystrokes coming over WiFi from a nearby phone.
An RP2040 device with 2 USB downstream facing port and 1 USB upstream facing port can be made, stuffed into a conspicuous Y-cable, appropriately programmed and appear as a single USB keyboard. Out of my reach but not impossible.
edit: Actually the port to connect to the PC goes through a UART chip, so you can't emulate HID devices using that port. So it won't work.
If you want a product, why not just get a USB-Bluetooth adaptor? It would support HID as well as A2DP (music) and other Bluetooth protocols.
If you want to build something, I'd recommend getting a board with an ESP32.
The ESP32 comes with plenty of example code in their esp-idf SDK. You'd be needing:
esp-idf/examples/peripherals/usb/device/tusb_hid
esp-idf/examples/bluetooth/esp_hid_host