Professional Documents
Culture Documents
Do you have Electronic Design is always on the lookout for new ideas. Do
an Idea for you have one? Our Ideas for Design articles are short and to
Design for the point, often with a single figure or program listing to help
Electronic explain the idea. If you would like to submit one, you can
2 1
VIn VIN BOOT L1
C2 C5 0.1 μF 2.2 μH
10 μF 8
3 PH VOut R3
EN U1 D1 10k
2. The added cir- TPS54332 B230-13
6 5 C6
cuitry in this ver- COMP VFB
22 μF R1 +5 V R4
sion of the dc-dc 20k 10k
4 9 R5
SS PGND 7 2
51 VC
converter permits 6 –
R9 Vfb +5 V
control of V Out by + 3
20.5k U2 4
varying a control TLC271
R2
–5 V R7 R6
voltage, VC. 10k 2k
C4 10k
C3 Vr VRef
0.01 μF
820 pF
C1 R8
1 μF 3.16k U3
LM4040D25
RECHARGEABLE NICKEL-CADMIUM (NICD) the battery during charging. Also, more full, to avoid overcharging. This simple
BATTERIES are widely used in consumer energy must be supplied to the battery and inexpensive charger overcomes
electronics because of their high energy than its actual capacity to compensate both problems. The cheapest and saf-
density, long life, and low self-discharge for energy loss during charging. est way to charge a NiCd battery is to
rate. Standard NiCd cells can be charged However, two problems must be charge at 10% of its rated capacity per
at different rates: a fast charge with high addressed when designing a charger hour for 16 hours. The battery pack
current, or overnight with low current. for them: how to set the proper charg- used contained two AA-size 1200-mAh
Regardless of the charge speed, a ing-current value, and how to stop the NiCd cells, so the battery should be
steady current should be provided to charging process when the battery is charged with 120-mA current.
IC2
In the charging circuit of Figure 1, a
LM78L05 constant charge current is generated by
+5 V 1 3
a current regulator comprising IC3 (an
+9 V
C1 3 LM317 LDO) and resistor R3, where R3
0.1 μF 2
1 IC3 Buzzer is 1.25 V/120 mA, about 10 Ω. Switch-
LM317
ing MOSFET Q1 (IRF520) was chosen
2 because of its very low open-state (con-
1
LED4 2
R3 ductive) impedance of 0.3 Ω.
100% pA5 10
The best charging practice is to use a
LED3
3 120 mA timer to prevent overcharging to con-
75% pA4 IC1 3
Battery + R2 tinue past 16 hours. This approach does
MC68HC908QT1 7
LED2 4 under 200k
50% pA0 charge – 2 Q2 not require an end-of-charge sensor,
pA3 2N3904
LED1 6 2 and it ensures a full charge. The tim-
25% pA1 R1
100k Q1 1 ing function is performed by microcon-
1 IRF520 troller IC1, which also reports the state
8
3 of charge via the LEDs.
Any microcontroller could be used in
1. The constant charging current is produced by an LDO and resistor and gated by Q1, which this project. Here, the inexpensive eight-
in turn is managed by an output of the microcontroller. A quartet of LEDs, also microcon- pin Motorola (Freescale) MC68HC-
troller-driven, indicates charge status to the user. 908QT1 microcontroller was used.
GO
GO TO ELECTRONICDESIGN.COM 65
Ideas for Design
any extra components. Since the microcontroller has five Start charge
outputs, one of them is used for charge triggering, and so Main
No
the four can be used for charge indication. To minimize the TOF = 1?
number of components, LEDs with built-in resistors are used Yes
(WP710A10YD5V, www.kingbrightusa.com). Increment counter
interval. After that, it lights the LEDs steady on. When charg-
ing is over, all four LEDs are on, so the user knows the charge Set LED2 on
The assembler code listing can be found with the online ver-
sion of this article at http://electronicdesign.com/power/simple- Set LED3 on
nicd-battery-charger-includes-charge-indication. Yes
CNT >MAX_CNT?
The LED blinking period is set at one second. The built-in No
oscillator of the microcontroller generates a frequency of 12.8 Toggle LED4
MHz and provides a one-cycle duration of 312.5 ns. By setting
the timer prescaler to 64 and timer modulo register to 50,000
Set LED4 on
(C350H), the timer overflow (TOF) period is equal to one sec-
Stop charge
ond (0.3125 μs × 64 × 50,000). The program toggles the LED
at each TOF period. End
The overnight “long” charge lasts 16 hours, with counter
constant MAX_CNT calculated as 16 × 60 × 60 = 57,600 2. The flowchart shows the straightforward level-check/step-
(E100H). Any maximum charge time can be set in the same through iteration sequence of the code for driving the charge-indi-
way. Obviously, it’s not convenient to wait for 16 hours to test cation LEDs.
the program, and a period such as 20 minutes, for example,
would be more practical.
For that shorter period, constant MAX_CNT should be set IDEAS FOR DESIGN WANTED
to 20 × 60 = 1200 (04B0H). The duration of each of four time
intervals will then be automatically set by firmware once the Send us your Ideas For Design. We’ll pay you $150 for every Idea For
Design that we publish. In addition, this year’s top design as selected
maximum charge time is entered.
by our readers will earn an additional $500, with two runners up each
This approach is very flexible and can be applied to charge receiving $250. You can submit your Ideas For Design via:
any NiCd battery by choosing resistor R3 accordingly. In addi- t&NBJMSJDIBSEHBXFM!QFOUPODPN
tion, nearly any type of microcontroller can be used, because OR BY
the program is simple and uses only standard instructions. t1PTUBMNBJMUP
Ideas For Design
&MFDUSPOJD%FTJHO
1166 Avenue of the Americas, 10th Floor
ABEL RAYNUS is an engineer with Armatron International New York, NY 10036
Inc., Malden, Mass. Go to www.electronicdesign.com for our submission guidelines.