Connecting ESP32-S2 to a USB Host Shield
Posted: Mon May 16, 2022 9:58 pm
Hi,
I currently use ESP32-S2 as USB device (GPIO19 and GPIO20). This works fine (detected as USB-MIDI device on my PC).
Now I also want USB host capabilities. So I want to connect this USB host controller by SPI:
https://www.ebay.de/itm/234532559207?ha ... SwWRdibMd6 .
It should work with this driver (part of Arduino IDE's library):
https://github.com/felis/USB_Host_Shield_2.0 .
The above driver documentation says, I should connect like this:
This can't be true. I investigated this for ESP32-S2:
GPIO12 : SCK
GPIO13 : MISO
GPIO11 : MOSI .
I have no clue about "SS" and "INT" (I'm no SPI expert). What's the right wiring?
Thank you!
Da Flex
I currently use ESP32-S2 as USB device (GPIO19 and GPIO20). This works fine (detected as USB-MIDI device on my PC).
Now I also want USB host capabilities. So I want to connect this USB host controller by SPI:
https://www.ebay.de/itm/234532559207?ha ... SwWRdibMd6 .
It should work with this driver (part of Arduino IDE's library):
https://github.com/felis/USB_Host_Shield_2.0 .
The above driver documentation says, I should connect like this:
.GPIO5 : SS
GPIO17 : INT
GPIO18 : SCK
GPIO19 : MISO
GPIO23 : MOSI
This can't be true. I investigated this for ESP32-S2:
GPIO12 : SCK
GPIO13 : MISO
GPIO11 : MOSI .
I have no clue about "SS" and "INT" (I'm no SPI expert). What's the right wiring?
Thank you!
Da Flex