MIDI DIY interfaceYou can use the serial interface (UART) of the PI for "talking MIDI" with:
Set the USE_SERIALPORT_MIDI parameter to TRUE to enable it. See next paragraphs for some tech details regarding the standard midi wiring, the MIDI cables and the various types of cnnectors.
MIDI Interface BusMIDI defines the electrical and physical interface over a 5-pin DIN connector, on a 64 ohm cable. See Philip Rees docs for more tech details.Pins 1 and 3 are never needed. Pin 2 is used for the shield, in order to ground the cable. That leaves the other two pins to carry an isolated current loop.
This is why all devices (instruments, controllers) have female sockets.
And all cables (except those explicitly designed as extension cables) have male plugs.
This ensures the correct electrical contacts without having to label ends. IC Circuitry for the MIDI In, MIDI Thru and MIDI Out InterfacesThe full specs in CA33.pdf of the MIDI association drill down to next more simplified circuits:Actual 5-pin DIN chassis socketThe Mini DIN connectorMany variations, this article gives good overview.The TRS connectorPlease note this article as variations exist / manufacturer. |