Open RSBlek opened 4 months ago
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.
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 ?
Ah! TinyUSB mode must be set in tools menu!!!
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?
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)