Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am wondering why some tactile switches have 4 terminals instead of two? For example, take a look at these switches, like the image below:

Tactile Switches

What is the use of the two remaining pins? If the pins of the exact opposite side are always shorted then why don't they have just 2 pins?

share|improve this question
It does actually say in the blurb "4 Pin layout can be used as jumper leads." Possibly a clue there. – JIm Dearden Feb 21 '14 at 20:55
mechanical stability – jippie Feb 21 '14 at 20:56
As @JImDearden says, it makes it possible to build an inexpensive matrix keypad using a single-sided PCB, without requiring a lot of wire jumpers. – Dave Tweed Feb 21 '14 at 21:00
up vote 44 down vote accepted

I'm going to put David Tweed's comment into an answer, which it deserves.

The dual shorted pins allow inexpensive single-sided boards to be used for X-Y matrices of switches without requiring jumpers.

Here (from an NKK datasheet) are a couple examples of such layouts:

X-Y matrix (This would typically be scanned by a microcontroller or ASIC):

enter image description here

Common line (one side of each switch common, typically it might be connected to Vss or Vdd and a pullup or pulldown resistor (perhaps internal to a chip) would be required for each switch.

enter image description here

share|improve this answer
Would your average autorouter be aware of this "trick", or is it human engineering experience to optimize? – jippie Jul 7 '15 at 20:14
@jippie I don't think so.. my tact switch symbols have four pins and the netlist needs to contain information on which pin goes where (exactly, not just A or B). But autorouters are about useless on single-sided boards anyway! – Spehro Pefhany Jul 7 '15 at 20:31

Mechanical stability. When soldered down with four leads the part is can't move in any direction. The shorted pins makes the pinout slightly more versatile when routing a PCB. When introducing 2 extra pins for mechanical stability is probably cheaper (and more rugged) to build shorted pins than to add unconnected pins.

share|improve this answer

Think of a switch as being two staples (held in place by the plastic base) and something that can bridge between them. Such a design requires two non-moving pieces of metal plus a moving contact which doesn't have to flex much and a coil spring to keep that contact away from the pins. Such a design is more mechanically robust than using a flexible contact which is integral with one of the pins. Further, if one needs at least three solder connections on the board for mechanical stability, it's easier to use two identical "U"-shaped pieces of metal than it would be to have contacts which were only connected to one pin, and then need other pieces of metal for the other mechanical connections.

share|improve this answer
Yet three pin and two pin switches are also common. – Passerby Feb 22 '14 at 3:29
@Passerby: Different switches have different requirements with regard to cost, compactness, key-bounce, reliability, etc. The design I described isn't ideal in all applications, but it's pretty common. – supercat Feb 22 '14 at 16:45

My guess is that 4 pins are for mechanical stability. Then since they are there anyway, someone in marketing had the brilliant idea to feature them as jumpers too. Think about it though, If you only had two pins there would be less of a need for a jumper.

share|improve this answer
No, you think about it: How would you lay out a large NxN matrix of buttons on a single-sided PCB without jumpers? It would require N-1 tracks to pass between the two pins of some of the switches. Having at least one split pin on each switch makes it trivial. – Dave Tweed Feb 21 '14 at 21:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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