ESP32-S3-USB-OTG

edpaay
Posts: 1
Joined: Wed Oct 11, 2023 4:11 pm

ESP32-S3-USB-OTG

Postby edpaay » Wed Oct 11, 2023 4:25 pm

So I have a project in mind where I want to intercept a keyboard USB cable and plug it into a micro-controller and then plug the microcontroller into a PC USB port. I saw the ESP32-S3-USB-OTG device and thought it had a female HOST socket and a DEV male plug. I was hoping this was suitable for that. I develop in Platform-IO (never got the ESP-IDF stuff working and it seemed to kill the Arduino mode in PlatformIO!?)
I looked at the circuits and get the impression you can switch between host or dev mode but I presume if I use it as a keyboard dongle I would need both active?
So can someone enlighten me if this device is suitable for such a project using C++ in PlatformIO and if possible give me some hints how I can achieve this? (I do not do Python and know nothing about RTOS or what ever it is called.)

Thanks.

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-S3-USB-OTG

Postby ESP_Sprite » Thu Oct 12, 2023 1:29 am

You are correct. The S3 only has one USB-OTG peripheral, which can be host or device, not both at the same time.

Who is online

Users browsing this forum: ESP_adokitkat, Gaston1980, TRUEcabbage and 165 guests