We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
Loading ...

How to Wire a DPDT Mini Toggle Switch

Updated July 20, 2017

A DPDT (double-pole, double-throw) switch is used to operate two different devices independently. Generally, the switch has six terminals, and the middle two are used to connect something that both devices will use, such as a battery. For example, the positive and negative terminals of a battery can be connected to the two middle terminals. A green LED (with resistor) can be connected to one set of terminals on one end, and a red LED (with resistor) can be connected to the two terminals on the opposite end. When the switch is moved to one position, the red LED lights. When it is moved to the other position, the green LED lights.

Loading ...
  1. Place the 7805 regulator into the breadboard, noting which terminals are Input, Output and Ground.

  2. Place the DPDT switch in the breadboard, connecting one centre terminal to the Output pin of the 7805 and the other centre terminal to the Ground pin of the 7805. It may help to solder connecting wires to the switch terminals before placing the switch in the breadboard.

  3. Connect the longer leg (anode) of the red LED to one end terminal of the switch, along the side where the 7805 Output is connected. Connect the green LED in the same way on the opposite end of the switch.

  4. Connect one leg of a 330 ohm resistor to the shorter leg (cathode) of the red LED. Connect the other leg of the resistor to the end terminal of the switch, along the side where the 7805 Ground is connected. Do the same with another resistor and the green LED on the opposite end of the switch.

  5. Connect the red wire of the 9-volt battery clip to the 7805 Input pin. Connect the black wire of the clip to the 7805 Ground pin.

  6. Connect the 9-volt battery to the clip. One LED should light. Slide the switch to the other position. The first LED should turn off and the other LED should light.

  7. Tip

    If something doesn't light, check your connections on the switch. The terminals along the sides are connected, but the terminals are not connected across the switch. It is possible to have six different things connected to the DPDT switch, allowing two sets of four things to happen for each position of the switch. This is only one wiring configuration of the DPDT switch. Other configurations are possible.


    Always take safety precautions when soldering. Use safety goggles, wear proper clothing, ensure proper ventilation and never leave the iron unattended. If an LED glows a different colour or becomes hot to the touch, disconnect power immediately and check your connections. If the 7805 becomes hot, do the same.

Loading ...

Things You'll Need

  • Electronics breadboard with connection wires
  • Red general-purpose LED (low-voltage)
  • Green general-purpose LED (low-voltage)
  • Two 330 ohm resistors
  • 9-volt battery
  • 9-volt battery clip
  • 5-volt regulator (model 7805)
  • Soldering iron and solder wire (optional)

About the Author

Peter Syslo

Peter Syslo began freelancing in 2007. He has written reviews of horror films at the website Infernal Dreams and he continues to review film and related media on his blog, Cinebyte. Syslo holds a Bachelor of Science in psychology and music therapy from Marywood University.

Loading ...
Loading ...