draft
note

MIDI Connectors

See also MIDI TRS Connector

Standard MIDI circuit

The MIDI circuit is a current loop, 5 mA. Sending 1s and 0s is done with changes in current rather than voltage. Logic 0 is current ON.

One output drives one (and only one) input.

MIDI THRU is wired to IN and sends along whatever is received

To avoid grounding loops and subsequent data errors, the input is opto-isolated. It requires less than 5 mA to turn on.

Also to avoid ground loops, pin 2 of the MIDI In connector must be left floating (not connected to ground).

The standard connector used for MIDI is a 5 pin DIN.

Cables are shielded twisted pair, with the shield connecting pin 2 at both ends. The pair is pins 4 and 5. Pins 1 and 3 are not used, and should be left unconnected.

Group loops

Every MIDI connection must be optically isolated in order to avoid ground loops. Without optical isolation, a MIDI cable can create a ground loop by making an additional connection between devices that are already grounded together via a wall outlet, introducing 50 or 60 Hz hum.

MIDI plug and cable wiring

Cable

In a MIDI cable, pin 2 is always connected to the cable shield.

First connectorCableSecond connector
Pin 1not connectedPin 1
Pin 2ShieldPin 2
Pin 3not connectedPin 3
Pin 4+5V (Voltage Reference)Pin 4
Pin 5DataPin 5

DIN connector

In a MIDI DIN Input connector, pin 2 must be left floating (not connected).

DIN InDin ThruDIN Out
Pin 1not connectednot connectednot connected
Pin 2not connectedShieldShield
Pin 3not connectednot connectednot connected
Pin 4+5V (Voltage Reference)+5V+5VThis is the current source.
This signal is held at +5V by the sending device so is also called the “hot” connection.
Pin 5DataDataDataThis is the current sink.
The sending device switches between connecting this to ground (so a current can flow) and
holding it at +5V or disconnecting it (so no current can flow).
MIDI DIN connector
MIDI DIN connector

MIDI circuitry

Source: https://makezine.com/article/craft/music/skillbuilder-midi-for-makers/

Resources