{"product_id":"4x4-membrane-matrix-keypad-16-key","title":"4x4 Membrane Matrix Keypad - 16 Keys for Arduino and ESP32","description":"\u003cdiv class=\"nznpd\"\u003e\n\u003cdiv class=\"nznpd__lead\"\u003e\n\u003cp class=\"nznpd__intro\"\u003eA 4x4 membrane matrix keypad with 16 keys (0 to 9, A to D, * and #) for adding number entry, a PIN code or a simple menu to an Arduino, ESP32 or Raspberry Pi Pico project. It is a passive switch matrix, so it works with both 3.3V and 5V boards, plugs onto male header pins or male jumper wires through its 8-pin 2.54mm connector, and has a peel-off adhesive back for mounting on a box or panel.\u003c\/p\u003e\n\u003c\/div\u003e\n\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\u003eLayout\u003c\/span\u003e\u003cstrong\u003e4 rows x 4 columns, 16 keys\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eKeys\u003c\/span\u003e\u003cstrong\u003e0-9, A-D, * and #\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eConnector\u003c\/span\u003e\u003cstrong\u003e8-pin female header, 2.54mm pitch\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePinout\u003c\/span\u003e\u003cstrong\u003ePins 1-4 rows, pins 5-8 columns\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eBoard voltage\u003c\/span\u003e\u003cstrong\u003e3.3V or 5V (no power pin)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePins used\u003c\/span\u003e\u003cstrong\u003e8 digital pins\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePanel size\u003c\/span\u003e\u003cstrong\u003eAbout 69 x 76mm\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eMounting\u003c\/span\u003e\u003cstrong\u003eSelf-adhesive back with liner\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eArduino library\u003c\/span\u003e\u003cstrong\u003eKeypad (Library Manager)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\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\/MOD-KEYPAD-4X4-MEMB-Datasheet.pdf?v=1792559530\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download the 4x4 membrane keypad 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\u003ca id=\"quick-start-guide\" class=\"nznpd__dsbar\" href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/MOD-KEYPAD-4X4-MEMB-QuickStart-Rev1.pdf?v=1792559530\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download the 4x4 membrane keypad Quick Start guide (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\u003eQuick Start guide\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\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eWhat's in the box\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__included\"\u003e\n\u003cdiv class=\"nznpd__qty\"\u003e1×\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cstrong\u003e4x4 membrane keypad\u003c\/strong\u003e\u003cp\u003eWith its flat tail and 8-pin connector fitted, adhesive liner on the back.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eGreat for\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__uses\"\u003e\n\u003cdiv class=\"nznpd__use\"\u003eA PIN-code door lock with a servo or relay\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eEntering numbers into a timer or counter\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eMenu buttons for an LCD or OLED project\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eA calculator or quiz game on an Arduino\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\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\u003eConnect the 8 pins\u003c\/strong\u003e\u003cp\u003eWith the keys facing you and the tail pointing down, pin 1 is the right-hand socket, marked 1 on the connector. Start from that socket and work leftwards: on an Uno or Nano, run keypad pins 1 to 8 to D9, D8, D7, D6, D5, D4, D3 and D2 with male-to-male jumper wires. No resistors or power wires are needed.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eInstall the Keypad library\u003c\/strong\u003e\u003cp\u003eIn the Arduino IDE, open the Library Manager, search for Keypad and install \"Keypad by Mark Stanley, Alexander Brevig\".\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eTest it\u003c\/strong\u003e\u003cp\u003eCopy the short test sketch from the Quick Start guide above (rowPins {9, 8, 7, 6}, colPins {5, 4, 3, 2}), choose your board and port, and upload. Open the Serial Monitor at 9600 baud: each key you press prints once.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eMount it\u003c\/strong\u003e\u003cp\u003ePeel the liner and press the keypad onto a clean, flat surface. Pass the tail through a slot instead of folding it hard at the edge.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003cp class=\"nznpd__note\"\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e On an ESP32, avoid GPIO 34 to 39 (input only, no pull-ups) and the boot pins 0, 2, 5, 12 and 15. Any other eight general pins work.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"NZN Electronics","offers":[{"title":"Default Title","offer_id":67680258850912,"sku":"MOD-KEYPAD-4X4-MEMB","price":3.49,"currency_code":"NZD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/4x4-membrane-keypad-hero.png?v=1792531449","url":"https:\/\/www.nznelectronics.co.nz\/products\/4x4-membrane-matrix-keypad-16-key","provider":"NZN Electronics","version":"1.0","type":"link"}