tanakamasayuki / EspUsbHost

Library for using USB Host with ESP32
80 stars 19 forks source link

Using ESP32-S3-DevKitC-1 cannot connect to USB keyboard #12

Open creepscompilation opened 6 days ago

creepscompilation commented 6 days ago

I have two different development boards that I am using with this library and the basic "EspUsbHostKeybord" sample code. ESP32-S3-DevKitC-1 and ESP32-8048S070N/C 7-Inch touchscreen with the ESP32-S3-WROOM-1.

Both library and code install and compile without issues. I also confirm the wiring is accurate, however, I confirm that the USB keyboard does not enumerate.

I am compiling with using the "ESP32S3 Dev Module" in Arduino.

Question: Do I need to hard wire any other pins?

creepscompilation commented 6 days ago

I didn't see a wiring diagram so, here is my confirmed wiring with continuity check. USB- Female Socket Pin # 1 = +5vdc Pin # 2 = D- = ESP32-S3-WROOM-1 (GPIO19) = PIN # 13 on the ESP32-S3-WROOM-1 Pin # 3 = D+ = ESP32-S3-WROOM-1 (GPIO20) = PIN # 14 on the ESP32-S3-WROOM-1 Pin # 4 = Ground

I am not sure if I need to pull-up or pull-down another PIN for HOST to work, I can't find any documentation for that. I am assuming the library and example code should work with the wiring I am using, but I must be wrong.

So far, I have installed the library, wired up the USB keyboard as shown above, and ran the example "EspUsbHostKeybord" using the "ESP32S3 Dev Module" and also tried the "ESP32-S3 -USB-OTG" Module" in Arduino.

I must be doing something wrong, but my wiring checks out against the ESP32-S3-WROOM-1 pin assignements.

creepscompilation commented 6 days ago

I got it working by shorting the USB-OTG pins on the bottom of the module, however, does that mean I must use a USB-C connector with an adaptor to plug in USB-A devices? It appears to be a hardware issue.

How do I get a standard USB-A (4-pin) USB keyboard to work without the need for a USB-C to USB-A adapter?

I found the schematic for the ESP32-S3-N16R8-N8R2 board that I am using. https://lededitpro.com/esp32-s3-development-board-2-4g-wifi-module/

creepscompilation commented 6 days ago

Untitled Is there a schematic circuit for this project that shows how to wire a standard USB-A (4-pin) USB keyboard? I am confused as to why the sample code does not assume USB HOST input when wired with only 4 pins?