{"product_id":"6x6x5mm-4-pin-through-hole-tactile-push-button-switch","title":"6x6x5mm 4-Pin Through-Hole Tactile Push Button Switch","description":"\u003cdiv class=\"nznpd\"\u003e\n\u003cdiv class=\"nznpd__lead\"\u003e\n\u003cp class=\"nznpd__intro\"\u003eA tactile switch is a small push button that clicks when you press it and springs back when you let go, so it only connects while it is held down. This one is the common 6x6mm size with four through-hole legs, and it stands about 5mm from the board to the top of the button. The round button sits clear of the metal top, which makes it easy to press with a fingertip and lets it reach up through a thin case lid. Pick it when your board or parts list calls for a 6x6x5 switch, or when our shorter \u003ca href=\"\/products\/6x6mm-tactile-push-button-switch-smt-4pin-6x6x4-3mm-pack-10\"\u003e4.3mm 4-pin tactile switch\u003c\/a\u003e would sit too low.\u003c\/p\u003e\n\u003cp class=\"nznpd__intro\"\u003eUse it as a reset or mode button on an Arduino or ESP32 project, a menu button beside a small display, or a replacement for a worn button of the same size. It solders into a PCB or perfboard and its legs press into a breadboard across the centre gap. It switches signals up to 12V DC and 50mA, so for a motor or LED strip let the button signal your board and switch the load with a relay module or MOSFET. Sold per switch with a minimum order of 10. We also stock a \u003ca href=\"\/products\/tactile-push-button-switch-6-6mm-2-pin-through-hole-momentary-pcb\"\u003e2-pin 6x6mm switch in 5mm and 10mm heights\u003c\/a\u003e and a larger \u003ca href=\"\/products\/12x12mm-tactile-push-button-switch-4-pin\"\u003e12x12mm switch that takes push-on caps\u003c\/a\u003e.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eSpecifications\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__specs\"\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eAction\u003c\/span\u003e\u003cstrong\u003eMomentary, normally open\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eBody size\u003c\/span\u003e\u003cstrong\u003e6x6mm\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eHeight\u003c\/span\u003e\u003cstrong\u003eAbout 5mm, board to button top\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePins\u003c\/span\u003e\u003cstrong\u003e4 through-hole legs, 2 per side\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eLeg spacing\u003c\/span\u003e\u003cstrong\u003eAbout 6.5 x 4.5mm\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eButton\u003c\/span\u003e\u003cstrong\u003eRound, about 3.5mm across, black\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSuggested use\u003c\/span\u003e\u003cstrong\u003eSignals up to 12V DC, 50mA\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eWorks with\u003c\/span\u003e\u003cstrong\u003e3.3V and 5V boards\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eMinimum order\u003c\/span\u003e\u003cstrong\u003e10 switches\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eDatasheets\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__ds\"\u003e\n\u003ca class=\"nznpd__dsbar\" href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/SW-TACT-6X6X5-4P-Datasheet-Rev1.pdf\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download the 6x6x5mm 4-pin tactile switch datasheet (PDF)\"\u003e\n\u003csvg width=\"20\" height=\"20\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"\u003e\u003c\/path\u003e\u003cpolyline points=\"14 2 14 8 20 8\"\u003e\u003c\/polyline\u003e\u003c\/svg\u003e\n\u003cspan\u003eFull technical datasheet\u003c\/span\u003e\n\u003cspan class=\"nznpd__dsmeta\"\u003ePDF\u003csvg width=\"17\" height=\"17\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"\u003e\u003c\/path\u003e\u003cpolyline points=\"7 10 12 15 17 10\"\u003e\u003c\/polyline\u003e\u003cline x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"\u003e\u003c\/line\u003e\u003c\/svg\u003e\u003c\/span\u003e\n\u003c\/a\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\u003csection class=\"nznpd__block\"\u003e\n\u003cdiv class=\"nznpd__qs\"\u003e\n\u003ch3\u003eWiring \u0026amp; getting started\u003c\/h3\u003e\n\u003col class=\"nznpd__steps\"\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eFit the switch\u003c\/strong\u003e\u003cp\u003eOn a PCB or perfboard, push the four legs through and solder them. On a breadboard, sit the switch across the centre gap and press down firmly until the legs seat.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eUse two diagonal legs\u003c\/strong\u003e\u003cp\u003eThe four legs are two pairs. Each leg is joined inside the switch to the leg straight across the body from it, and pressing the button connects one pair to the other. Two legs at opposite corners always belong to different pairs, so wiring to a diagonal pair works whichever way round the switch sits.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eConnect it to your board\u003c\/strong\u003e\u003cp\u003eWire one of those legs to GND and the other to a digital pin, then set that pin to INPUT_PULLUP in your code. That turns on a resistor built into the board, so you need no other parts.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eCheck it works\u003c\/strong\u003e\u003cp\u003ePrint the pin to the serial monitor. It shows 1 with the button released and 0 while you hold it down. If it shows 0 all the time, both wires are on the same pair, so move one wire to the opposite corner. If one press registers as several, ignore changes for 20 to 50ms after each press.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\u003c\/div\u003e","brand":"NZN Electronics","offers":[{"title":"Default Title","offer_id":67768003756128,"sku":"SW-TACT-6X6X5-4P","price":0.99,"currency_code":"NZD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/SW-TACT-6X6X5-4P_01-hero.png?v=1794446630","url":"https:\/\/www.nznelectronics.co.nz\/products\/6x6x5mm-4-pin-through-hole-tactile-push-button-switch","provider":"NZN Electronics","version":"1.0","type":"link"}