Getting the USB HOST port on the ESP32-S3-USB-OTG board to work
Posted: Wed Aug 03, 2022 3:55 pm
Hello! It's my first post here, and I'd like to apologize in advance for my incompetency!
I've been attempting to read serial data from the USB Type-A female "HOST" port on the ESP32-S3 USB OTG board in the Arduino core, however, the example code on the github repo seems to only use the USB DEV port instead of the USB HOST. I've done some documentation reading and I believe I have configured the correct pins to enable the USB HOST to work (shown below), but I am still unsure how I would go about actually programming the board to read serial data from this port (and if my configuration is even correct).
I would really appreciate it if someone could point me in the right direction on how to properly set up the USB HOST and code for it!
Thank you!
I've been attempting to read serial data from the USB Type-A female "HOST" port on the ESP32-S3 USB OTG board in the Arduino core, however, the example code on the github repo seems to only use the USB DEV port instead of the USB HOST. I've done some documentation reading and I believe I have configured the correct pins to enable the USB HOST to work (shown below), but I am still unsure how I would go about actually programming the board to read serial data from this port (and if my configuration is even correct).
Code: Select all
void setup() {
pinMode(12, INPUT_PULLUP);
pinMode(13, INPUT_PULLUP);
pinMode(17, INPUT_PULLUP);
pinMode(18, INPUT_PULLUP);
digitalWrite(12, LOW);
digitalWrite(13, LOW);
digitalWrite(17, LOW);
digitalWrite(18, HIGH);
}
Thank you!