Go Down

Topic: How to wire these 6 terminal toggle switches (DPDT) (Read 2843 times) previous topic - next topic


May 24, 2018, 03:16 pm Last Edit: May 24, 2018, 03:17 pm by oystersauce

I'm working on this Arduino-based Midi-Controller, I'm fairly new to electronics and I'm enjoying every bit of the learning process. However I'm confused about these toggle switches that I bought for my controller.

I didn't know what to watch out for and went with the cheapest ones I found - that turn out to be 125V 6A ON / ON 2 Position DPDT with 6 terminals.

Now, I am wondering if they at all suit my needs.
I planned them in for most basic switching functionality: Read the current position of the switch in my software and do whatever with the result. No secondary load, no external parts to control.

How do I wire this up with my arduino? Can I use them at all? (I still wonder why the specs 125V, 6A didn't strike me when I bought them.) Which terminals are what? I assume I need 3 of the terminals - one each for 5V load from the arduino, ground and signal to attach to an analog IN (can I use a digital in too?) And do I need resistors, as seen on some schematic diagrams that deal with switches?

Thanks a lot for your help!

Kind regards, stefan


May 24, 2018, 04:29 pm Last Edit: May 24, 2018, 04:30 pm by septillion
Then it's simple. Pick one side (row of three), connect middle pin to GND and one of the outer pins to a digital input. (or the other way around). Done! :D Don't forget to turn on internal pull up's.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake


Look here for the wiring for a DPDT toggle switch spec sheet

The 125 Vac and 6 amps is the maximum you can use the switch for.  Anything below that will be fine.

Yes you can use it for Arduino inputs (both analog and digital).

Please do not PM me with thread based messages.  If your thoughts are worth responding,  the group should benefit from your insight.


DP DT means Double Pole, Double Throw.

Double Throw means that the switch will connect one common pin (the one in the middle of each row of three, usually) to either of two pins (the ones on the end of each row of three, usually) - as opposed to a Single Throw switch that either connects two pins or doesn't.

Double Pole means that there are two independent switches (the two rows of three for an DPDT switch) connected to the same lever.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy


Thank you! Works like a charm. I didn't expect it to be that simple. :) I really appreciate this super supportive community!


In your case you really need only one input and two of the connections of the switch: GND to the middle, one of the other connections in that row two the pin, enable the pull-up.

Now if the switch is in one position the contact is open and the pin read HIGH, in the other position contact is made and the pin reads LOW. No need for a second pin.

If this is a three-position switch (where there's a middle position where both contacts are open), you need to connect the other side as well, to a second pin.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

Go Up