Ray wrote:
Those nicad C cells are 1.2V, not 1.5V. Thus, your resistors should be a bit smaller. However, 30mA is pretty high for most LEDs, so perhaps a larger resistor will let them live a bit longer.
The other issue is that charging the batteries when they are in series is a potential problem, since if one of the cells fails to charge, the other cells will get toasted.
Nicads like constant current at 0.1C, so a constant current charger of
150mA is appropriate for these guys. However, you also need to notice when they get charged up, and turn off the current until they drop some amount.A constant current source is easy to make out of an LM317, a reference, and a comparator. You turn off the LM317 by pulling the common output to ground using the comparator output. The comparator needs enough hysteresis to not turn on until it gets down to 4.6, and turn off at
4.8. A normal recharge circuit would wait until 4.4V, but for a system like this, seems like you would want to keep the batteries as high as possible without frying them with overcharge or trickle. 12V | Constant Current Charger 150mA V With shutoff at 4.8V, Turnon at 4.6V - | o--. .------------------------------------. | | | | .-. | | _____ | 1k| | | | | | ___ | | | '----------------)---------------|LM317|--|___|----. | '-' | |_____| 12R | | | | LM339 | ___ | | o----. | o-----|___|----o | | | | |\ | 10K | | .-. | '----|-\ | o--' 10k| | | ___ | >----------o | | | o------|___|---o----|+/ | 4.8V --- '-' | 1k | |/ | - | | K | | | | R - TL431A | ___ | | o----^ '-----|___|--------' | | | 22k | .-. | A | 11k| | | | | | | | '-' | | | | | -o----o------------------------------------------------' (created by AACircuit v1.28.5 beta 02/06/05You should also use a 12V relay, which is set up so that if the coil is powered, the LEDs are powered from a 5V regulator driven off of the 12V DC input; otherwise, they are powered from the batteries.
When the power goes out, the relay switches, and the LEDs are powered by the battery. The LEDs need their own resistors, of course.