# Wiring a DC socket - why three pins?

I have this DC socket:

Which I intend to wire up to a circuit to provide power.

I have a DC power supply which has a positive tip polarity.

I'm good to go and wire up the socket but I am a little stuck as there are 3 pins on my socket.

From the look of the socket it's fairly obvious which pin is for the center pin (which I will wire pos) so I assume the other two are for the outside (which I will wire neg).

Is this assumption correct? And if so why two pins instead of one?

This might be something similar to the female single channel audio connector where two of the 3 pins will be shorted when unplugged and when its plugged one of those 2 ping will be floating which usually goes to a battery and the remaining 2 pins will be connected to your plug.

Here pin 3 will got to the battery, pin 2 & 1 to the circuit.

When you plug in the socket pin 1 & 2 would provide the power to the circuit and battery will be disconnected.

when unplugged the battery would be connected back to the circuit.

Though there are other configuration also in which it can be used but this is a simple example which might help you understand the way these socket works.

• Thankyou for the informative reply. As I have no battery in my circuit I just wired up 1 and 2 and that did the trick. Feb 26 '11 at 16:49
• I'd much rather use a Diode-OR or something to that effect rather than a mechanical switch to provide continuity of power. Feb 26 '11 at 18:27
• As a rookie, it still took me some time to figure this out. At first I thought pin 3 and 2 would be positive and 1 negative. Turned out to be the other way around. So I connected pin 1 to the + side of my circuit. The battery + also connects to this + side of the circuit (you don't see this in the image above). Then pin 2 goes to the negative side of the circuit and pin 3 to the negative side of the battery. So when battery is unplugged, the negative 2 & 3 are shorted and de battery works. Jan 24 '19 at 7:12
• @rolandow This is not universal; most DC power supplies are center-positive but there are some center-negative ones (I believe a lot of Sony audio equipment in the 80s and 90s used that type, for instance) Oct 15 '19 at 15:16

The other possibility is that a 3 pin design is simply to provide a more robust and secure mechanical mounting.

Connectors are subjected to mechanical stress when connected and disconnected, so a better connector will have "over-sized" pins that provide a good mechanical connection to the circuit board (or enclosure), beyond the physical connection necessary for the power supply's voltage and current flow.

While I believe the normally-closed switch (to outer-connector ground) is the most common make of these DC power connectors (aka barrel or coaxial connectors), personally speaking, I have always just ignored the switch and soldered both switch pins to ground in my own projects.

I believe the switching is for the outer connector of the barrel portion of the jack (rather than the center pin), this can be used to drain larger capacitors such as large electrolytic capacitors being used to filter the DC supply from an unregulated power supply, so that after the circuit is disconnected, to reduce the shock (or jolt) risk if you open up the case, the capacitors drain to ground via a bleeder resistor.

In digital circuits, an active low SHUTDOWN* signal can be used to force a microcontroller off to prevent unstable operation after the power has been disconnected, even if there is a brief residual power such as from large-ish filter capacitors or inductors in a switching mode power supply.

Similar connector with better view of the 3 pins in a different layout (and closed frame which fully encases the power jack, something I prefer).