Tuesday 20 January 2015

pins - Why do some tactile switches have 4 terminals?


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
(source: pranelectronics.com)



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?



Answer



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


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...