8x8 LED Matrix

In this project, we will learn how to use the 8×8 LED Matrix MAX7219 with Arduino. For that, we are going to interface an 8×8 LED matrix module with MAX7129 LED driver with Arduino Uno Board. An 8×8 LED matrix has 64 LEDs (Light Emitting Diodes) which are arranged in the form of a matrix as 8 rows and 8 columns. Hence it is named as an LED matrix.
We will generate different rolling LED patterns as well as shape and display it on LED Matrix using different Arduino Codes.


An 8 x 8 LED matrix display is used in this project to display the information. LED matrices are available in different styles like single color, dual color, multi-color or RGB LED matrix. They are also available in different dimensions like 5 x 7, 8 x 8, 16 x 16, 32 x 32 etc.The 8×8 LED matrix have 8 positive terminal & 8 negative terminals. The 8 negatuve terminals are 8 columns & 8 positive terminal are 8 rows.






MAX7219 LED Driver IC

The LED matrix can be driven in two ways. They are parallel (where each row or column are sent with parallel data) and serial (where the data is sent serially and an IC is used to convert this serial data into parallel data).





MAX 7219 is a common cathode display driver with serial input and parallel output. It is used to interface microprocessors and microcontrollers with 64 individual LEDs. The 8 x 8 LED matrix is connected to the MAX 7219. The data input is received from the Arduino board to the MAX7219.

CIRCUIT :

D10 --> LOAD or CHIP SELECT of LED module

D11 --> CLOCK of LED module

D12 --> DATA IN of LED module

+5V --> VCC of LED module

GND --> GND of LED module


CODINGS:

#include "LedControlMS.h"

//pin 12 is connected to the DataIn

//pin 11 is connected to the CLK

//pin 10 is connected to LOAD

#define NBR_MTX 1 //number of matrices attached is one

LedControl lc=LedControl(12,11, 10, NBR_MTX);//

void setup()

{

for (int i=0; i< NBR_MTX; i++)

{

lc.shutdown(i,false);

/* Set the brightness to a medium values */

lc.setIntensity(i,8);

/*and clear the display */

lc.clearDisplay(i);

delay(500);

}

}

void loop()

{

lc.writeString(0,"HOW2ELECTRONICS");//sending characters to display

lc.clearAll();//clearing the display

delay(1000);

}


Download Library from here : https://github.com/shaai/Arduino_LED_matrix_sketch/archive/master.zip

Comments

Popular posts from this blog

Voice Record & Playback Module

GSM Sim800L

GPS