Step 14: Choose your resistors
1)
If your LEDs came with a data sheet, there should be some ampere ratings in there. Usually, there are two ratings, one mA for continuous load, and mA for burst loads. The LEDs will be running at 1/8 duty cycle, so you can refer to the burst rating.
2)
The 74HC574 also has some maximum ratings. If all the LEDs on one anode column are on, this chip will supply current 8/8 of the time. You have to keep within the specified maximum mA rating for the output pins. If you look in the data sheet, You will find this line: DC Output Source or Sink Current per Output Pin, IO: 25 mA. Also there is a VCC or GND current maximum rating of 50mA. In order not to exceed this, your LEDs can only run at 50/8 mA since the 74HC574 has 8 outputs. This gives you 6.25 mA to work with.
3)
The transistors have to switch on and off 64 x the mA of your LEDs. If your LEDs draw 20mA each, that would mean that you have to switch on and off 1.28 Ampere.
The only transistors we had available had a maximum rating of 400mA.
We ended up using resistors of 100 ohms.
While you are waiting for your LED cube parts to arrive in the mail, you can build the guy in the picture below: http://www.instructables.com/id/Resistor-man/
Remove these ads by
Signing Up











































































































Visit Our Store »
Go Pro Today »




I = 6,25mA = 0,00625A
V = 5 - 3 = 2Vdc
R = V / R = 2 / 0,00625 = 320Ohm
If I used 100Ohm resistors, I would exceed the maximum current and break the 74HC574, wouldn't I?
I'd really appreciate anything that could help me, thank you very much :)
I = 20mA = 0.02 A
V = 5-3 = 2V
R = V/R = 2/ 0.02 = 100 Ohm
So that will have 20mA going through each output pin, which is well below the 35mA maximum.
I think this is right, but i could be wrong.
I searched some specs about this chip and TI tells the maximum ground current is 50ma .... per output. Which would give 400ma maximum.
Also The PN2222 can hold 600ma ,not 400ma.
Anyone tell me if i am wrong here?
For this project, the 74HC574 is OK. Although you will be drawing peak currents above 50mA, the average won't be 160mA even with the whole cube lit up. Probably closer to 100mA allowing for interrupt duty cycles (everything is "off" for a chunk of the latching time), and line and component losses in the wiring and transistors. I decided to use 74AC574 chips "just in case" and after running my cube for hours, they don't have any heat in them. Most of the effects only have around 20-100 LEDs on at any one time, which averages out at about 30mA per 74XX574. Well within their spec. If you had every LED lit for hours it might be a different story, but then you'd just have a big 512 LED lamp. There are better, simpler and cheaper ways of achieving this. :o)
Thanks!
I do not have Pro accounts can not doawloading ledcube 8x8x8.ban code can give me please a code ? if so please send me your mailbox: thangpc26_cool@yahoo.com
In short, I would not advise skimping on the resistors. If the resistor saw the same load every time, then yes, this would work, but this is a dynamic array which makes regulation much more difficult per layer.
As an example, lets compare the extremes. Say you have a regulated 5V supply, and use Blue LEDs. The V(f) for Blue is ~ 3.2V @ 20mA. For a single LED, you would want a resistor of approximately 90 ohms for current limiting. This is found by: (Vsource - Vf)/(Imax) = (5 - 3.2)/0.02 = 90. Use the next highest standard resistor value to ensure you don't exceed the standard max current of the device to ensure a long life.
The power dissapation by a 100 ohm resistor in this application would be: I^2R, or (Vdrop/Rresistor)^2*Rresistor = [(5-3.2)/100]^2*100 = 0.0324 Watts. It is typically good practice to oversize resistor power ratings compared to what you expect to see in service.
Now, if you have all 64 on at once:
64*0.02A = 1.28 Amp at max rating. The resistor choice for this scenario would then be: (5-3.2)/1.28 = 1.4 Ohms. We chose a 1.5 Ohm in this case, which makes the current: 1.8/1.5 = 1.2A, or 18.75mA per LED.
Power dissipation by this resistor is then: [(5-3.2)/1.5]^2 * 1.5 = 2.16 Watts. This means you should probably use a 5 Watt resistor, which is pretty large.
Now, if you use a 1.5 Ohm resistor and only 1 LED is on, you will almost certainly fry that LED. If you use a 100 Ohm and 64 LEDs are on, they may not even light up, or will be extremely dim due to the voltage drop in the resistor.
Any help would be appreciated.
Take a look at the schematic. The current gets drawn from 74HC574. Considering it's max current output is 50mA, LEDs actually can't draw more than that. That means that transistors sink 8*50mA = 400mA. What's more, we have 2 of those transistors for every line, therefore we could actually sink 800mA. Everything's fine :)
What's more, in PN2222 stylesheet it says that Collector Current - Continuous maximum rating is 600mA, not 400mA ;)
Thanks!
Would this be applicable/ advisable here? Could you do it for transistors?
My LEDs have:
Current: 25mA.
Forward voltage: 1.9V.
Could anyone advise on what value resistors to use?
I have been following this instructable very closely, choosing the exact same components as mentioned. But, would it be better to choose transistors that can output 1.6Amps (25mA x 64).
I am unable to see how you reached 100 ohms, what are the current and voltage of the leds that you used? (maybe then, i could work out where 100 ohms came from)
Thanks in advance
Ud=1.9V
U=5V
Ur=5-1.9=3.1V
R=Ur/I
R=3.1V/0.025A = 124 Ohm
100 Ohms come from
R=(5V-3V)/0.02A=2V/0.02A=100Ohm
I am little confused with the 74HC574 chips, since only one layer of cube are turn on at a time. So my question is, if all the 8 leds are turned on and it will required 20mA x 8 = 160mA for a 74HC574 chip to supply and fully lid all the 8 led. However, the max Icc for the chip is about 50mA and is it all the 8 led will be having some brightness issue?
any explanation will be appreciated.
could someone PLEASE explain (maybe with an example) how to choose the right resistor for "not so advanced" users!
thanks in advance
(please excuse my bad english, i´m austrian)
did i need to calculate all the values from the IC, transistors and LEDs together or what?
Its confusing
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=120645595496#ht_2977wt_1134