17
\$\begingroup\$

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?

\$\endgroup\$
30
\$\begingroup\$

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.

This diagram might help you understand better.

enter image description here

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.

\$\endgroup\$
  • \$\begingroup\$ 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. \$\endgroup\$ – Andy Smith Feb 26 '11 at 16:49
  • 1
    \$\begingroup\$ I'd much rather use a Diode-OR or something to that effect rather than a mechanical switch to provide continuity of power. \$\endgroup\$ – Nick T Feb 26 '11 at 18:27
  • \$\begingroup\$ 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. \$\endgroup\$ – rolandow Jan 24 at 7:12
  • \$\begingroup\$ @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) \$\endgroup\$ – Hearth Oct 15 at 15:16
5
\$\begingroup\$

It's difficult to tell from this image, and the Maplins website is very poor when it comes to datasheets and specs, so my answer is just a guess...

The two outside pins may act as a switch so that you can build a circuit that is powered by a battery until an external power supply is connected.

You can test this with a continuity meter, when unplugged these pins should be open circuit, but when something is plugged into it, these pins should be connected together.

\$\endgroup\$
4
\$\begingroup\$

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).

enter image description here

(larger image) More information is available from Ada Fruit Industries' PartFinder.

Note: Usage of these DC power connectors (or other appropriate types in special uses) is encouraged because the design helps prevent the power supply jack being accidentally shorted out, which could permanently damn many of the cheaper wall-wart style power supplies.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.