Library

Connectors

What each connector's contacts are, and what happens when it meets one it was not made for.

barrel

ConnectorVariantGenderContactsNotes
DC barrel plug 5.5 x 2.1 mm5.5x2.1mmPlug2The usual wall-adapter plug. Centre positive is convention, not a guarantee.
DC barrel socket 5.5 x 2.1 mm5.5x2.1mmReceptacle2Panel or board DC input socket. A 2.5 mm plug will rattle in a 2.1 mm socket and make intermittent contact.

header-2-54mm

ConnectorVariantGenderContactsNotes
2.54 mm header, 15-pin female15-pinReceptacle15Fifteen-way socket strip on 0.1 inch pitch.
2.54 mm header, 15-pin male15-pinPlug15One side of a 30-pin development board.
2.54 mm header, 4-pin female4-pinReceptacle4Four-way socket strip or jumper-wire end on 0.1 inch pitch.
2.54 mm header, 4-pin male4-pinPlug4The breakout-module standard: four pins on 0.1 inch pitch.

jack-3-5mm

ConnectorVariantGenderContactsNotes
3.5 mm TRRS jack (CTIA)TRRS-CTIAReceptacle4Four-conductor headset socket in the CTIA pinout.
3.5 mm TRRS plug (CTIA)TRRS-CTIAPlug4Four-conductor headset plug in the CTIA pinout: tip left, ring 1 right, ring 2 ground, sleeve microphone. The older OMTP pinout swaps the last two, which is why a headset can work on one phone and not another.
3.5 mm TRS jackTRSReceptacle3Three-conductor eighth-inch socket.
3.5 mm TRS plugTRSPlug3Three-conductor eighth-inch plug. The common stereo headphone and line plug.
3.5 mm TS jackTSReceptacle2Two-conductor eighth-inch socket.
3.5 mm TS plugTSPlug2Two-conductor eighth-inch plug. Unbalanced mono.

jack-6-35mm

ConnectorVariantGenderContactsNotes
6.35 mm TRS jackTRSReceptacle3Three-conductor quarter-inch socket.
6.35 mm TRS plugTRSPlug3Three-conductor quarter-inch plug. Stereo, or balanced mono, depending entirely on what the device does with the ring.
6.35 mm TS jackTSReceptacle2Two-conductor quarter-inch socket. A TRS plug will seat in it, shorting its ring to the sleeve.
6.35 mm TS plugTSPlug2Two-conductor quarter-inch plug. Unbalanced mono: instrument cables, guitar amp inputs, speaker leads.

jst-xh

ConnectorVariantGenderContactsNotes
JST-XH 2-pin header2-pinPlug2Keyed 2.5 mm pitch board header. Common for battery and fan leads.
JST-XH 2-pin housing2-pinReceptacle2Keyed 2.5 mm pitch cable housing. The key prevents reversal, which is the point of using it over a bare header.

rca

ConnectorVariantGenderContactsNotes
RCA plugnonePlug2Unbalanced consumer line connector. One signal pin inside a ground shield.
RCA socketnoneReceptacle2Unbalanced consumer line socket.

screw-terminal

ConnectorVariantGenderContactsNotes
2-pole screw terminal2-poleReceptacle2Bare-wire terminal block. Nothing keys it, so polarity is whatever the silkscreen says.

usb-c

ConnectorVariantGenderContactsNotes
USB-C plug (power and USB 2.0 contacts)power-and-usb2Plug6Simplified to the six contacts a wire-level connection touches: VBUS, GND, CC1, CC2, D+ and D-. The full receptacle has 24 contacts; the high-speed pairs are not modelled because Zikro does not reason about them.
USB-C receptacle (power and USB 2.0 contacts)power-and-usb2Receptacle6Simplified to the same six contacts as the plug.

xlr

ConnectorVariantGenderContactsNotes
XLR 3-pin female3-pinReceptacle3Balanced audio connector, input end by convention. May carry 48 V phantom power.
XLR 3-pin male3-pinPlug3Balanced audio connector. Pin 1 ground, pin 2 hot, pin 3 cold. Male carries the output by convention.