/USBJoystick

USB HID Joystick dongle using ESP NOW for wireless connectivity

Primary LanguageC

A simple USB HID Joystick implementation

Uses esp32 S2 or S3 for the USB interface and receives stick position info over esp-now from a suitable transmitter (no such transmitter is currently available, so you may want to hang on a bit before grabbing this). I'll put up an example transmitter project eventually.

Tested with S2 USB dongle, Lolin ESP32 S2 Mini and ESP32-S3-DevKitC-1. There aren't a lot of requirements for the hardware other than needing to be an S2 or S3 processor with the usb directly connected to the chip, not via a usb-serial adapter, and having an antenna for wifi.

Code based on platform-espressif32/examples/espidf-peripherals-usb and then extended to add esp-now receiver code, add a custom Joystick descriptor with higher resolution and a composite descriptor for S2 to allow both usb hid and cdc serial output.

Much cleanup work still to do.

Example links from AliExpress:

https://www.aliexpress.com/item/1005006206868342.html

https://www.aliexpress.com/item/1005006157693055.html

https://www.aliexpress.com/item/1005006002965361.html

Images:

s2_mini esp32-s3-devkitc-1-v1 1-isometric dongle