Arduino and MIDI
From wikiluntti
Introduction
MIDI Standard
MIDI plug
A 180° five-pin DIN connector (DIN 41524). Typical applications use only three of the five conductors: a ground wire (pin 2), and a balanced pair of conductors (pins 4 and 5) that carry the MIDI signal
Some MIDI devices uses 3.5 mm TRS phone connectors (also known as audio minijack connectors)