{"id":52382,"date":"2017-04-09T13:36:40","date_gmt":"2017-04-09T12:36:40","guid":{"rendered":"https:\/\/www.microplanet.ma\/?post_type=product&#038;p=52382"},"modified":"2026-10-19T15:43:29","modified_gmt":"2026-10-19T15:43:29","slug":"keypad-clavier-matrice-4x3-12-touche","status":"publish","type":"product","link":"https:\/\/www.microplanet.ma\/en\/produit\/keypad-clavier-matrice-4x3-12-touche\/","title":{"rendered":"4&#215;3 12-Key Matrix Keypad"},"content":{"rendered":"<h3>4&#215;3 12-Key Matrix Keypad<\/h3>\n<div id=\"intro\">The 4&#215;3 12-key matrix keypad provides a versatile user interface for electronics and home-automation projects.<\/div>\n<p>This input device has 12 buttons arranged in 4 rows and 3 columns. When a key is pressed, it connects a row to a column so the controller can identify the key. It is suitable for projects that need several 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 3 columns<\/li>\n<li><strong>Number of keys<\/strong>: 12<\/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>: 7 pins (4 rows, 3 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. The scanning process is generally managed 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;3 12-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 7 pins to Arduino digital pins (for example, pins 2 through 8).<\/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\n\r\nconst byte ROWS = 4; \/\/ quatre lignes\r\nconst byte COLS = 3; \/\/ trois colonnes\r\nchar keys[ROWS][COLS] = {\r\n\u00a0 {'1','2','3'},\r\n\u00a0 {'4','5','6'},\r\n\u00a0 {'7','8','9'},\r\n\u00a0 {'*','0','#'}\r\n};\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}; \/\/ Connect\u00e9 aux pins des colonnes du clavier\r\n\r\n\r\nKeypad clavier = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);\r\n\r\n\r\nvoid setup() {\r\n\u00a0 Serial.begin(9600);\r\n}\r\n\r\n\r\nvoid loop() {\r\n\u00a0 char key = clavier.getKey();\r\n\u00a0 if (key) {\r\n\u00a0 \u00a0 Serial.println(key);\r\n\u00a0 }\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 using it.<\/li>\n<li><strong>Row and column declarations<\/strong>: <code>ROWS<\/code> and <code>COLS<\/code> 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 to display pressed keys in the Serial Monitor.<\/li>\n<li><strong>Reading keys<\/strong>: In the main <code>loop()<\/code>, <code>getKey()<\/code> reads a pressed key. If a key is pressed (<code>if (key)<\/code>), its character is displayed using <code>Serial.println(key)<\/code>.<\/li>\n<\/ol>\n<h4>Pinout<\/h4>\n<ul>\n<li><strong>L1 &#8211; L4<\/strong>: Connected to Arduino digital pins (for example, 9 through 6) for the rows.<\/li>\n<li><strong>C1 &#8211; C3<\/strong>: Connected to Arduino digital pins (for example, 5 through 3) for the columns.<\/li>\n<\/ul>\n<div><span style=\"font-size: 8pt;\">Keywords: matrix keypad, 4&#215;3 keypad, user interface, access control, 12-key keypad, matrix, keyboard.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The 4&#215;3 12-key matrix keypad provides a versatile user interface for electronics and home-automation projects.<\/p>\n","protected":false},"featured_media":52383,"template":"","meta":[],"product_brand":[],"product_cat":[61,72],"product_tag":[],"class_list":["post-52382","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 12 Touches 4x3 - MicroPlanet Maroc<\/title>\n<meta name=\"description\" content=\"Vente de Clavier Arduino Matric\u00e9 12 Touches 4x3 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-4x3-12-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 12 Touches 4x3 - MicroPlanet Maroc\" \/>\n<meta property=\"og:description\" content=\"Vente de Clavier Arduino Matric\u00e9 12 Touches 4x3 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-4x3-12-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\/118-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-4x3-12-touche\\\/\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x3-12-touche\\\/\",\"name\":\"Keypad - Clavier Matric\u00e9 12 Touches 4x3 - MicroPlanet Maroc\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x3-12-touche\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x3-12-touche\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/118-1.png\",\"datePublished\":\"2017-04-09T12:36:40+00:00\",\"dateModified\":\"2026-10-19T15:43:29+00:00\",\"description\":\"Vente de Clavier Arduino Matric\u00e9 12 Touches 4x3 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x3-12-touche\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x3-12-touche\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x3-12-touche\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/118-1.png\",\"contentUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/118-1.png\",\"width\":1000,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/produit\\\/keypad-clavier-matrice-4x3-12-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;3 12-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 12 Touches 4x3 - MicroPlanet Maroc","description":"Vente de Clavier Arduino Matric\u00e9 12 Touches 4x3 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-4x3-12-touche\/","og_locale":"en_US","og_type":"article","og_title":"Keypad - Clavier Matric\u00e9 12 Touches 4x3 - MicroPlanet Maroc","og_description":"Vente de Clavier Arduino Matric\u00e9 12 Touches 4x3 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.","og_url":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x3-12-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\/118-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-4x3-12-touche\/","url":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x3-12-touche\/","name":"Keypad - Clavier Matric\u00e9 12 Touches 4x3 - MicroPlanet Maroc","isPartOf":{"@id":"https:\/\/www.microplanet.ma\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x3-12-touche\/#primaryimage"},"image":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x3-12-touche\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/04\/118-1.png","datePublished":"2017-04-09T12:36:40+00:00","dateModified":"2026-10-19T15:43:29+00:00","description":"Vente de Clavier Arduino Matric\u00e9 12 Touches 4x3 pour Arduino, Au Maroc, livraison rapide \u00e0 domicile avec paiement \u00e0 la livraison.","breadcrumb":{"@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x3-12-touche\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x3-12-touche\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x3-12-touche\/#primaryimage","url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/04\/118-1.png","contentUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/04\/118-1.png","width":1000,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/www.microplanet.ma\/produit\/keypad-clavier-matrice-4x3-12-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;3 12-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\/52382","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\/52383"}],"wp:attachment":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/media?parent=52382"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_brand?post=52382"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_cat?post=52382"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_tag?post=52382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}