{"id":57513,"date":"2020-06-08T00:22:55","date_gmt":"2020-06-07T23:22:55","guid":{"rendered":"https:\/\/www.microplanet.ma\/?post_type=product&#038;p=57513"},"modified":"2026-10-20T13:16:44","modified_gmt":"2026-10-20T13:16:44","slug":"4x4-matrix-keypad-16-buttons","status":"publish","type":"product","link":"https:\/\/www.microplanet.ma\/en\/produit\/4x4-matrix-keypad-16-buttons\/","title":{"rendered":"4\u00d74 Matrix Keypad, 16 Buttons"},"content":{"rendered":"<h3>4\u00d74 Matrix Keypad, 16 Buttons<\/h3>\n<p>This membrane keypad has 16 buttons arranged in four rows and four columns. Pressing a key connects a row to a column, so a microcontroller can identify the key by scanning the matrix. It can provide input for access-control prototypes, automation and other electronics projects.<\/p>\n<h4>Listing specifications<\/h4>\n<ul>\n<li>Layout: 4 rows \u00d7 4 columns<\/li>\n<li>Number of keys: 16<\/li>\n<li>Contact type: membrane<\/li>\n<li>Interface: 8 pins, four row lines and four column lines<\/li>\n<li>Dimensions stated in the listing: 70 \u00d7 77mm<\/li>\n<li>Operating voltage stated in the listing: 5V DC<\/li>\n<li>Key life stated in the listing: up to 1 million presses per key<\/li>\n<\/ul>\n<p>Specifications are as stated by the seller. The keypad is a passive switch matrix; follow the controller board\u2019s logic-level limits. The source example connects the eight lines to Arduino Uno digital pins 2 through 9.<\/p>\n<h4>Arduino Uno example<\/h4>\n<p>Install a compatible Keypad library in the Arduino IDE. This source example defines a 4\u00d74 key map and prints each pressed key to the Serial Monitor at 9600 baud. The row and column pin assignments are set in the code.<\/p>\n<pre class=\"prism undefined-numbers lang-cpp\" data-lang=\"C++\"><code>#include &lt;Keypad.h&gt;\r\n\r\nconst byte ROWS = 4; \/\/ quatre lignes\r\nconst byte COLS = 4; \/\/ quatre colonnes\r\nchar keys[ROWS][COLS] = {\r\n{'1','2','3','A'},\r\n{'4','5','6','B'},\r\n{'7','8','9','C'},\r\n{'*','0','#','D'}\r\n};\r\n\r\nbyte rowPins[ROWS] = {9, 8, 7, 6}; \/\/ Connect\u00e9 aux pins des lignes du clavier\r\nbyte colPins[COLS] = {5, 4, 3, 2}; \/\/ Connect\u00e9 aux pins des colonnes du clavier\r\n\r\nKeypad clavier = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);\r\n\r\nvoid setup() {\r\nSerial.begin(9600);\r\n}\r\n\r\nvoid loop() {\r\nchar key = clavier.getKey();\r\nif (key) {\r\nSerial.println(key);\r\n}\r\n}<\/code><\/pre>\n<h4>Wiring used in the example<\/h4>\n<ul>\n<li>Rows L1\u2013L4: Arduino digital pins 9, 8, 7 and 6, respectively<\/li>\n<li>Columns C1\u2013C4: Arduino digital pins 5, 4, 3 and 2, respectively<\/li>\n<\/ul>\n<p>Confirm the row\/column order for your keypad before wiring; connector order can vary. Adapt the pin arrays in the sketch if your wiring differs.<\/p>\n<h4>How the example works<\/h4>\n<p>The Keypad library scans the row and column lines and maps a detected switch closure to the matching character in the key array. The sketch then prints that character over the serial connection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Membrane matrix keypad with 16 keys in a 4-row by 4-column layout and an 8-pin interface. Example Arduino code and wiring are included.<\/p>\n","protected":false},"featured_media":57514,"template":"","meta":[],"product_brand":[],"product_cat":[314,316],"product_tag":[],"class_list":["post-57513","product","type-product","status-publish","has-post-thumbnail","product_cat-developpement-en","product_cat-modules-capteurs-en","first","instock","taxable","shipping-taxable","purchasable","product-type-simple"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>4\u00d74 Matrix Keypad, 16 Buttons | MicroPlanet<\/title>\n<meta name=\"description\" content=\"16-key 4\u00d74 membrane matrix keypad with an 8-pin row\/column interface, for Arduino and other microcontroller projects.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"4\u00d74 Matrix Keypad, 16 Buttons | MicroPlanet\" \/>\n<meta property=\"og:description\" content=\"16-key 4\u00d74 membrane matrix keypad with an 8-pin row\/column interface, for Arduino and other microcontroller projects.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/\" \/>\n<meta property=\"og:site_name\" content=\"MicroPlanet Maroc\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ArduinoPlanet\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-20T13:16:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2020\/06\/117-a-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-boutons\\\/\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-boutons\\\/\",\"name\":\"4\u00d74 Matrix Keypad, 16 Buttons | MicroPlanet\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-boutons\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-boutons\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/117-a-1.png\",\"datePublished\":\"2020-06-07T23:22:55+00:00\",\"dateModified\":\"2026-10-20T13:16:44+00:00\",\"description\":\"16-key 4\u00d74 membrane matrix keypad with an 8-pin row\\\/column interface, for Arduino and other microcontroller projects.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-boutons\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-boutons\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-boutons\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/117-a-1.png\",\"contentUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/117-a-1.png\",\"width\":1000,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-boutons\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.microplanet.ma\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shop\",\"item\":\"https:\\\/\\\/www.microplanet.ma\\\/shop\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"4\u00d74 Matrix Keypad, 16 Buttons\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#website\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/\",\"name\":\"MicroPlanet Maroc\",\"description\":\"Arduino, Electronique DIY, Modules, Composants, Raspberry PI\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.microplanet.ma\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#organization\",\"name\":\"MicroPlanet\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/logo5.png\",\"contentUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/logo5.png\",\"width\":400,\"height\":133,\"caption\":\"MicroPlanet\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/ArduinoPlanet\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"4\u00d74 Matrix Keypad, 16 Buttons | MicroPlanet","description":"16-key 4\u00d74 membrane matrix keypad with an 8-pin row\/column interface, for Arduino and other microcontroller projects.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/","og_locale":"en_US","og_type":"article","og_title":"4\u00d74 Matrix Keypad, 16 Buttons | MicroPlanet","og_description":"16-key 4\u00d74 membrane matrix keypad with an 8-pin row\/column interface, for Arduino and other microcontroller projects.","og_url":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/","og_site_name":"MicroPlanet Maroc","article_publisher":"https:\/\/www.facebook.com\/ArduinoPlanet\/","article_modified_time":"2026-10-20T13:16:44+00:00","og_image":[{"width":1000,"height":1000,"url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2020\/06\/117-a-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/","url":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/","name":"4\u00d74 Matrix Keypad, 16 Buttons | MicroPlanet","isPartOf":{"@id":"https:\/\/www.microplanet.ma\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/#primaryimage"},"image":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2020\/06\/117-a-1.png","datePublished":"2020-06-07T23:22:55+00:00","dateModified":"2026-10-20T13:16:44+00:00","description":"16-key 4\u00d74 membrane matrix keypad with an 8-pin row\/column interface, for Arduino and other microcontroller projects.","breadcrumb":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/#primaryimage","url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2020\/06\/117-a-1.png","contentUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2020\/06\/117-a-1.png","width":1000,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-boutons\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.microplanet.ma\/"},{"@type":"ListItem","position":2,"name":"Shop","item":"https:\/\/www.microplanet.ma\/shop\/"},{"@type":"ListItem","position":3,"name":"4\u00d74 Matrix Keypad, 16 Buttons"}]},{"@type":"WebSite","@id":"https:\/\/www.microplanet.ma\/#website","url":"https:\/\/www.microplanet.ma\/","name":"MicroPlanet Maroc","description":"Arduino, Electronique DIY, Modules, Composants, Raspberry PI","publisher":{"@id":"https:\/\/www.microplanet.ma\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microplanet.ma\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microplanet.ma\/#organization","name":"MicroPlanet","url":"https:\/\/www.microplanet.ma\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microplanet.ma\/#\/schema\/logo\/image\/","url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2023\/05\/logo5.png","contentUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2023\/05\/logo5.png","width":400,"height":133,"caption":"MicroPlanet"},"image":{"@id":"https:\/\/www.microplanet.ma\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ArduinoPlanet\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product\/57513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/media\/57514"}],"wp:attachment":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/media?parent=57513"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_brand?post=57513"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_cat?post=57513"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_tag?post=57513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}