I'm new to programming with Raspberry Pi's. I have a Yamaha p45 electric keyboard that outputs MIDI over a USB cable (not the 5-pin midi cable) and I need to read the midi input into my Raspberry Pi Pico. I've been doing research for weeks but it looks like maybe it's not possible to get USB MIDI input on the pico? All I can find is MIDI output or MIDI input using the 5-pin midi cable or MIDI input in some other type of Raspberry Pi that isn't the pico.

Does anyone know how I could approach this? Maybe there's some way I could use the UART pins instead of the micro USB port? Could I cut open the MIDI cable to expose the inner wires and attach those to the UART pins? Any and all help would be much appreciated!


2 Answers 2


To be able to access a USB device, you would need to use the Pico in USB Host mode.

The Pico uses the TinyUSB stack; in host mode, it does not support MIDI.


What I ended up doing was receiving the MIDI from my Mac and then just sending that as raw data to my Raspberry Pi Pico through USB. It was kind of a round-about way to solve the problem but in the end it was the only way I could get it to work, and with my current setup it works just fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.