Electronic – How to connect a DC socket to a switch

batteriespower supplyswitches

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.

Best Answer

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.