ESP32s3 dev kit, using it as a HID joystick and receive serial data.
Posted: Sat Mar 22, 2025 1:30 am
I am just getting into ESP's, having only really played with arduino's before (i'll be programming the ESP's with arduino ide... i struggle with coding big time, mostly modifying other code to get it doing what i need)
I have some ESP32-S3 DevKitC-1 - N16R8 boards (cheap ones from amazon, the type that need a jumper soldering to enable USB-OTG and stuff like that https://www.amazon.co.uk/dp/B0D8FQH6Y6? )
i went for the -S3 boards as they can be used as a HID device, and the main thing i want to use them for is making HID joystick / button box's to control a train simulator.
I also want to be able to have the same board receive serial data from the simulator, mostly to turn led's on and off for warning lights on the controllers.
I keep seeing references that you can not use HID and serial at the same time, and this seems to be the case for HID and wifi*
As the s3 boards have 2 USB ports, is it possible to use the OTG port for the HID joystick connection, as well as the other serial usb port (UART?) to receive the serial data?
perhaps running the 2 sketches separately on different cores or something like that ? (i really am in over my head here as you can tell)
*I've tried running the HID joystick sketch as well as a GPIO viewer sketch together https://github.com/thelastoutpostworkshop/gpio_viewer but nothing works when i combine the 2 sketches (they work fine separately)
so i think this is the same issue with serial and HID running at once?
I have some ESP32-S3 DevKitC-1 - N16R8 boards (cheap ones from amazon, the type that need a jumper soldering to enable USB-OTG and stuff like that https://www.amazon.co.uk/dp/B0D8FQH6Y6? )
i went for the -S3 boards as they can be used as a HID device, and the main thing i want to use them for is making HID joystick / button box's to control a train simulator.
I also want to be able to have the same board receive serial data from the simulator, mostly to turn led's on and off for warning lights on the controllers.
I keep seeing references that you can not use HID and serial at the same time, and this seems to be the case for HID and wifi*
As the s3 boards have 2 USB ports, is it possible to use the OTG port for the HID joystick connection, as well as the other serial usb port (UART?) to receive the serial data?
perhaps running the 2 sketches separately on different cores or something like that ? (i really am in over my head here as you can tell)
*I've tried running the HID joystick sketch as well as a GPIO viewer sketch together https://github.com/thelastoutpostworkshop/gpio_viewer but nothing works when i combine the 2 sketches (they work fine separately)
so i think this is the same issue with serial and HID running at once?