Dear friends welcome back. Today we
play with his popular 8 by 8 LED matrix. As you can see
the matrix is working fine and it displays some simple graphics and some text. The LED’s are very bright and the result is really impressive. The display consists of 64 red LED’s which are driven by this chip here. This is the MAX7219 in our case but in your case it could be
that MAX7221. You can buy this ready to use module presoldered on ebay for around 3.5 euros but if you wish
to solder it by yourself you can buy it for less. You can connect as many as 8 units like this and produce larger displays. That’s quite interesting but we will
try this in a future video. Today we will see how
to light up only a single unit. The connection with
the Arduino board is extremely easy we only need to connect 5 wires. So let’s begin The first pin is Vcc. Vcc goes to Arduino 5V. The second pin is Ground. Ground goes to Arduino Ground. The third pin is DIN. DIN, goes to digital pin 12. The fourth pin is CS. CS goes to digital pin 11. And the last pin is CLK. CLK goes to digital pin 10. Okay we’re now ready to power on Arduino and see if the matrix is working. Let’s do it. OK it is working fine. If I remove the LED light a little bit you can see how bright the matrix really is. Now let’s go to the computer and see the software side of this project. The
library that we are going to use in order to drive this LED matrix is
the LEDControl library. You can download it from this link and then you have to unzip it in your
Arduino-Libraries folder. Next we load the LCDemoMatrix program that you can find in a link in the description
of the video. Let’s take a look at the code. First we declare the pins that we
have connected on Arduino. Then I have created some byte arrays that contain the data
for each character or graphic that we display on the screen.
Let’s see an example. The first byte is the graphic
of a smile. This one is the data for character d. This one is for number 8 and so on. In order to display a byte array all we have to do is to call the printByte custom function and enter, as an argument, the name of the byte array. For example if we want to print the smile icon, all we have to do is to call the command printByte and enter the name of the byte array – smile. That’s it. Let’s now see how to create
your own byte arrays with your custom fonts or graphics. We are going to use a small program I found in which you design your graphic and it
quickly produces the data for the byte array. You can find a link for the program in
the description of the video. so let’s design a Greekcharacter, the Π. okay I have created the character and all I have to do is to click the generate button. It creates the byte array data we need. We copy it and we create a new byte array in our code. I have created this byte and let’s call it in our main loop. okay the first character that is going to be displayed when I power on Arduino is the character Π that we have
just created. Let’s see. That’s how easy it is to light
up this display. Before we go I’m going to show a small footage frow where I live. If you find this video useful
please hit the like button. It really helps.Thanks and see you next
week!


60 Comments

vincencius ct · July 1, 2017 at 3:36 am

when i try to verify its shown like this//Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Uno"C:Userssuwarno hpAppDataLocalTempRar$DIa0.842LCDemoMatrixLCDemoMatrix.ino:1:24: fatal error: LedControl.h: No such file or directory #include <LedControl.h>                        ^compilation terminated.exit status 1
Error compiling for board Arduino/Genuino Uno.This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.//any Solution ? pls help me

Pri Kundnani · July 2, 2017 at 8:38 am

HELP, IT SAYS 'printByte' was not declared in this scope

Krittibas Bairagi · July 16, 2017 at 1:33 pm

please give me the Form1 application link

Kuk Willson · July 28, 2017 at 7:40 pm

The PC 8×8 led matrix generator https://8x8ledmatrixgenerator.codeplex.com/documentation

Multimetr Oscilografich · August 4, 2017 at 7:50 am

Ты красавчик янки

jayson teodosio · August 5, 2017 at 4:05 pm

where is the link for the program to generate the byte array?

Stephen Lai · August 5, 2017 at 5:09 pm

this is an excellent tutorial!!! you are the man!!!

abdulrehman ikram · August 19, 2017 at 3:53 pm

plz help with this error" LedControl lc=LedControl(DIN,CLK,CS,0);" error does name a type

Readme .txt · August 27, 2017 at 8:44 am

NO LINK to the program 😛 3:24

JOAO GRANDAO · September 17, 2017 at 1:37 am

excelent tutorial, hello from México

HowToSurvive GT · October 22, 2017 at 4:53 pm

I've got an problem, i upload the code and everything is connected right but the result i get is just that first two led blinks in very short amount of time then one led just blinks in 1 second. Please help

Tejas N · October 28, 2017 at 4:48 am

https://www.youtube.com/watch?v=tFDiMw5QKZQ

The best explanation ever
After watching this I was able to write my own Library to run the MAX7219. You can write functions for driving the MAX7219 on any microcontroller.
I wrote it on 8051 mirocontroller.
If any one wants code put a reply to this

Giorgos Apostolopoulos · November 1, 2017 at 9:52 am

Ωραία που θα ήταν να τα έλεγες στα Ελληνικά…

Raptor Rachel · November 8, 2017 at 2:08 am

Thank you very much for this video! It is making my life a lot easier.

Ahmet Öztürk · November 20, 2017 at 12:25 am

Thanks for the narration.

James Oversteer · December 17, 2017 at 1:42 pm

How quickly can these boot up to play the image ? 

Lets say I could fit a few of these in my indicators and I want them to play a loop of arrows <<< or >>> depending which way I'm indicating, would the on and off signal from the car be too quick for the Arduino to react? Or would I need the Arduino to be powered on constantly and program it to run through the loops when another electoral input is sent to the board?

CORNFLAKES · January 3, 2018 at 7:42 am

Is it possible to crontrol the thing show in the display with a push button switch or a ir remote…. If yes then how…

ritu goel · February 4, 2018 at 11:08 am

I am getting below error on uploading the code:
Invalid library found in the folder examples and LED MASTER

Frode Molland · February 19, 2018 at 8:57 pm

Hi, great video! I just wonder, how to use 8 8×8 led matrix for a clock or other scrolling text? I would like the text be "correct way" with wiring up or down, hope you understand 🙂 rotate text

REVERSE ASK · March 25, 2018 at 4:50 pm

Error:redifination of 'int DIN'

Shane Walsh · March 29, 2018 at 9:35 pm

Hi there, I just recently bought a matrix with 4 of these 8×8 matrices together. I'd like to display the same byte on all 4 of the matrices at once. Do you know how I could modify this code to achieve this? Right now, it just illuminates all of the LEDs on one matrix, then illuminates on the LED matrix to the right, etc.. I've tried changing the value 0 in LedControl(DIN,CLK,CS,0) to 4 but that doesn't work either. Any help would be greatly appreciated! Thank you for your time

Angry Cat Owner · May 21, 2018 at 1:55 am

This is great stuff. How can we cascade the LED's now?

Osman Naim · July 9, 2018 at 6:50 am

Thanks.It's working nicely.

ravi panchal · July 13, 2018 at 5:00 am

It says PRINTBYTE IS NOT DECLARED IN THIS SCOPE

anandsherwood · July 30, 2018 at 2:55 pm

PROGRAMME LINK please reply

educ8s.tv · August 14, 2018 at 9:40 am

I hope you find this video useful. If you want to support the channel see how here: http://educ8s.tv/support-educ8s-tv/

Sam · August 16, 2018 at 9:40 pm

I have trouble because of printbyte function won't compile. I was woundering if anyone could help me?

Ilyes kamel · August 24, 2018 at 11:27 am

what is the name of the software you have programmed the led array

Anushka Eroshan · September 9, 2018 at 3:53 pm

how to use 2D array to show same patterns in the display…

Michael Latsky · September 19, 2018 at 1:44 pm

where is program link

ReaZaaa · October 2, 2018 at 9:14 am

Hey! Thanks for this great video and for the tipp with this little generator software, it's awesome! Is it possible to have several predefined letters/pictograms and switch through them with a button? I'm a bloody beginner, maybe you can give me a hint for the code 🙂
best regards

Techz Hunter · October 7, 2018 at 8:49 am

how the connection for Arduino mega 2560

The Truth About All. · October 17, 2018 at 5:20 am

Please make a video about how to control some DC motor by flysky controller .
I am from Bangladesh .

Vass · November 11, 2018 at 11:04 pm

Can you show an ROB version?

Hanno · November 27, 2018 at 2:28 pm

Thank you

Somebody · December 7, 2018 at 7:52 pm

Is there also a more simple code because somewhere(i cant find it again)i found one where you dont need to define all the leds sepreatly

Adeetya combe · January 3, 2019 at 8:32 am

Are you andreas spies?

Rob De Rop · January 12, 2019 at 3:11 pm

printByte doesnt work

weerobot · February 5, 2019 at 3:19 pm

Awesome…

Ashish Jangra · February 9, 2019 at 2:23 am

Sir can sent link for app to creating words in led matrix

Tim Pohl · February 10, 2019 at 1:01 pm

What's the Name of the programm

Samuel Chapman · February 10, 2019 at 1:29 pm

When I used the byte array function it gave me an error saying the function wasn’t recognized

Peter Lim · April 3, 2019 at 12:46 pm

Hello, I am a beginner in Arduino. Would you tell me in detail how to open files with 'ino' extension please? Thanks.

ali behrouz · April 4, 2019 at 1:09 pm

I am learning Arduino and I have learned a lot about Greece! thanks from Iran

Craig Lister · April 7, 2019 at 11:49 pm

Can I come live with you?

christian · May 7, 2019 at 3:25 pm

how can this be adapted to 5×7 led matrix?
any schematic?

林鉉峰 · June 6, 2019 at 8:05 am

有程式可以參考嗎?

Κωνσταντίνος Βολικός · June 6, 2019 at 2:39 pm

από την προφορά σε κατάλαβα!

saaieshithier · June 19, 2019 at 3:15 pm

Stop teaching people to use the delay() function.

Flash Gordons · September 7, 2019 at 11:57 am

Love the place you live! 😁

robotic world · October 6, 2019 at 7:45 pm

bro were is the programm of that some graphic something

Chamila Perera · October 25, 2019 at 2:13 am

Super

AtherOfTheVoid · October 29, 2019 at 5:13 am

This video made the concept of LED display programming click for me

Terry Genereaux · November 25, 2019 at 4:02 pm

I don't see the link for the char editor

3HStudio Official · November 29, 2019 at 3:38 pm

Where do I get the app where you can make your own byte?

Tomas Miron · December 11, 2019 at 4:39 am

where is the program for the code???

Tomas Miron · December 11, 2019 at 4:39 am

plisss answer!!!!!!!!!!!!

Ray S. · December 11, 2019 at 8:40 pm

Is there any noticeable strobing while this is operating ? is there a schematic for this ? which pin goes to what row or column ? I want to use the chip for my clock display i am working on.. A ring clock. discreet leds. 216 of them.

Alf · December 12, 2019 at 9:45 am

can this be a standalone display if you were just to suply power to it ? is there a way to get rid of the arduino completely?

M. Eren Ozyoldash · December 16, 2019 at 6:41 pm

This was super useful 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *