is the info needed to make this calculation present? I will need to find a balance between cost/brightnesss/draw and want to come up with a rule of thumb for what is too much draw for battery X with a needed battery life of Y.
I understand some basics, but this chart is throwing me.
The key number is 120 mW. Convert the power of the battery into miliJoules and then divide that number by 120. That will give you the operation time in seconds. If you give us the battery specs we can help you further.
Well, the LED you linked to is rated at 30 mA. You probably don’t want to push it to its limit, so figure 15 mA, maybe 20 at the most. Batteries are rated in mA-hours, so just divide the mA-hour rating by the mA value and you’ll get hours. Then, since this is just a quick and dirty calculation and you aren’t taking into account things like battery discharge curves, just arbitrarily cut that number in half.
It won’t be an incredibly accurate number, but it will be in the right ballpark.
I would hope you wouldn’t try to directly power the LEDs from the batteries. The battery voltage on the linked batteries is 3.6 volts. The max forward voltage on the LED is 3.4 volts. Your LED will likely become a DED (what we electronic geeks call a Dark Emitting Diode, aka a burnt out LED).
LEDs are very non-linear devices. They go from too dim to POOF over a very narrow voltage range. It’s much easier to drive them with a current than a voltage. An easy way to regulate the current is to use a higher battery voltage and a resistor in series with the LED to limit the current.
R = ( Battery Voltage - LED Forward Voltage ) / LED current
You could also get fancy and use a current regulator like an LM317.
If I am extrapolating correctly here this will give more of a buffer before the battery will provide insufficent voltage to light the LED by having excessive voltage stepped down by a resistor.
next Q, will the resistor just shave off X amount of voltage at all times or will the reduced pressure of the lower voltage result in less resistance to it.
so in this case 3.6 - 3.4 = .2 /20 = .01 (ohms?)
Why do I think I would fry a dozen of those trying to figure it out…
Well… um… sorta. These equations are modeling diodes as a constant voltage device, which diodes aren’t. There are several ways to model a diode to make the math a bit easier. A constant voltage drop isn’t a terribly accurate model, but it makes the math easy. The equations are more accurate when the battery voltage is significantly higher than the forward voltage of the LED.
Also, as was previously mentioned, 20 mA is 0.020 amps.
http://www.cresttech.com.au/led_info_notes.html
Scroll down to “Driving LEDs with a 3 terminal regulator” down near the bottom of the page. Note that the LM317 is going to need a higher battery voltage (at least 6V).
Another serious problem is that the battery isn’t a constant-voltage device either. In fact, if you look at the datasheet on that page, you’ll see the voltage varies quite a bit depending on charge status, current and temperature. It can be as high as 4.2 volts.
So your choices are:
[ul]
[li]Use a resistor, and choose its value by assuming battery voltage of 4.2 V. And accept the fact that the LED will only be at max brightness with a freshly charged battery. [/li][li]Use a regulator, like the LM317 suggested above.[/li][/ul]