{"id":1678,"date":"2022-06-27T07:53:36","date_gmt":"2022-06-27T07:53:36","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=1678"},"modified":"2022-12-13T10:49:36","modified_gmt":"2022-12-13T10:49:36","slug":"4x3-matrix-keypad-with-aries-v2-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/4x3-matrix-keypad-with-aries-v2-0-board\/","title":{"rendered":"4\u00d73 Matrix Keypad with ARIES v2.0 Board"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface the 4\u00d73 Matrix Keypad Module to the Aries v2.0 Board.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Matrix Keypad<\/h2>\n\n\n\n<p>Most of the applications of embedded systems require keypads to take the user inputs, especially in the case where an application requires more keys , with simple architecture and an easy interfacing procedure, matrix keypads are replacing normal push buttons by offering more inputs to the user with the lesser I\/O pins. <\/p>\n\n\n\n<p>A matrix keypad consists of a set of push buttons or switches which are arranged in a matrix format of rows and columns. These keypads are available in configurations like 3\u00d74 and 4\u00d74 based on the application it is implemented for. <\/p>\n\n\n\n<p>A 4\u00d73 Matrix Keypad contains 12 buttons having 4 rows and 3 columns. It is most commonly used input device in many application areas like digital circuits, telephone communications, calculators, ATMs, and so on. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-34.png\" alt=\"\" class=\"wp-image-1685\" width=\"292\" height=\"296\"\/><figcaption class=\"wp-element-caption\"><strong><em>4\u00d73 &amp; 4\u00d74 <\/em><\/strong><br><strong><em>Matrix Keypad<\/em><\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram:<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Keypad-Matrix-1024x576.webp\" alt=\"\" class=\"wp-image-1687\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Keypad-Matrix-1024x576.webp 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Keypad-Matrix-300x169.webp 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Keypad-Matrix-768x432.webp 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Keypad-Matrix-1536x864.webp 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Keypad-Matrix-2048x1152.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connections:<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">   <strong> 4\u00d73 Matrix Display<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">                  <strong>Aries v2 Board<\/strong>                       <\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">R1<\/td><td class=\"has-text-align-center\" data-align=\"center\">GPIO3<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">R2<\/td><td class=\"has-text-align-center\" data-align=\"center\">GPIO4<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">R3<\/td><td class=\"has-text-align-center\" data-align=\"center\">GPIO5<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">R4<\/td><td class=\"has-text-align-center\" data-align=\"center\">GPIO6<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">C1<\/td><td class=\"has-text-align-center\" data-align=\"center\">GPIO7<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">C2<\/td><td class=\"has-text-align-center\" data-align=\"center\">GPIO8<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">C3<\/td><td class=\"has-text-align-center\" data-align=\"center\">GPIO9<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Connections Between the  4\u00d73 Matrix Display and  Vega 2.0<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<p>Now, for powering up the ARIES v2 board via USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v2 board, we have to use a micro USB type B to USB type A cable. The cable should be connected to <strong>UART0<\/strong> port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with VEGA SDK and Toolchain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure:<\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, build the example program for the TM1637 module by:<\/p>\n\n\n\n<p>cd examples\/gpio\/4\u00d73_keypad_demo\/<\/p>\n\n\n\n<p>Commands which are given to the terminal as follows:<\/p>\n\n\n\n<p>To clean the executable: <em> make clean<\/em><\/p>\n\n\n\n<p>To build the project: <em>make<\/em><\/p>\n\n\n\n<p>Now, we can transfer the built program to the board, before transfer please ensure that you have connected the board UART0 connector to the PC. Open a new terminal and execute the following command:<\/p>\n\n\n\n<p>sudo minicom aries<\/p>\n\n\n\n<p>Now we can see the minicom terminal opened and the board UART terminal is ready. Press Reset Button to set the Aries Board.:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-35.png\" alt=\"\" class=\"wp-image-1693\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-35.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-35-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-35-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p>Press&nbsp;<strong>CTRL+A<\/strong> and then press <strong>S<\/strong>&nbsp;to enter file sending menu and select&nbsp;<strong>xmodem<\/strong>&nbsp;by pressing&nbsp;<strong>Enter<\/strong> as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"420\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-36.png\" alt=\"\" class=\"wp-image-1696\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-36.png 850w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-36-300x148.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-36-768x379.png 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/figure>\n\n\n\n<p>In the next window, with&nbsp;the space bar,&nbsp;select the&nbsp;<strong><em>4x3_keypad_demo.bin <\/em><\/strong>file to be transferred. By pressing&nbsp;<strong>Enter<\/strong>, the transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p>After completing transfer the program will start to execute.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output:<\/h2>\n\n\n\n<p>We get the output as per input given by user or as per the key pressed by the user i.e. either <strong>1,2,3,4,5,6,7,8,9,*,0 or #.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"507\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/4X3-Matrix-keypad-1024x507.png\" alt=\"\" class=\"wp-image-1700\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/4X3-Matrix-keypad-1024x507.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/4X3-Matrix-keypad-300x148.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/4X3-Matrix-keypad-768x380.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/4X3-Matrix-keypad-1536x760.png 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/4X3-Matrix-keypad.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface the 4\u00d73 Matrix Keypad Module to the Aries v2.0 Board. Matrix Keypad Most of the applications of embedded systems require keypads to take the user inputs, especially in the case where an application requires more keys , with simple architecture and an easy interfacing procedure, [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14,1],"tags":[],"class_list":["post-1678","post","type-post","status-publish","format-standard","hentry","category-getting-started","category-tutorials","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=1678"}],"version-history":[{"count":27,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1678\/revisions"}],"predecessor-version":[{"id":2264,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1678\/revisions\/2264"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=1678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=1678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=1678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}