Using 8×8 Dot Matrix LED With Arduino & Its Cascade Connection

by Electropeak in Circuits > Arduino

4553 Views, 3 Favorites, 0 Comments

Using 8×8 Dot Matrix LED With Arduino & Its Cascade Connection

Dotmatrix_arduino.jpg

You can read this and other amazing tutorials on ElectroPeak's official website

Overview

In this tutorial, you’ll learn how to use a 8×8 dot matrix LED module with IC MAX7219. At the end, you’ll be able to display any shape or text on one or more Dot matrix easily, fixed or scrolled, using only 4 digital pins of arduino.

What You Will Learn:

  • What dot matrix LED is
  • How to use Dot matrix LEDs with Arduino
  • Displaying specific shapes on a Dot matrix LED module
  • Cascading two Dot matrix LEDs

What Is Dot Matrix?

dot.png
d.jpg

Dot Matrix LED 8×8 is an array of LEDs that you can display particular numbers, letters, and shapes on it. Dot matrixes are indicated by the number of rows and columns. The most popular type of Dot Matrix is its 8×8 type, which provides 64 LEDs in 8 rows and 8 columns.

To control the Dot Matrix 8×8 simply, you should connect each row and each column to a digital pin, which means you need 16 digital pins! So it’s not a proper way.
To control Dot Matrix, there are modules based on MAX72xx ICS which need to connect to 4 digital pins instead of 16. You can also connect multiple Dot Matrix (up to 8) to each other without needing any extra pin and cascades them.

How to Interface Dot Matrix Module W/ Arduino

Circuit

Dotmtrix_simple.jpg

To connect the Dot Matrix to Arduino, simply connect the Vcc and GND pins to 5V and GND Arduino, and the DIN, CS, and CLK pins of dot matrix can be connected to any digital pins of arduino.

Code

1.png

There are various libraries for Dot matrix and Arduino. The Ledcontrol and MaxMatrixlibraries are two of the most common libraries, both have the same structure.

Now upload the code on your Arduino board.

You can see some of the most important functions of this library in the above table.

Displaying Specific Shapes on Dot Matrix

dot-matrix-8x8-tutorial-teaser.gif

To display your particular shapes on the Dot Matrix, just turn the LED light pattern into a bit string. To do this, you can get help from online tools like this. Design your shape and copy the generated code to Arduino, then upload it on your board.

You can also create and display numbers and letters by this method.
To insert common numbers, letters, and symbols, you can use the code3 strings and functions:

Cascading Two Dot Matrix LED Modules

One of the interesting features of the Dot Matrix module are ability to connect multiple (up to 8) modules and display cascading information on them.

Circuit

Dotmtrix_Cascade.jpg

To do this connect Dout from the first module to Din of the next module and connect other pins with the same name to each others.

Code

dot-matrix-pacman-2.gif

Now upload the above code on your Arduino and see the result.

Note
Do not forget that you are only programming the first module directly.

Downloads