Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« on: September 12, 2011, 02:07:04 pm » |
I'm planning a 24x16 LED matrix using these: http://www.us.kingbright.com/images/catalog/SPEC/APT3216SYCK.pdfThe sheet says forward voltage is 2v and peak forward current is 175mA @ 10% duty cycle. The LED resistor calculator says I'll need 18 ohm resistors for this. If my duty cycle will be 6.25% (1/16th instead of 1/10th), is it a bad idea if I don't use any resistor to limit current on the LEDs? Thanks
|
|
|
|
|
Logged
|
|
|
|
|
Norway
Offline
Full Member
Karma: 0
Posts: 104
Have you thought it over before asking?
|
 |
« Reply #1 on: September 12, 2011, 02:13:30 pm » |
I would not take a chance on that one. A program hickup can ruin your project, and that for a 1 cent component. Use the components as calculations indicate and do not gamble with that.
|
|
|
|
|
Logged
|
2B || !2B
... bonding electrons and bits!
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16583
Available for Design & Build services
|
 |
« Reply #2 on: September 12, 2011, 02:53:39 pm » |
Peak Forward Current: 175 mA, 1/10 Duty Cycle, >>> 0.1ms Pulse Width<<< How wide of a pulse were you planning? Were you planning to run from an ATMega's 40mA ABSOLUTE MAX ( and not intended for long term use either) output pin, or something else?
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #3 on: September 12, 2011, 04:24:22 pm » |
Thanks, I hadn't considered that. I want to use pwm but if I'm doing my math right I'll need > 625 hertz so I don't exceed 0.1ms / pulse. I'll have to check that out.
If I can get a refresh rate > 625 hz will it be OK to skip the resistors?
As far as driving the LEDs, I'm using a modified verison of Evil Mad Scientist's Peggy2: the rows will be driven by 4 ATMega pins demultiplexed to 16 lines via a pair of 74hc138s 3:8 decoders, which in turn connect to PNP transistors to supply enough current. The columns will be driven by 3 74hc595 shift registers, which will drive 3 ULN2803a Darlington arrays as the 595's can't supply enough power to continuously light 8 LEDs. (EMS's Peggy2 uses a STP16DP05 in place of the 595 + ULN2803, but I can't find that chip cheap enough to justify using it over the two chip solution).
Thanks again for your help.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25585
Solder is electric glue
|
 |
« Reply #4 on: September 12, 2011, 04:28:31 pm » |
If I can get a refresh rate > 625 hz will it be OK to skip the resistors? No, it is NEVER ok to not use a resistor, see:- http://www.thebox.myzen.co.uk/Tutorial/LEDs.htmlThe LED resistor calculator says I'll need 18 ohm resistors for this. No it doesn't you are putting the wrong numbers into it.
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #5 on: September 12, 2011, 04:39:38 pm » |
Hi Mike, I use this calculator: http://ledz.com/?p=zz.led.resistor.calculatorSupply voltage = 5v, voltage drop = 2v, desired current = 175mA, it says resistor = 18 ohm. Is this wrong? As far as needing the resistors -- I was pretty sure I do based on that web page (and some postings from you) but I've seen several multiplexed LED designs that don't use them so I wanted to check. Thanks
|
|
|
|
« Last Edit: September 12, 2011, 04:41:41 pm by Chris Magagna »
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25585
Solder is electric glue
|
 |
« Reply #6 on: September 12, 2011, 04:46:24 pm » |
While the figure might be right using such a low resistance value is meaningless. This is because the forward voltage drop is not that stable and repeatable from device to device. And it changes over time. The resistor bit is the linear part of the circuit and once you get below 50R or so it becomes an increasingly tiny part with the variations in forward voltage drop making drastic changes to the current. Try calculating the current with a resistor 5% lower than 18R, I assume you will use 5% resistors. Now calculate the current at the maximum and minimum forward volts drop given in the data sheet. Once you start trying to go over 100mA with an LED it is time to think about constant current drive.
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #7 on: September 12, 2011, 04:48:52 pm » |
Thank you for the information and advice Mike.
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #8 on: September 12, 2011, 09:33:34 pm » |
Mike et al, I've been researching your advice on constant current drivers and think I can use 3 TLC5916's ( http://focus.ti.com/general/docs/lit/getliterature.tsp?genericPartNumber=TLC5916&fileType=pdf) in place of the shift registers, Darilington arrays, and resistors. Since the chip can handle 960mA each LED should get 120mA if I use a 160 ohm resistor (if I did the math right). Please let me know if I'm missing anything; thanks again for your help.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25585
Solder is electric glue
|
 |
« Reply #9 on: September 25, 2011, 10:02:48 pm » |
The resistor value looks right. However running a chip at the maximum current stated in the data sheet rarely works because what you also have to consider is the power dissipation in the chip. Often the maximum current figure is not obtainable because the chip overheats first. You can calculate the maximum current based on the maximum chip temperature you want to use. See this for detailed:- http://www.thebox.myzen.co.uk/Tutorial/Power.html
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #10 on: September 26, 2011, 07:33:21 pm » |
Hi Mike,
Thanks again for all your help on my projects. I've been reading your links (and some of the other great documents you've written) and now (hopefully) have a better understanding of how everything fits together.
Chris
|
|
|
|
|
Logged
|
|
|
|
|
|