简体   繁体   中英

How to read output of USB type B port into arduino?

I have an Arduino mega 2560 and I was wondering if it was possible to read MIDI data that is outputted from my MIDI keyboard. The USB type b port broke so I removed the port and wanted to know if I could directly connect the PCB contact pads to my Arduino and read the coming out. I could find no documentation on USB type B and what data is outputted by which contact pad. Thanks!

Short answer, no.

To do so you need to convert the USB protocol to something that Mega 2560 can understand (ex. SPI, RS232, etc.). You can check USB_Host_Shield and see if this can help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM