MAX7219 8x8 Matrix Display Module
MAX7219 8x8 Matrix Display Module
Contents
1 Introduction
2 Specification of LED Matrix
3 Assembly Instruction
4 Usage
4.1 Hardware Installation
4.2 Software Programming
5 Resources
Introduction
This product is a serially driven 8x8 LED Matrix kit powered by MAX7219.
The 8x8 LED Matrix is easy to use and compatible with Arduino, and its LED brightness adjustment can be
implemented in software.
8x8 LED Matrix kit has many applications in real life, such as various types of electronic display panels. If
the LED matrix is not driven by any peripherals, it’ll waste the interface of devices, and the LED brightness
will be impaired due to insufficient power, so that we cannot get ideal display effect.
The LED matrix can be driven in two ways: parallel or serial. We usually drive it in the serial manner in
order to save interface. The serial-driven LED matrix actually dynamically displays the LEDs, i.e., displays
the LEDs row-by-row or column-by-column. The persistence of vision for humans is about 0.1s, so as long
as we can serially display all 8 rows/columns within 0.1s, we’ll see a complete character or pattern.
http://www.elecrow.com/wiki/index.php?title=LED_matrix_kit 1/7
20/10/2014 LED matrix kit - Elecrow
This product comes in the form of a kit or module. The kit includes the following components:
MAX7219
Electrolytic cpaacitor:10uF/25V
Resistor:10K
Capacitance:0.1uF
Typical Voltage: 5V
Operating Temperature: 0 ℃ – 50 ℃
Typical Temperature: 25 ℃
Assembly Instruction
This is a great beginner kit, easy to make even if you are have never soldered before. Please download this
step by step Assembly tutorials (http://www.elecrow.com/wiki/index.php?title=File:Installation_steps.pdf)
and then follow it to solder it.
Please pay attention that if it doesn't show as you wanted. it isn't that you soldered wrong. you need to
change the direction then assemble it.
Usage
Hardware Installation
Connection Wires
1. The 8x8 LED Matrix must be common-grounded with the Arduino module;
2. Connect Arduino pin 8 to DIN on the LED Matrix;
3. Connect Arduino pin 9 to CS on the LED Matrix;
4. Connect Arduino pin 10 to CLK on the LED Matrix;
5. Use independent power supply for the 8x8 LED Matrix Shield, and the supply voltage is 5V/2A.
http://www.elecrow.com/wiki/index.php?title=LED_matrix_kit 3/7
20/10/2014 LED matrix kit - Elecrow
Testing Steps
1.Wiring Instructions
http://www.elecrow.com/wiki/index.php?title=LED_matrix_kit 4/7
20/10/2014 LED matrix kit - Elecrow
4.Observation:The LED matrix should circularly display the digits 0 to 9 on LED screen first, then the
characters A to Z, as shown in the above figure.
Software Programming
Example code
unsigned char i;
unsigned char j;
/*Port Definitions*/
int Max7219_pinCLK = 10;
int Max7219_pinCS = 9;
int Max7219_pinDIN = 8;
http://www.elecrow.com/wiki/index.php?title=LED_matrix_kit 5/7
20/10/2014 LED matrix kit - Elecrow
{0x44,0x44,0x44,0x7C,0x44,0x44,0x44,0x44},//H
{0x7C,0x10,0x10,0x10,0x10,0x10,0x10,0x7C},//I
{0x3C,0x8,0x8,0x8,0x8,0x8,0x48,0x30},//J
{0x0,0x24,0x28,0x30,0x20,0x30,0x28,0x24},//K
{0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x7C},//L
{0x81,0xC3,0xA5,0x99,0x81,0x81,0x81,0x81},//M
{0x0,0x42,0x62,0x52,0x4A,0x46,0x42,0x0},//N
{0x3C,0x42,0x42,0x42,0x42,0x42,0x42,0x3C},//O
{0x3C,0x22,0x22,0x22,0x3C,0x20,0x20,0x20},//P
{0x1C,0x22,0x22,0x22,0x22,0x26,0x22,0x1D},//Q
{0x3C,0x22,0x22,0x22,0x3C,0x24,0x22,0x21},//R
{0x0,0x1E,0x20,0x20,0x3E,0x2,0x2,0x3C},//S
{0x0,0x3E,0x8,0x8,0x8,0x8,0x8,0x8},//T
{0x42,0x42,0x42,0x42,0x42,0x42,0x22,0x1C},//U
{0x42,0x42,0x42,0x42,0x42,0x42,0x24,0x18},//V
{0x0,0x49,0x49,0x49,0x49,0x2A,0x1C,0x0},//W
{0x0,0x41,0x22,0x14,0x8,0x14,0x22,0x41},//X
{0x41,0x22,0x14,0x8,0x8,0x8,0x8,0x8},//Y
{0x0,0x7F,0x2,0x4,0x8,0x10,0x20,0x7F},//Z
};
void Init_MAX7219(void)
{
Write_Max7219(0x09, 0x00); //decoding :BCD
Write_Max7219(0x0a, 0x03); //brightness
Write_Max7219(0x0b, 0x07); //scanlimit;8 LEDs
Write_Max7219(0x0c, 0x01); //power-down mode:0,normal mode:1
Write_Max7219(0x0f, 0x00); //test display:1;EOT,display:0
}
void setup()
{
pinMode(Max7219_pinCLK,OUTPUT);
pinMode(Max7219_pinCS,OUTPUT);
pinMode(Max7219_pinDIN,OUTPUT);
delay(50);
Init_MAX7219();
}
void loop()
{
for(j=0;j<38;j++)
{
for(i=1;i<9;i++)
Write_Max7219(i,disp1[j][i-1]);
delay(500);
}
}
http://www.elecrow.com/wiki/index.php?title=LED_matrix_kit 6/7
20/10/2014 LED matrix kit - Elecrow
http://www.elecrow.com/wiki/index.php?title=LED_matrix_kit 7/7