{"id":52378,"date":"2017-04-09T13:29:04","date_gmt":"2017-04-09T12:29:04","guid":{"rendered":"https:\/\/www.microplanet.ma\/?post_type=product&#038;p=52378"},"modified":"2026-10-19T15:43:29","modified_gmt":"2026-10-19T15:43:29","slug":"keypad-clavier-matrice-4x4-16-touche","status":"publish","type":"product","link":"https:\/\/www.microplanet.ma\/en\/produit\/keypad-clavier-matrice-4x4-16-touche\/","title":{"rendered":"4&#215;4 16-Key Matrix Keypad"},"content":{"rendered":"<h3>4&#215;4 16-Key Matrix Keypad<\/h3>\n<div id=\"intro\">The 4&#215;4 16-key matrix keypad provides a versatile user interface for electronics and home-automation projects.<\/div>\n<p>This keypad is an input device with 16 buttons arranged in a grid of 4 rows and 4 columns. When a key is pressed, it connects one row to one column, allowing the controller to identify the pressed key. It is well suited to projects requiring multiple input options, such as security systems, access-control systems, and automation projects.<\/p>\n<h4>Detailed Specifications<\/h4>\n<ul>\n<li><strong>Configuration<\/strong>: 4 rows x 4 columns<\/li>\n<li><strong>Number of keys<\/strong>: 16<\/li>\n<li><strong>Operating voltage<\/strong>: 5V DC<\/li>\n<li><strong>Contact type<\/strong>: Membrane<\/li>\n<li><strong>Dimensions<\/strong>: 70mm x 77mm<\/li>\n<li><strong>Interface<\/strong>: 8 pins (4 rows, 4 columns)<\/li>\n<li><strong>Service life<\/strong>: Up to 1 million presses per key<\/li>\n<\/ul>\n<h4>Operation<\/h4>\n<p>The keypad scans its rows and columns to detect pressed keys. Pressing a key connects a row to a column, enabling the microcontroller to identify it. Scanning is typically handled by a library in development environments such as Arduino.<\/p>\n<h4>Applications<\/h4>\n<ul>\n<li><strong>Security systems<\/strong>: Entering codes for access control.<\/li>\n<li><strong>Automation<\/strong>: User interfaces for machines or home-automation systems.<\/li>\n<li><strong>Electronics prototyping<\/strong>: Development projects that require user input.<\/li>\n<\/ul>\n<h4>How to Use It with an Arduino Uno<\/h4>\n<p>You will need:<\/p>\n<ul>\n<li>1 x 4&#215;4 16-key matrix keypad<\/li>\n<li>1 x Arduino Uno<\/li>\n<li>Connecting wires<\/li>\n<li>Breadboard<\/li>\n<\/ul>\n<p><strong>Wiring instructions<\/strong>:<\/p>\n<ol>\n<li><strong>Connect the keypad<\/strong>: Connect its 8 pins to Arduino digital pins (for example, pins 2 through 9).<\/li>\n<li><strong>Use the Keypad library<\/strong>:\n<ul>\n<li>Install the Keypad library in the Arduino IDE.<\/li>\n<li>Use the code below to read keypad input.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>Arduino Uno code example<\/strong>:<\/p>\n<div class=\"hcb_wrap\">\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<\/div>\n<h4>Code Explanation<\/h4>\n<ol>\n<li><strong>Keypad library<\/strong>: The code includes the Keypad library to handle the matrix keypad. Install this library in the Arduino IDE before use.<\/li>\n<li><strong>Row and column declarations<\/strong>: The <code>ROWS<\/code> and <code>COLS<\/code> constants define the number of rows and columns. The <code>keys<\/code> array assigns a character to each key.<\/li>\n<li><strong>Row and column pins<\/strong>: The <code>rowPins<\/code> and <code>colPins<\/code> arrays specify the Arduino pins connected to the keypad rows and columns.<\/li>\n<li><strong>Keypad initialization<\/strong>: The <code>Keypad<\/code> object is created using the key map (<code>makeKeymap<\/code>), row and column pins, and keypad dimensions.<\/li>\n<li><strong>Serial communication setup<\/strong>: <code>setup()<\/code> initializes serial communication at 9600 baud so pressed keys can be shown in the Serial Monitor.<\/li>\n<li><strong>Reading keys<\/strong>: In the main <code>loop()<\/code>, the <code>getKey()<\/code> method reads a pressed key. If a key is pressed (<code>if (key)<\/code>), its character is printed with <code>Serial.println(key)<\/code>.<\/li>\n<\/ol>\n<h4>Pinout<\/h4>\n<ul>\n<li><strong>L1 &#8211; L4<\/strong>: Connected to digital pins (for example, 9 through 6) for the rows.<\/li>\n<li><strong>C1 &#8211; C4<\/strong>: Connected to digital pins (for example, 5 through 2) for the columns.<\/li>\n<\/ul>\n<div><span style=\"font-size: 8pt;\">Keywords: matrix keypad, 4&#215;4 keypad, user interface, access control, 16-key keypad, matrix, keyboard.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The 4&#215;4 16-key matrix keypad provides a versatile user interface for electronics and home-automation projects.<\/p>\n","protected":false},"featured_media":52379,"template":"","meta":[],"product_brand":[],"product_cat":[61,72],"product_tag":[],"class_list":["post-52378","product","type-product","status-publish","has-post-thumbnail","product_cat-developpement","product_cat-modules-capteurs","first","instock","sale","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>Keypad - Clavier Matric\u00e9 16 Touches 4x4 - MicroPlanet Maroc<\/title>\n<meta name=\"description\" content=\"Vente de Clavier Arduino Matric\u00e9 16 Touches 4x4 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.\" \/>\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-touche\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Keypad - Clavier Matric\u00e9 16 Touches 4x4 - MicroPlanet Maroc\" \/>\n<meta property=\"og:description\" content=\"Vente de Clavier Arduino Matric\u00e9 16 Touches 4x4 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/\" \/>\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-19T15:43:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/04\/117-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-touche\\\/\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-touche\\\/\",\"name\":\"Keypad - Clavier Matric\u00e9 16 Touches 4x4 - MicroPlanet Maroc\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-touche\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-touche\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/117-1.png\",\"datePublished\":\"2017-04-09T12:29:04+00:00\",\"dateModified\":\"2026-10-19T15:43:29+00:00\",\"description\":\"Vente de Clavier Arduino Matric\u00e9 16 Touches 4x4 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-touche\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-touche\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-touche\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/117-1.png\",\"contentUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/117-1.png\",\"width\":1000,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x4-16-touche\\\/#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&#215;4 16-Key Matrix Keypad\"}]},{\"@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":"Keypad - Clavier Matric\u00e9 16 Touches 4x4 - MicroPlanet Maroc","description":"Vente de Clavier Arduino Matric\u00e9 16 Touches 4x4 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.","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-touche\/","og_locale":"en_US","og_type":"article","og_title":"Keypad - Clavier Matric\u00e9 16 Touches 4x4 - MicroPlanet Maroc","og_description":"Vente de Clavier Arduino Matric\u00e9 16 Touches 4x4 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.","og_url":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/","og_site_name":"MicroPlanet Maroc","article_publisher":"https:\/\/www.facebook.com\/ArduinoPlanet\/","article_modified_time":"2026-10-19T15:43:29+00:00","og_image":[{"width":1000,"height":1000,"url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/04\/117-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-touche\/","url":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/","name":"Keypad - Clavier Matric\u00e9 16 Touches 4x4 - MicroPlanet Maroc","isPartOf":{"@id":"https:\/\/www.microplanet.ma\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/#primaryimage"},"image":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/04\/117-1.png","datePublished":"2017-04-09T12:29:04+00:00","dateModified":"2026-10-19T15:43:29+00:00","description":"Vente de Clavier Arduino Matric\u00e9 16 Touches 4x4 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.","breadcrumb":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/#primaryimage","url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/04\/117-1.png","contentUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/04\/117-1.png","width":1000,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x4-16-touche\/#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&#215;4 16-Key Matrix Keypad"}]},{"@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\/52378","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\/52379"}],"wp:attachment":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/media?parent=52378"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_brand?post=52378"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_cat?post=52378"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_tag?post=52378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}