D
Daniel Pitts
Guest
TL;DR: I'd like some help with sourcing up-to 340ma from a 1-of-8
demuxer, and deciding on a 500ma power solution.
So, coming back to the LED driver design, which is at least a tad more
complicated than the newbie me thought
Please pardon my brain-dump
here. I have some questions near the end.
My existing design has been posted elsewhere, but lets ignore that and
see if I can "start from scratch" so-to-speak, and get the right design.
I have this matrix:
<http://www.seeedstudio.com/depot/datasheet/2088RGBMatrix.pdf.>
If I'm reading that right, it is a common anode. I'm not sure about
whether the "maximum ratings" section is for the entire device, or for
each LED package. Given the math below, it seems likely to be per LED
triplet.
I'll want to change the current value for each color to achieve as pure
white as possible if all colors are on.
For now, I'll assume about half as much current for RED, but close to
equal current for GREEN and BLUE. Lets pick 10ma, 20ma, 20ma for now.
Given the 2.2v typical drop on Red, and the 3.3v on green/blue, that
gives me, at full "on", 22mw+66mw+66mw=154mw. Hmm, that is just above
the spec. Maybe I need to go to 8,16,16?
So, I can drive one column by a tlc5916 per color.
<http://www.ti.com/lit/ds/symlink/tlc5917-q1.pdf>
According to the "Adjusting Output Current" section in the 5917 spec, if
I want a given output current, Iout, I would use the following formula,
if the default power-on settings are used:
Iout = (1.25V/Rext) * 15
Solving for Rext, I get Rext=(1.25v/Iout) * 15
This means that for the 8ma I'd use 2343Ί for red and half that, 1.2K,
for the green/blue. Now, since I don't want to overdrive these, I'd
probably round up. I'd also probably add a rheostat so I could
calibrate them more accurately.
Now, on to the other "side" of the LEDs. There are 8 lines, each one is
the common anode of 24 LEDS. This means that I would need to source a
max of (8ma + 16ma + 16ma) * 8 = 320ma. Ouch, that's higher than I'd hoped.
This is where I need some real help. Are there any 3-to-8 decoder ICs
that can source that kind of current? If not, is there some sort of 8
bit buffer IC that I can use, where the input is my 74HC238 decoder, and
the output can source that current?
I guess the alternative is to get 8 transistors, and drive them from the
decoder. Would BJTs be the right device for this job? Would I use NPN,
or PNP? I guess if I use the 74x238, which is active high, then I'd
want NPN, 74x138 is actually easier to acquire, so maybe I should
switch to that and use PNP?
So, once that is answered, the next part is the power source.
Apparently I'll need well over 340ma to power this thing. It seems like
rounding to 500ma would be good enough. I could power it off of a 5v
500ma AC/DC adapter.
I was hoping for something more portable though. t looks like if I
wanted to power it off of AA's, I'd be looking at either 3 cells, and/or
using a DC-to-DC converter to get 5 volts. The device would run full
brightness for about 2-3 hours per battery (or 1-2 for rechargable).
Although, in reality the brightness will be far less than that on
average. Suggestions on this would be appreciated.
One of my goals is to prototype this cheaply. I'm not looking to sell
this design, its mostly just for the experience of designing and
building it. The digital circuitry is pretty easy and straight forward.
The analog aspect is still kind of kicking me in the pants.
Anyway, if you've made it this far, thanks for reading through my
stream-of-consciousness. Any suggestions (even criticisms) are highly
appreciated.
Thanks,
Daniel.
demuxer, and deciding on a 500ma power solution.
So, coming back to the LED driver design, which is at least a tad more
complicated than the newbie me thought
here. I have some questions near the end.
My existing design has been posted elsewhere, but lets ignore that and
see if I can "start from scratch" so-to-speak, and get the right design.
I have this matrix:
<http://www.seeedstudio.com/depot/datasheet/2088RGBMatrix.pdf.>
If I'm reading that right, it is a common anode. I'm not sure about
whether the "maximum ratings" section is for the entire device, or for
each LED package. Given the math below, it seems likely to be per LED
triplet.
I'll want to change the current value for each color to achieve as pure
white as possible if all colors are on.
For now, I'll assume about half as much current for RED, but close to
equal current for GREEN and BLUE. Lets pick 10ma, 20ma, 20ma for now.
Given the 2.2v typical drop on Red, and the 3.3v on green/blue, that
gives me, at full "on", 22mw+66mw+66mw=154mw. Hmm, that is just above
the spec. Maybe I need to go to 8,16,16?
So, I can drive one column by a tlc5916 per color.
<http://www.ti.com/lit/ds/symlink/tlc5917-q1.pdf>
According to the "Adjusting Output Current" section in the 5917 spec, if
I want a given output current, Iout, I would use the following formula,
if the default power-on settings are used:
Iout = (1.25V/Rext) * 15
Solving for Rext, I get Rext=(1.25v/Iout) * 15
This means that for the 8ma I'd use 2343Ί for red and half that, 1.2K,
for the green/blue. Now, since I don't want to overdrive these, I'd
probably round up. I'd also probably add a rheostat so I could
calibrate them more accurately.
Now, on to the other "side" of the LEDs. There are 8 lines, each one is
the common anode of 24 LEDS. This means that I would need to source a
max of (8ma + 16ma + 16ma) * 8 = 320ma. Ouch, that's higher than I'd hoped.
This is where I need some real help. Are there any 3-to-8 decoder ICs
that can source that kind of current? If not, is there some sort of 8
bit buffer IC that I can use, where the input is my 74HC238 decoder, and
the output can source that current?
I guess the alternative is to get 8 transistors, and drive them from the
decoder. Would BJTs be the right device for this job? Would I use NPN,
or PNP? I guess if I use the 74x238, which is active high, then I'd
want NPN, 74x138 is actually easier to acquire, so maybe I should
switch to that and use PNP?
So, once that is answered, the next part is the power source.
Apparently I'll need well over 340ma to power this thing. It seems like
rounding to 500ma would be good enough. I could power it off of a 5v
500ma AC/DC adapter.
I was hoping for something more portable though. t looks like if I
wanted to power it off of AA's, I'd be looking at either 3 cells, and/or
using a DC-to-DC converter to get 5 volts. The device would run full
brightness for about 2-3 hours per battery (or 1-2 for rechargable).
Although, in reality the brightness will be far less than that on
average. Suggestions on this would be appreciated.
One of my goals is to prototype this cheaply. I'm not looking to sell
this design, its mostly just for the experience of designing and
building it. The digital circuitry is pretty easy and straight forward.
The analog aspect is still kind of kicking me in the pants.
Anyway, if you've made it this far, thanks for reading through my
stream-of-consciousness. Any suggestions (even criticisms) are highly
appreciated.
Thanks,
Daniel.