I have a Yamaha PSR-E473 keyboard with USB Midi. Works from PC with DAW to play notes on keyboard.
I've done experiments with a PIC controller and an I2C Midi USB host (HobbyTronics), which worked, to play notes / chords on keyboard.
Can ESP32 do same, through USB Midi ?
Thank you
If the MIDI host has an I2C interface then, yes, you can control it using an ESP32
In your ask, the ESP32 would be sending MIDI notes to the Yamaha keyboard over USB, so the ESP32 needs to act as an USB host, and the Yamaha keyboard is the USB device.
I think most original ESP32 boards do not have native USB host support, but the ESP32-S2 and ESP32-S3 have native USB OTG capabilities that can be used in host (or device) mode.
see
Thanks guys for your help, I'll have a look at the ESP32 S2 S3 options.
Just an update, I've looked back at my old PIC controller experiments and now today found the parts I was using, with my Yamaha keyboard.
I have a little Uart-USB host module (Hobbytronics) with Midi software for that.
Also an SPI SD card module.
With my I2C 20x4 LCD, I think I can get something working even with the ESP32s I've got.
I'll keep you posted.
Thank you