John,
The reason your LEDs dimmed prematurely is to do with the way you chose to power them. LEDs on their own (not ones built in to an assembled lamp that is designed to run on batteries) are current driven devices. The supply voltage is unimportant (as long as it's above the LED forward voltage drop) as it's the current that needs to be regulated.
Most small LEDs need around 20mA to 30mA to run, any more and they will tend to prematurely fail. It doesn't matter if the supply voltage is 5V or 100V, as long as the LED current is limited to the right value.
One way of limiting current cheaply is to use a series resistor. This works OK for low voltage drops, but is problematic at high voltages because of the power loss (the resistor wastes a lot of power and gets hot).
Most ready-made, battery powered, bike LED lights use an array of LEDs with internal circuitry to allow the lamp to run on just one or two cells. This circuit provides a regulated current to the LEDs and allows the lamp to run consistently right up until the batteries run down. A resistor wouldn't work well for a lamp like this, as red LEDs need a minimum of around 2.2V or so to turn on. Here's an example that shows why these bike lamps use a proper current regulator:
- If the two cells in the lamp are new, they will give a voltage of about 3.2V.
- For 30mA through the LEDs, the dropper resistor would need to be (3.2 - 2.2)/0.03 = 33 ohms (for new batteries).
- Two end of life cells will be down to about 2.8V, so this 33 ohm resistor would now reduce the LED current to (2.8-2.2)/33 = 0.018, or 18mA. The result is a more than 50% drop in LED current that may reduce the brightness by an unacceptable amount.
In our case, most people will want to run their lights from their main battery pack. There are two ways to do this:
- use a ready-made bike lamp, intended to run on batteries, and then fit a voltage regulator to reduce the bike battery voltage to the bike lamp voltage (typically 3V), or;
- use ordinary LEDs and drive them with a current limited supply, either a dropper resistor or better still a decent current regulator.
For those who want to build their own lights from discrete LEDs, then a neat way around the current/voltage drop problem is to wire all the individual LEDs in the light in series. If you have 20 LEDs, with a forward voltage rating of 2.2V (check this for the particular LEDs you buy, the forward voltage varies quite a lot with LED type and colour) then if you wire them all in series you need at least 2.2 x 20 = 44V to start to turn them on. If you have a 60V battery, then you can get away with using a resistor to restrict the current through the chain of LEDs. If you wanted 30mA through the LEDs, then the resistor you'd need for this example would be (60 - 44)/0.03 = 533 ohms. The nearest preferred value is 560 ohms, which will work fine in this case. The resistor wastes a bit of power, so needs to be suitably rated. In this case the resistor power loss can be worked out by knowing the voltage across the resistor (60 - 44 = 16V) and the current flowing through it (30mA = 0.03A). Power loss is 16 x 0.03 = 0.48W, so a 1/2 watt resistor is just about OK. In practice, I'd go for a 1 watt rated one to give a bit of a margin.
Similarly, the power input to the LED array can be worked out, from the LED forward voltage drop and the current flowing through the array. For our 20 LED series array, this is 44V x 0.03A = 1.32W. This shows the relative power losses of using a resistor well, the total power used is 1.32 + 0.48 = 1.8W, and we are wasting 26% of this in the resistor.
There are fancier ways of regulating LED current, like the very efficient pulse drive circuits that many ready-made bike lamps use, but hopefully the above should make some of this LED stuff a bit clearer.
We still don't know what sort of LED light the OP is using, so we are still guessing as to whether or not the voltage regulation or current regulation approach is the right one in this particular case.
Jeremy