{"id":4351,"date":"2023-11-02T12:05:57","date_gmt":"2023-11-02T12:05:57","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=4351"},"modified":"2023-11-07T05:02:49","modified_gmt":"2023-11-07T05:02:49","slug":"8x8-led-matrix-max7219-tutorial-with-scrolling-text","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/8x8-led-matrix-max7219-tutorial-with-scrolling-text\/","title":{"rendered":"8\u00d78 LED Matrix MAX7219 Tutorial for Scrolling Text"},"content":{"rendered":"\n<p>In this tutorial we will learn how to control 8\u00d78 LED Matrix using the MAX7219 driver and the VEGA ARIES board.&nbsp;We will see how the scrolling text on the 8\u00d78 LED Matrix works.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows 10 or above\/Linux (64 bit)<\/li>\n\n\n\n<li>Arduino IDE<\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">VEGA ARIES Board support package<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Hardware Required<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v3.0 Board<\/li>\n\n\n\n<li>MAX7219 Dot Led Matrix Module<\/li>\n\n\n\n<li>USB type C to USB type A cable.<\/li>\n\n\n\n<li>Jumper wires<\/li>\n<\/ul>\n\n\n\n<p><strong>Not<\/strong><strong>e:<\/strong>&nbsp;All of the following boards can be used for this project<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.php\">ARIES v2.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\">ARIES v3.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesmicro.php\">ARIES Micro<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesdot.php\">ARIES DOT<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesiot.php\">ARIES IoT<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">ARIES v3.0 Board<\/h2>\n\n\n\n<p>The ARIES v3.0 is a fully indigenous and a \u201cMade in India\u201d product to get started with basic microprocessor programming and embedded systems. This board is built upon a RISC-V ISA compliant VEGA Processor with easy-to-use hardware and software. For more details about ARIES v3.0 boards please refer to the&nbsp;<a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\">ARIES development boards and Ecosystem<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"539\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/v3.png\" alt=\"\" class=\"wp-image-3192\" style=\"aspect-ratio:1.4304267161410018;width:247px;height:auto\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/v3.png 771w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/v3-300x210.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/v3-768x537.png 768w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">MAX7219 Dot Led Matrix Module<\/h2>\n\n\n\n<p>An 8\u00d78 dot matrix display typically has 16 pins, 8 for each row and 8 for each column. All rows and columns are wired together in order to reduce the number of pins.This technique of controlling a large number of LEDs with fewer pins is referred to as&nbsp;<strong>Multiplexing<\/strong>. While using this multiplexing technique you have to refresh the display all the time to keep the image stable. &nbsp;The MAX7219 Chip, which handles all of the control and refresh part. We just need to send serial commands through the 4-pin SPI interface, and it will take care of the rest.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"274\" height=\"155\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/l1.png\" alt=\"\" class=\"wp-image-3191\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Libraries Required<\/h2>\n\n\n\n<p>Download the&nbsp;<a href=\"https:\/\/github.com\/MajicDesigns\/MD_MAX72XX\">MD_MAX72XX<\/a>&nbsp;Library from&nbsp;<mark style=\"background-color:#d7d7d7\" class=\"has-inline-color has-black-color\">Tools &gt;&gt; Manage Libraries\u2026<\/mark><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"432\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Untitled-5-1-1024x432.png\" alt=\"\" class=\"wp-image-3026\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Untitled-5-1-1024x432.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Untitled-5-1-300x127.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Untitled-5-1-768x324.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Untitled-5-1-1536x648.png 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/Untitled-5-1-2048x864.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram<\/h2>\n\n\n\n<p>Now let\u2019s connect the 8\u00d78 LED Matrix to the ARIES v3 board.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"535\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/l3-1-1024x535.png\" alt=\"\" class=\"wp-image-3197\" style=\"aspect-ratio:1.9140186915887851;width:756px;height:auto\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/l3-1-1024x535.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/l3-1-300x157.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/l3-1-768x402.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/09\/l3-1.png 1308w\" 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><strong>MAX7219 LED MATRIX<\/strong><\/td><td><strong>ARIES V3.0 Board<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>3.3V<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>DIN<\/td><td>MOSI-0<\/td><\/tr><tr><td>CS<\/td><td>GPIO-10<\/td><\/tr><tr><td>CLK<\/td><td>SCLK-0<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><em><strong>Connection pins of MAX7219 8X8 LED Matrix &amp; ARIES v3.0<\/strong><\/em><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>Once we are done with the connections, let\u2019s power up the board. Make sure the Laptop\/Desktop\/PC which we\u2019re using should be preinstalled with Arduino IDE and VEGA ARIES Boards of latest version.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now,&nbsp;<strong>Open&nbsp;<\/strong>the Arduino IDE<\/li>\n\n\n\n<li>Make sure you have selected&nbsp;ARIES v3&nbsp;Board from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Board<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA Processor: ARIES Boards<\/strong>&nbsp;-&gt;&nbsp;<strong>ARIES v3<\/strong><\/li>\n\n\n\n<li>Enable the Flash Mode, <strong>Tools <\/strong>-&gt; <strong>Flash Mode<\/strong> -&gt; <strong>Enabled<\/strong><\/li>\n\n\n\n<li>Select Programmer as VEGA FLASHER from\u00a0<strong>Tools<\/strong>\u00a0->\u00a0<strong>Programmer<\/strong>\u00a0->\u00a0<strong>VEGA FLASHER<\/strong><\/li>\n\n\n\n<li>Also select appropriate port,&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Port<\/strong>&nbsp;-&gt;&nbsp;<strong>COM* (ARIES Board)<\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"398\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/toolsMenu.png\" alt=\"\" class=\"wp-image-4450\" style=\"aspect-ratio:1.9195979899497488;width:660px;height:auto\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/toolsMenu.png 764w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/toolsMenu-300x156.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Now, Open&nbsp;<strong>Files<\/strong>&nbsp;-&gt;&nbsp;<strong>Examples<\/strong>&nbsp;-&gt; Under&nbsp;<strong>Examples for ARIES v3<\/strong>&nbsp;<strong>-&gt;&nbsp;SPI -&gt;&nbsp;LEDMatrix -&gt; LEDMatrix_ScrollText<\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"918\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/scrollText.png\" alt=\"\" class=\"wp-image-4426\" style=\"aspect-ratio:1.0152505446623095;width:649px;height:auto\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/scrollText.png 932w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/scrollText-300x295.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/scrollText-768x756.png 768w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Now,&nbsp;<strong>Upload<\/strong>&nbsp;the sketch in ARIES v3 board .<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>Once the code is uploaded, <mark style=\"background-color:#dfdfdf\" class=\"has-inline-color\">&#8220;<em>Hello World<\/em> &#8220;<\/mark> will start scrolling on 8&#215;8 LED Matrix.  In order to change the text message, replace the string in loop function.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will learn how to control 8\u00d78 LED Matrix using the MAX7219 driver and the VEGA ARIES board.&nbsp;We will see how the scrolling text on the 8\u00d78 LED Matrix works. Prerequisites Hardware Required Note:&nbsp;All of the following boards can be used for this project ARIES v3.0 Board The ARIES v3.0 is a [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":4475,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,98],"tags":[95,76,31,24],"class_list":["post-4351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aries-with-arduinoide","category-training-2","tag-aries-v3-board","tag-c-dac","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/4351","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\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=4351"}],"version-history":[{"count":8,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/4351\/revisions"}],"predecessor-version":[{"id":4476,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/4351\/revisions\/4476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/4475"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=4351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=4351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=4351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}