Electronic – Large LED Matrix

led

I been researching how to build a 12×24 LED Matrix. I found a couple of solutions. What looks the most attractive to me is daisy chaining 3 MAX7219 led drivers together. I am some what new to electronics and am not 100% sure what kind of voltage I will need to power this thing or if the MAX7219 drivers will be able to handle the current I need when all the LEDs are turned on. I'm hoping that someone can help me figure this out or lead me in the right direction to find what I'm looking for. Thanks!

Best Answer

I will not go into specific IC's since you might change your design. Instead I will go into the theory. Driving LED's is quite easy.

First:

There are different ways to drive LED's. The two main methods is by using a constant current or constant voltage source. LED's "operate" on current. Their intensity is generally someone proportional to the current and exponential to the voltage. Therefore, a constant current driver is generally used. When you use a constant voltage source and a resistor(the basic way) you are creating a rudimentary constant current source. Most driver chips use a constant current source.

With such a driver you do not need to supply resistors. You tell the driver how much current it is suppose to supply and it will supply that amount to the LED. Usually you "program" the current by using a resistor and the datasheet will tell you about how much current will be used for a given resistor. (you can use a variable resistor to allow you to adjust the intensity of the LED's after the fact)

Second,

LED's have specific current ratings that relate to how long the will live. Usually this number of around 1mA to 20mA for your average LED's. You need to figure out how bright you want your LED's to get some estimate of power usage. If you have a 64 driver chip, each using 10mA, then that is 640mA total. If the IC is 5V then 5V*640mA = 3.2W. This may be too much for the chip. Check the datasheets of the driver to find out. (and remember, these generally are absolute maximum ratings)

Also, the more current you use the more power the LED's dissipate this may or may not be an issue for the board. If you can't get rid of the heat then your LED's could burn up.

Third,

You can "daisy chain" IC's they have the capabilities without issue BUT this could potentially reduce the speed if you are doing fast updates(like graphics). Daisy chaining is very simple and the driver IC's usually have an SDI and SDO along with a clock. Your simply send your clock to all the chips in parallel(star routing) and connect the your uC to the SDI of one chip, then that chip's SDO to the SDI of the next chip, etc...

Using this method, you do have to worry about clock skew and such but for 3-4 chips it shouldn't be a problem.

Also, it will be faster if you use the uC to it's full advantage, and possibly easier. Most uP's can output at least 8 bits on a "port" at once. So you could drive up to 8 LED drivers at the same time. This, in theory, would be 8 times faster than if you daisy chained 8 LED drivers.

As far as your "voltage" question, it doesn't make a lot of sense. You use the voltage that is required. If the uP uses 5V, the LED drivers use 3V then you use 5V for the uP and 3V for the drivers.

In most cases though, you want to use the lowest voltage you can get away with. This allows you to reduce the power consumption. Before I said 64 LED's all using 10mA at 5V = 3.2W but at 3V it is 1.92W. Almost half(since you cut the voltage in half). BUT the LED's are just as bright(since they are still using 10mA)!!

So, if your uP can use 3V and your LED driver can use 3V then you drive it with 3V. (note that if you want to drive your LED's with a lot of current you might actually have to use a little more voltage. You do need some headroom but generally 3V is plenty)

LEDs:

N LED's all using a max of A amps at V volts will dissipate a total of N*A*V W. You can calculate this per driver to find out what each driver will dissipate. Make sure you have plenty of "room" from the absolute max values.

Obviously if you are only driving 2 LED's out of 10 the value will be different BUT we must calculate the worst case, if all 10 were on, else we will be sorry(unless we know it can never happen, then we have to find out how many).

So you have 288 LED's, If you use 10mA and 5V then that is about 14W. Pretty significant. That means your power supply has to supply 2.88A. (Thats assuming you are only driving LED's and no power losses).

If you drop that down to 1mA then that cuts all everything by an order of magnitude. Only 1.4W and .288A which is much more reasonable.

You shouldn't worry too much though, I've done a project with 500 LED's using 20 driver chips without any major issues. I had to use serial and parallel driving to get it all done but it worked without issues. I think I was using about 1mA or so per LED.

(I'm assuming you're not doing anything crazy like trying to make a torch(using high power LED's) or something)

Related Topic