In this inst'able, I will show you how to create your very own 4x6
LED matrix as well as show you how to write code for it!

There is an animation creator program in step 4!

Here is one ANIMATION to get you excited about the project!

================================================================|
Hello everyone! I'm back with an all new Inst'able!

This Inst'able is for the electronic enthusiast/hobbyists that has basic
knowledge of the simple hardware used, and a good grasp of the
arduino programming language!

Email me at "JensenR30@GMail.com" if you have any questions about
the instructable.
Post Videos of your own LED Matrices!

FOLLOW ME FOR MORE GREAT INSTRUCTABLES!!

================================================================|

## Step 1: Hardware

For this project you will need:
• An arduino board;
• Twenty-four LEDs of the same color;
• Four transistors;
• Four 100ohm resistors;
• Four 1Kohm resistors;
• And a fair amount of wire.

"C" stands for Column while "R" stands for Row.
Columns are vertical, varying the Y axis
Rows are horizontal, varying the X axis.

Click Here for a bigger and better res. view of the above schematic

How The Hardware Works:
The hardware works by applying +5 volts to the desired column and row, and having GND wired to the arduino's GND pin. If I apply +5v only to C1, there will be +5v ready to be passed through all of the LEDs in column 1, but still has to go through the transistors in order to get to GND and there are no LEDs on.. On the other hand, if I apply +5v only to R1, that transistor will allow current to pass from any LED in row 1 to GND. But since there is no voltage applied to any of the columns, no LED is turned on.
From what I have said thus far, we can see that +5v must be applied to a Column and a Row at the same time for any LED to be turned on. Here is where we run into a problem: the only way to turn on 3 LEDs [(C1, R2), (C1, R1), and (C2, R1,) which are the three lowest and to the left] is to apply +5v to pins R2, R1, C1, and C2. The problem with this is that it will also turn on LED (C2, R2)! See step 2 for how to solve this problem, read on for the technical specs!

Technical stuff...
Schematic Pin Name-----------Digital Arduino Pin They Connect To
C1......................................9
C2......................................8
C3......................................7
C4......................................6
C5......................................5
C6......................................4

R1......................................10
R2......................................11
R3......................................12
R4......................................13

GND...................................GDN     Well, duh!     = )
================================================================|

## Step 2: Persistence of Vision! (POV)

In step 1--the hardware step--we couldn't turn on more than one LED. How do we fix this?
The answer to this question lies in our wonderful eyes, and their insistence in persistence.
When lights blink very rapidly, our eyes perceive them as being consistently on. We can use this to our advantage when creating animations. To see how the Matrix uses this, see step 4.

The Animation Creator file included in STEP 4 and is designed to blink each row really fast and can be used by the novice animator to achieve fame and fortune! ok, well, maybe not. but still!

## Step 3: Lights, Camera, Lights!

In the above photo are a few snapshots of the Matrix in action!
These are come of the animations I have made.
the animation creator that I created for the Matrix!
you will find all of the programs you will need in step 4.

## Step 4: Animation Creator!

Attached are some various animations as well as my Animation Creator for all of your matrix animation creating needs!

How the Animation Creator Works:

The program layout:

--The program first shuts off all of the pins, sets all of the pin variables to 0, and adds 1 to each cycle variable.
--Then we have the portion of the program where we specify which LEDs get turned on, and when they get turned             on.
--The cy, cy2, and cy3 variables are very useful in that they increase in one with each cycle of the loop. This allows             us to create our POV

if (cy > 1000){
ro = 3;
co3 = 1;
}

if (cy < 1000){
ro = 2;
co2 = 1;
}
=-=This means that if the "cy" variable is less than 1000,  LED (C3, R3) gets turned on. In addition, if the "cy" variable is greater than 1000, LED (C2, R2) gets turned on. Remember that upon each cycle, the ro and co1-co6 get reset to 0, as well as the digital pins reset to a LOW state. So the arduino does NOT turn one then the other on, in fact switched from LED (C3, R3) to (C2, R2).

=-=The next step is to turn this information into electrical signals going out to our matrix. If co1=1, C1 is turned HIGH.  likewise, if co5=1, C5 is turned HIGH. if ro=1, R1 is turned HIGH, and if ro=4, R4 is turned HIGH.

And that is the basic information that I you need to create your very own animations!
The Animation Creator attached has a clearly labeled section that instructs you where to put you own animation data!

## Step 5: Contact and Ideas

Email me at "JensenR30@GMail.com" if you have any questions about
the instructable, or if you'd like to
share with me a program of your own! Don't be shy!     =D

AND COMMENT!

<p>I made a 5x5 led matrix but am having difficulty in coding. Are you willing to help?</p>
<p>hello, this is a very nice project for beginners like me!! i would just like to ask why do we need those transistors?</p>
The transistors are used to connect or disconnect the cathodes of the LEDs to ground. This either: allows a row to e turned on by the arduino pins, or does not allow a row to be turned on.<br><br>I turn on one row of LEDs at a time.<br><br>If I didn't have the transistors, the current from 6 LEDs would go into one arduino pin. I did not want to do this, because the arduino pins can only handle so much current.
<p>Nice Idea, works well! </p><p>I made it in LEGO style. </p><p>Very good project to start with the arduinos. I've had a button to change between animations and add some new mines. </p>
<p>Cool! Thanks for posting some pictures! It looks nice.</p><p>It is really cool to see some other people building things with electronics.</p>
<p>coollll i made it in my first attempt </p><p>i loved it</p><p>working properly</p><p>excellent </p><p>thank youuuuuuuuuuuu</p>
cool did you create all these codes
Yup! I wrote each program.
<p>This was my first major soldering project, works like a charm :)</p>
excellent! I'm glad it worked out well for you.<br>Thanks for the comment.
<p>Hey, I found this cool Arduino board from online and its pretty cheap.</p><p>Check out the link... https://core-electronics.com.au/store/index.php/uno-r3-arduino-compatible.html/?acc=1ff1de774005f8da13f42943881c655f</p>
Hey there! <br> <br>I was wondering if you could use the same concept for a 4x4 Matrix?
absolutely. There is no reason you can't make a 4x4 LED matrix using the same method I did.<br>In fact, it would be easier and probably have a better picture as there are less things to solder, less programming, and less LEDs to turn on.
how to write a name in animation creator program plz give me details
what you are going to want to do is make several <strong>for()</strong> loops.<br /> each <strong>for() </strong>loop will loop through each row/column several times, turning on the correct LEDs to make a letter appear.<br /> <br /> simply execute one for loop after another and a series of letters will show up that you can make to be the letters of your name.<br /> <br /> you're going to have to be a little creative here. do what you think needs to be done. A good way to be creative with programming is to know what tools you have available to you. go to <em><strong>arduino.cc</strong></em> to learn all about how to program is C. This website is essential for using the arduino.<br /> <br /> i hope this helped!
how to write a name in animation creator program? plz help me i am new in c program
While the circuit / age ratio might be admirable it is a poor use of transistors. Basically the 100R resistor should not be in the emitter but in the collector. As you have it in the emitter current flowing through it will raise the voltage on the emitter, thus reducing the voltage between the emitter and the signal driving the base and so cutting off some base current. While this might work for you it is a poor design because it might not work for other transistor or transistor types because it needs a much higher gain from the transistor than you would otherwise need. It could cause the transistor to not be fully saturated and that will increase power dissipation in the transistor.
Just made my 4x4 matrix, without transistors only 8 resistors(actualy 4 are used). Codes placed here works just fine after I changed pin numbers
Do you have any images on what the matrix looks like without the plastic cover?
no. the matrix is built around the plastic cover. just to clarify, the LEDs are on the outside of the plastic, in case you didn't know...
do you have the pcb design for this
i do not, sadly. I put it together on a small plastic container.
would it be possible to use an existing LED matrix that is a 4x6 instead of making one?
If you can solder wires to the anode-columns and the cathode-rows, you should--in theory--be able to use it.<br><br><br>If you have cathode-columns and anode-rows<br>instead of anode-columns and cathode-rows you will have to wire the devise differently. Interestingly enough, you would have less brightness fluctuation. This is due to the fact that instead of six LEDs sharing the same transistor and resistor, we now have only four.
Thanks for the info it really helped
no problem!
good work i will start this buy arduino soon
hi <br>i am interested to design a led matrix display having dimention 4.5'' x 1.5'' . <br>will you suggest me how we can do it with less expenditure compair to the conventional one. Please also try to inform me what precautional measure i should take to run it for a long time continuasly -- ROSKY <br>
If you use <a href="http://ecx.images-amazon.com/images/I/31c9v6tJDSL.jpg">3mm LEDs</a>, you will be looking at a total of 38 LEDs wide by 12 LEDs tall. thats a total of 456 LEDs!!<br> The first thing I would like to point out is the power consumption that this will take. <a href="http://www.kingbrightusa.com/images/catalog/SPEC/WP7104LID.pdf">A high&nbsp;efficiency&nbsp;colored LED</a> consumes somewhere around 2&nbsp;Milliamps when at normal brightness. when you take 2Milliamps x 456 LEDs, you get a total of 912 Milliamps! that is basically one amp. I don't believe an arduino should be subjected to this kind of power consumption.<br> Secondly, You will need to write CODE upon CODE to program this thing! with a total of 456 LEDs to control, You will likely spend 10 hours of coding for every 5 seconds of animation.<br> In closing, good luck! and&nbsp;I expect it to be done by next monday. &nbsp; &nbsp;=D
Easy for you maybe. hehe J/K! It looks pretty cool. I have a sleeve of matrix displays here and a driver IC I never did anything with. One of these days ...