hi welcome to Arduino Tutorial from Robojax in this video I'm going to show you how you can use
Arduino on 8x8 matrix with the Mac seven two one nine IC chip to display ticks that you can see
on the screen so this is now printing row Robojax RO BO JAX and then there is a heart at the end so
this is a single character that is displayed but you can add additional characters so it can work
with multiple text and also after this I'm going to create another video that shows you how you
have multiple characters and also shift the text so it can move left or right whatever direction
you want so let's get started with a code and see how it works the original idea for this project
has come from the GitHub and you see the WiiU de so we need to have the this library LED control
dot H so I'm going to provide the link for you so you download it so you download this code so
when you click download this as a zip save it in use wherever you have and your download once the
download is completed so alright like downloaded here right click so and then use your zip and say
extract here once you do that you will have this folder here the folders and here is a sort of the
two files that you need so once if you download this with all this structure just right click copy
go to your do you know wherever your installer if you have installed it in c program files you will
go to your C and then Program Files wherever it is and then you will have an Arduino in my case
I have Arduino here and I go inside our Dino folder and inside the library just paste it I
copy and pasted that folder his here is here it is a needy control master and inside the source here
are the files so we will have and we will need that this file because this will make all the
functionality easy we don't have to do anything so now when you look for example this is the demo for
the matrix this is the matrix and then this is the original project that I've started with so
here if I go here and open under the examples you will now after installing that you will see that
led control here and here is a miss tricks so this is already added so you will see here so
let's just open it so here is us the mean files in the main file down the configuration that you
need is deep n 12 so once you see the package if you are in Canada we can share this across
Canada you can get it so this is the actual chip that is being used that Mac 7 2 1 9 and
they are just very simple circuitry nothing else so the chip is ready to use here so what
it does is that you have 8 by 8 matrix and the model that I'm using is here that you can see
LD 1 0 8 80s so some of the letters at the end will represent colors and others characteristic
of it so generally when they are selling this it will just work but if you face some problem
with another and cattle it's easily customizable so you insert this here and on this side we have
some pens that you have to understand because this can be connected side by side with multiple items
is the input and that's output the input means we connect these cables here and then we connect the
other items beside us to make a big text so we have very important for 4:05 rather so we have
one VCC which we connect it to the five volts of your Arduino so you see the red one is the in my
case the green is connected in my case green is connected to the five volts so this green
is connected to 5 volt and yellow is a ground so data n DN cascade selection how many we have
until we have clock this is sending the value of one two or three if you have one of this it will
be one until you have 2 it will be 2 or 3 and the last one is a clock so these 3 pins are connected
accordingly to the CF and ok now let's look at our configuration here so the orange is data
end and as you can see here data n is 4 12 so that orange is connected to the pin number 12
here so that orange is there and CF that is a cascading is connected to the 10 and then the
brown one is here that o'clock so Clark as you can see on the screen is supposed to be connected to
11 so numbered thus second parameter so that is 11 that's also you need positive or negative and
then the 3 for that so total is 5 cables then then this one when you connect this from n n is on this
side so we just insert with keeping this label towards yourself into the socket if this package
arrives not soldered you simply just put it and saw that it so it's very easy now let's power this
up so roj ax and then heart so this is running now let's go for explanation of the code so that the
first one so the first line is facing include that one so this is LED control dot H which I
showed you how so these are the pens this one is for one two or three of this module that you
have because I have only one I've said this to one and then this hundred is the delay between
displaying each of those so how much delay you want times I make it ten millisecond wait for H
so that is now fast so the main code runs here inside the loop here it is draw the matrix and
it says go to the row go to the column go to the single all those is done here so let me
comment this out comment it out we don't want we just want the matrix so the page on the internet
that was not friendly to be used so I copied it and put it here with a credit to the Miro Bozek
so this person has created this but I put it in on my website through which are calm so you
can easily use it the link will be the link for this one will be under the description so this
is a heart that is drawn so let me copy this so each character so this is one row this is just
the piece is for one rule this was for another project with it so we always ignore that just
after the eighth copy all this just comment between them okay so let's so let's look at
the last row the last clue only two at the middle or one you see here if I want this the last one to
be one if I click it to be one now unclick it will be zero so I'm copying this to just draw a heart
now access all I'm just putting that here and
paste it so this is a heart let me upload it and let's see it
the code is being uploaded so now the heart is already here rotated to the left side okay so
if you can make adjustment and change it to whatever way you want so now this is a heart
now any text that you want you can do that so let's go to the main project that I have but to
generate something else and set of the letter K pay attention here for this column it means
in every of these while adding one you see the three at the bottom does not have one so add it
one and then just draw whatever you want so that is whatever ways you want the K to look like and
then just copy this part and then create a new one for yourself [ __ ] so this is writing the
art as you can see this value changes video one two three four so we can write some kind
of program or loop to change this for us and we have only one line because it will make
it easier as you see in every of those we will have so many lines so just define for loop and
integers I equal to zero so that's the variable we are saying is equal zero initializing it and
then I smaller than it because we know it's it so it will be up to seven and then increment I
so I is incremented here so now this is my for loop this what this loop does is it just makes
I equals zero and then I equal one two three four five until it becomes 7 and then exits it
goes Linux so I put one of this line here and then just change this to I also we have to put
here I here is a code that I have here I'm going to put it on my website Roger calm the link is
at the description so this is all OB and then oh because oh is repeated twice I'm going to use the
same then J a X and then the heart here and then for the art for the all have created one loop it
says it row it goes with a row and then I have the delay and then clear it and make it the same row
just blank and then for the letters oh this is for oh you see I'm using oh this is capital o and then
I and then clearing it so I put this one so you know this piece is one letter and then the letter
start here B and then you got the idea o again so here is the second o that we have and then J
and then a and then X and then here I put love so that is the bite here an array of byte of eight
pieces it so I've and then after that we have just loop deleted everything so let me run this code
let me download this to the wood
so that is our OB OJ a X so Robo Jackson and heart whatever letter you want you can
just go to the link that I will provide and then just paste it here before I end
this tutorial so you have to know that some of the other starts will shut down is false
because it was keep it clear the display at the beginning so that is this it is important one
if you set it to five the intensity of this will be controlled so I hope it is viewable
on camera so now it's very light or maybe even Li you use you want to save battery
if something is running on battery or if you don't need much intensity I set it at one now
let's see the difference pay attention so now it's very and M now let's put it back to eight
so it's very bright thank you very much guys this was a tutorial to show you
how you can do it by 8 matrix LED using the max 7 2 & 9 chip all the code will
be available at our website the link is on the description of this video please don't
forget to subscribe if you're interested in a future update I'm going to create
a next video that shows multiple pieces of disconnected so you can have text and also
I will have a explain to you how you can shift the text on the screen left to right take it
you