Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup for ESP32-S3 Devkit-M1 #1

Open
RSBlek opened this issue Jul 26, 2024 · 4 comments
Open

Setup for ESP32-S3 Devkit-M1 #1

RSBlek opened this issue Jul 26, 2024 · 4 comments

Comments

@RSBlek
Copy link

RSBlek commented Jul 26, 2024

Hi, i am trying to to get the ESP32USBMIDI example running.

But unfortunately, I can't find an example of how to configure my board anywhere on the Internet.

My devboard has a jumper on the back labeled “USB-OTG”, does this have to be set? I assume that the jumper sets the USB device to host mode, so it should be set.

Could someone also send me a picture of the board settings from Arduino? I've tried so many things but just can't get a signal from my piano.

Many thanks in advance!

Translated with DeepL.com (free version)

@esp32beans
Copy link
Owner

If you want to plug in a MIDI device such as a piano, this is the wrong code. This code makes an ESP32-S2/S3 a USB MIDI device, not USB MIDI host.

Also the latest arduino-eps32 board package has examples of using USB MIDI device which are much easier to use than this code.

For USB host take a look at https://github.com/touchgadget/esp32-usb-host-demos. The code assumes you are
familiar with ESP-IDF code even though it builds using the Arduino IDE. The examples are very minimal implementations.

The Espressif "ESP32 S3 Box 3" includes a USB Type A port so it makes working with USB host much easier.

I am not familiar with the ESP32-S3 Devkit-M1 board.

@01GOD
Copy link

01GOD commented Aug 20, 2024

Firstly, THANKS FOR POSTING THAT!
Secondly, planning to try this later today. The S3 board I plan to try it on has 2 ports (UART and "USB"(seemingly OTG) and next to the one labeled "USB" it says "OTG". That "OTG" label is next to a little pad jumper (2 pads that act as an optional solderable jumper) that hasn't been jumpered.

So should I upload the code using the UART USB connector and then solder that ridiculous jumper and then use the OTG connector? Or does it sound as though the PCB designer maybe failed to notice that the serial programming pins aren't the same (supposedly 19 and 20) used for D+ and D- communication when it's connected to OTG ?

@01GOD
Copy link

01GOD commented Aug 20, 2024

Ah! TinyUSB mode must be set in tools menu!!!

@01GOD
Copy link

01GOD commented Aug 20, 2024

Confirmed it functions with TinyUSB mode set. Thanks! That melody playing is music to My ears!

PS: By the way, is https://github.com/touchgadget/esp32-usb-host-demos the best known code for controlling a synthesizer on an ESP32 S3 through USB on a laptop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants