100%(1)100% found this document useful (1 vote) 277 views5 pagesArduino 8x8 LED Matrix
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
sania rro6
Arduino 8x8 LED Matrix
8x8 LED Matrix modules are now widely available, and fortunately they are easy to use
with our favorite Arduino microcontroller. 8x8 LED Matrix module have many applica-
tions in real life, such as various types of electronic display panels.
The LED matrix can be driven in two ways (parallel or serial). Here we drive it in the ser-
ial manner in order to save interface (needs only three data lines). The serial-driven
LED matrix actually dynamically displays the LEDs (row-by-row or column-by-column).
The persistence of vision for humans is about 0.18, so as long as we can serially display
all 8 rows/columns within 0.1s, we'll see a complete character or pattern.
Our project is infact an Arduino with Serially Interfaced MAX7219 Operates an 8X8 LED
Matrix to display a heart pattern. The MAX7219 IC is a serial input/output common-
cathode display driver that interfaces microprocessors to a'7-segment numeric LED dis-
plays of up to 8 digits, bar-graph displays, or 64 individual LEDs. For convenience, here
Page 1sue5,sania rro6
an 8x8 LED matrix, integrated with a MAX7219 IC setup, available as a pre-wired mod-
ule is used. Typical specification of this LED Matrix Module is shown below:
e Operating Voltage: DC 4.7V 5.3V
© Typical Voltage: 5V
© Operating Current: 320mA
Max Operating Current: 2A
Wiring Instructions
1. Connect Arduino pin8 to DIN on 8x8 LED Matrix
2. Connect Arduino ping to CS of 8x8 LED Matrix
3. Connect Arduino pinio to CLK of 8x8 LED Matrix
4. Connect an external 5VDC (1A) to VCC of 8x8 LED Matrix
5. Connect external 5VDC supply‘s GND, to the GND of 8x8 LED Matrix Module
Note that the 8x8LED Matrix Module should be common-grounded with Arduino, ie,
always remember to interconnect the Arduino GND terminal with the external 5VDC
power supply GND terminal. Connect pins according to the instructions given above,
and download the sketch into Arduino board. If everything seems right, you can power
up the Arduino (and the LED matrix) to see the LED matrix circularly displays a sweet-
heart" pattern!
Wiring Diagram
Page 2sur5sania rro6
€¥ OUN oUInpiy
Warning!
Before powering up, ensure that corresponding wires are properly connected.
Arduino Sketch
y*
Arduino Sweet Heart
* An Arduino & 8x8 LED dot matrix project
Using Max7219 IC
* Designed by T.K.Hareendran
* Tested at TechNode Protolabz
* 17 July 2014
* http://www.electroschematics.com
9. */
10.
11. unsigned char i;
12. unsigned char j;
13.
14, int Max7219 pinCLK = 10;
15. int Max7219 pincs = 9;
16. int Max7219 pinDIN = 8;
oyun newne
*
17.
18. unsigned char disp1[19] [8]={
19. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Heart
Pattern
20. 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
a1, 0x00, 0x00, 0x00, 0x40, 0x40, 0x00, 0x00, 0x00,
Page 3sur5