# is a two pin button the same as the arduino four pin button?

**URL:** <https://forum.arduino.cc/t/is-a-two-pin-button-the-same-as-the-arduino-four-pin-button/533619>\
**Category:** General Electronics\
**Created:** [June 27, 2018, 7:15am UTC](https://forum.arduino.cc/t/is-a-two-pin-button-the-same-as-the-arduino-four-pin-button/533619 "2018-06-27T07:15:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![curiousguy](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@curiousguy](https://forum.arduino.cc/u/curiousguy)\
**Post date:** [June 27, 2018, 7:15am UTC](https://forum.arduino.cc/t/is-a-two-pin-button-the-same-as-the-arduino-four-pin-button/533619/1 "2018-06-27T07:15:33Z")

</div>

I tried to use a 4 pin button as I didn't have any 2 pin buttons but it didn't work

this link is to Instructables where I tried to do a project with the Arduino 4 pin button  
(it came with the starter kit)

link: [https://www.instructables.com/id/StopIt-LED-Game-powered-by-arduino/](https://www.instructables.com/id/StopIt-LED-Game-powered-by-arduino/)

---

<div class="post-metadata">

**Author:** ![Jobi-Wan](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@Jobi-Wan](https://forum.arduino.cc/u/Jobi-Wan)\
**Post date:** [June 27, 2018, 7:53am UTC](https://forum.arduino.cc/t/is-a-two-pin-button-the-same-as-the-arduino-four-pin-button/533619/2 "2018-06-27T07:53:20Z")

</div>

Yes, they are the same, but those 4 pin buttons are internally connected like this:

 ![](https://europe1.discourse-cdn.com/arduino/original/4X/4/9/4/4943c660f2d8c3b706b74e9977b16d2aef7f0c3b.png)

So if you use the wrong 2 pins, i.e. 2 pins that are always connected, like A&D or B&C, then it does not work. You should use 2 pins that are normally not connected: A or D on one side, B or C on the other side.

---

<div class="post-metadata">

**Author:** ![MorganS](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/morgans/32/218718_2.png) [@MorganS](https://forum.arduino.cc/u/MorganS)\
**Post date:** [June 27, 2018, 7:55am UTC](https://forum.arduino.cc/t/is-a-two-pin-button-the-same-as-the-arduino-four-pin-button/533619/3 "2018-06-27T07:55:46Z")

</div>

Easier: use diagonal pins. A&C or B&D. Then it does not matter which way round it is installed.

---

<div class="post-metadata">

**Author:** ![ChrisTenone](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/christenone/32/219804_2.png) [@ChrisTenone](https://forum.arduino.cc/u/ChrisTenone)\
**Post date:** [June 28, 2018, 7:12am UTC](https://forum.arduino.cc/t/is-a-two-pin-button-the-same-as-the-arduino-four-pin-button/533619/4 "2018-06-28T07:12:50Z")

</div>

Or you can nip off two diagonal legs and it becomes a two pin button:  
 ![](https://europe1.discourse-cdn.com/arduino/original/4X/d/d/0/dd077deaae9560d2761aa5d2e9d2c6308b8550b0.gif)

---

<div class="post-metadata">

**Author:** ![MarkT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@MarkT](https://forum.arduino.cc/u/MarkT)\
**Post date:** [June 28, 2018, 9:27am UTC](https://forum.arduino.cc/t/is-a-two-pin-button-the-same-as-the-arduino-four-pin-button/533619/5 "2018-06-28T09:27:42Z")

</div>

A useful point to make, I think, is that components have datasheets (or should have) - all questions  
ought to have an answer in the datasheet. Its not impossible for some random manufacturer to come  
out with a 4-pin button switch with a different pin-out (unlikely, but not impossible) - so always check  
datasheets if you want to avoid mistakes...

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 2:16am UTC](https://forum.arduino.cc/t/is-a-two-pin-button-the-same-as-the-arduino-four-pin-button/533619/6 "2021-05-06T02:16:22Z")

</div>


