I have a basic flip switch that I want to use to control whether a DC power socket is providing energy (from a connected battery pack). The power socket has three prongs, the switch has three, and there are the normal two wires (red and black) coming from the battery pack. What I'm not sure about is how to wire the three together so that when the switch is in one position the socket provides power (from the battery pack) and when the switch is in the other position the socket does not. For both the switch and the socket one prong is obviously in the center and the other two are indistinguishable.

  • \$\begingroup\$ Can you provide some part numbers, or at least some pictures of the parts in question? \$\endgroup\$ – Dave Tweed Feb 15 '13 at 23:53

While you don't provide a picture or part numbers for your dc socket or switch, these are common enough parts that general information works.

I am assuming your DC Socket looks like this: Socket

And your switch is generally like this: SPDT Switch

The socket has three prongs. One for the center, this is normally the one on the rear. One for the barrel, which is normally the one on the bottom, and the middle one is actually a switch, so that if you don't have a plug inserted, it can provide an alternative path. The two you are interested in are the rear and bottom ones. It varies if the center is positive or negative, that depends on your battery pack.

As for the switch, a three prong switch is usually a SPDT (Single Pole Double Throw). The image above shows how it is commonly set up. The center prong acts as a common pin, while A and B are the switch. Flip to one side A is connected to Common, flip to the other, B is connected to the common.

To act as a single power switch, you would want to connect one prong of dc socket to the Common prong of the switch, and the rest of the circuit to A (or B), leaving the other one empty. When you flip it to A, the connection is made to the socket, and power should flow. When you flip it to B, the connection is broken (Nothing being connected to B), giving you a power switch.


I'm somewhat confused, a picture might help. Here's my best effort to piece it together. Use a multimeter to determine what is what. Set the meter to measure DC voltage and measure the voltage between each pair of prongs on the three prong socket. If you measure something like 0V between two pins it's a pretty good bet that two of those prongs are electrically equivalent. If you are able to separate the battery pack from the socket, you can verify this with the continuity or resistance setting of your multimeter (ringing or less than an ohm or two of resistance is a positive indication of electrical equivalence). The two prongs that measure as the positive battery pack voltage (with the battery pack attached) tell you which pair are the positive terminal and negative terminal respectively. If you can remove the battery and use the resistance continuity setting to determine which prong rings to which battery lead (red/black), all the better. Black is called ground (GND).

Basic idea with the switch is to have it break the black battery terminal with the switch. If current can't reach GND the battery won't provide power to anything.


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.