LED Matrix With Arduino Made Easy

19,649

103

28

Introduction: LED Matrix With Arduino Made Easy

About: I love Arduino and Raspberry pi and High Voltage... i build robots and also other cool stuff so stay tuned !!

I am gonna teach you how to use a MAX7219 Led Matrix with arduino UNO and the best part is that it is super easy.

Step 1: What You Need ?

The parts list:

1. MAX7219 LED Matrix

2. M/F Jumper Wires

3. Arduino UNO

4. USB cable for arduino

5. Computer

Step 2: Wiring

There are 5 pins on the module that are connected in a way :

Vcc to 5v

Gnd to Gnd

DIN (DataIN) to Digital Pin 11

CS (LOAD) to Digital Pin 10

CLK to Digital Pin 13

Step 3: Programming !!

MAX7219.ino is a sketch of scrolling text. You can change the text that is scrolling on the matrix by changing the line in the sketch shown in the picture and writing what you want. This the link for the MaxMatrix library https://github.com/riyas-org/max7219. From it put the folder named MaxMatrix in you arduino libraries folder which is located in the documents folder

Step 4: Testing Results

It is totally wicked !! It doesn't look half as good in the pictures as it really is. In the pictures it looks like that the leds are bright but they are diffused leds and you can see it only when you build it. So what are you waiting for !!

Step 5: Thinking Ahead

You can wire 8 matrices together and use them with arduino still only using 3 pins. The CS, CLK, 5v and Gnd of all matrices are wired together and the DataOut of the first matrix is wired to the DataIn of the next matrix and so on. The center header pin opposite to header pins near the ic is the DataOut.

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    28 Discussions

    0
    Magicflea
    Magicflea

    Question 2 years ago

    Maybe a little off topic but....

    Would I be able to drill a hole(s) in the middle of the LED matrix, missing LED's and solder points, and it still be functional?

    0
    Arduino Tech
    Arduino Tech

    Reply 2 years ago

    probably no

    0
    Crux Australis
    Crux Australis

    Question 2 years ago

    Hi there. I get an error message that says

    Invalid library found in C:\Users\Administrator\Dropbox\Arduino\libraries\max7219-master:

    I've installed the MaxMatrix and max7219-master libraries.

    Any ideas on how I can fix this?

    0
    BraveSierra
    BraveSierra

    Question 2 years ago on Step 3

    I'm getting an error in line 11 when compiling the code. Can you help?

    FSJCEIJI4J6TSTH:11: error: 'prog_uchar' does not name a type
    PROGMEM prog_uchar CH[] = {
    ^
    C:\Users\Robert\SkyDrive\Documents\Arduino\LED Matrix Test\FSJCEIJI4J6TSTH\FSJCEIJI4J6TSTH.ino: In function 'void printCharWithShift(char, int)':
    FSJCEIJI4J6TSTH:164: error: 'CH' was not declared in this scope
    memcpy_P(buffer, CH + 7*c, 7);
    ^
    C:\Users\Robert\SkyDrive\Documents\Arduino\LED Matrix Test\FSJCEIJI4J6TSTH\FSJCEIJI4J6TSTH.ino: In function 'void printString(char*)':
    FSJCEIJI4J6TSTH:189: error: 'CH' was not declared in this scope
    memcpy_P(buffer, CH + 7*c, 7);
    ^

    0
    lrh18
    lrh18

    Answer 2 years ago

    change prog_uchar to const unsigned char

    0
    Fairly OldGit
    Fairly OldGit

    3 years ago

    Question :

    Is it possible to change the pin assignments for the CLK, & DIN pins if so, where/how do you do it ?

    0
    ArsS1
    ArsS1

    3 years ago

    how pin nummbers in mega 2560 - clk , data in???

    0
    Sayandeep Nayak
    Sayandeep Nayak

    Reply 3 years ago

    It is same as given above.

    0
    JimmyK7
    JimmyK7

    5 years ago

    Hi I have some problem see as below and need to help

    MAX7219.ino:8:23: fatal error: MaxMatrix.h: No such file or directory

    compilation terminated.

    Error compiling.

    Thank...

    0
    Arduino Tech
    Arduino Tech

    Reply 4 years ago

    Download the MAX7219 Library

    0
    Joe Moger
    Joe Moger

    Reply 3 years ago

    Where exactly do you download the library.

    0
    Arduino Tech
    Arduino Tech

    Reply 3 years ago

    Just search for MAX7219 arduino library and select the Github page and download it from there and put the downloaded folder in the library folder of arduino which is located in the documents folder. This the link for the library https://github.com/riyas-org/max7219 . From use the maxmatrix folder

    0
    LesB
    LesB

    3 years ago

    I would like to see this done with an RGB matrix

    0
    Arduino Tech
    Arduino Tech

    Reply 3 years ago

    It can be done but I don't have an rgb led matrix.

    0
    ShioriToshiko
    ShioriToshiko

    5 years ago

    How do I work the led matrix when it has 8 pins and I don't know which pin is which?

    I included pictures of what mine looks like, and it doesn't include the thing you have on yours with the five pins on it.

    hi.jpgindex.jpgledmatrix.jpg
    0
    Joe Moger
    Joe Moger

    Reply 3 years ago

    You need the MAX7219 IC.

    0
    Arduino Tech
    Arduino Tech

    Reply 5 years ago

    mine also has 16 pins but is multiplexed by max7219 IC in the module so it can controlled with 5 pins. Buy this module on amazon or some other site

    0
    ShioriToshiko
    ShioriToshiko

    Reply 5 years ago

    Is there any way to do this without the module? (I'm kinda broke right now... lol) It's okay if you don't know, I'm just asking.

    0
    Arduino Tech
    Arduino Tech

    Reply 5 years ago

    mine also has 16 pins but is multiplexed by max7219 IC in the module so it can controlled with 5 pins. Buy this module on amazon or some other site

    0
    pandya998
    pandya998

    3 years ago

    i downlode laibrary but not compail program