Charge Controller
Charge Controller
Charge Controller
A 12V A K
+
240V 0V DIODE 1 330
AC
12V A K A
N GREEN TO
12V DIODE 2 LED BATTERY
TRANSFORMER K
K
THERMAL 12V
CUTOUT ZENER
A
–
17V PEAK
12V RMS
0V
Fig.1: a typical lead-acid battery charger. It consists of a centre-tapped mains
transformer and a full-wave rectifier (D1 and D2). There’s also a thermal
cutout and an LED indicator to show when the battery is charged.
VOLTS UNLOADED
CHARGER
OUTPUT
BATTERY
VOLTAGE
CURRENT
Charge control
Fig.3 shows how the Charge Con-
troller is connected in between the
charger and the battery. The controller TIME
is housed in a compact diecast alu-
A CHARGING VOLTS AND CURRENT
minium case. However, if your charger
has plenty of room inside its case, the BATTERY
UNLOADED
controller could be built into it. VOLTAGE
CHARGER OUTPUT
In effect, the Charge Controller is a
switching device that can connect and
disconnect the charger to the battery.
This allows it to take control over REQUIRED
charging and to cease charging at the BATTERY VOLTAGE
correct voltage. The various charging
phases are shown in Fig.4.
The Charge Controller can switch
the current on or off, or apply it in CHARGING TIME
a series of bursts ranging from 20ms B CHARGING CHARACTERISTIC
every two seconds through to continu-
Fig.2a: the charging current from the circuit shown in Fig.1 consists of a
ously on. During the first phase, called
series of high-current pulses at 100Hz. This can over-charge the battery if
‘bulk charge’, current is normally ap- the charger is left on long enough, as indicated in Fig.2b,
plied continuously to charge as fast as
possible. However, with low-capacity
batteries, where the main charging from 100% (4A) anywhere down to 1% phase. This maintains the cut-off volt-
current is too high, reducing the burst (40mA) in 1% steps, using the charge age for an hour by adjusting the burst
width will reduce the average current. rate control. width and it brings the battery up
So, for example, if you have a 4A bat- After the ‘bulk charge’ phase, the to almost full charge. After that, the
tery charger, the current can be reduced controller switches to the ‘absorption’ controller switches to ‘float charge’.
TEMPERATURE S2 A K A K
TH1 100n F Vss
THERMISTOR 5
LM317T
IRF1405N D
OU T
LEDS
K AD J G
D
12V BATTERY CHARGE CONTROLLER A OU T IN S
Fig.5: the circuit of the 12V Battery Charge Controller is based on a PIC16F88-I/P microcontroller (IC1). This monitors the battery voltage
and pulse width modulates N-channel MOSFET Q1 to control the rate of charging. Pin 9 is the PWM output from the microcontroller and
Constructional Project
this drives Q1’s gate via buffer stage Q2 and Q3, transformer T1, bridge rectifier D2-D5 and diode D6. Transistor Q4 turns the MOSFET off.
27
21/12/2009 16:24:50
Constructional Project
TO TO
CH ARGE R BATTERY
(RED = PO SITIVE , (RED = PO SITIVE , BLK = NE GA TIVE
BLK = NE GA TIVE ) CA BLE WI TH IN SULATED CLIPS ON EN DS)
GLAN DS
BATTERY + LEAD
1 D1
D6
ZD2
ZD1
CA BLE
220k DIAG RAM FO R THE LK1-LK6
4148
4148
4148
4148
4148
TIES Q4
18V
10 F LINK IN G OP TION S
VR5 120p F
10 0
*
D5
D4
D3
D2
25V 2
4
100n F
CH ARGE R + LEAD
10 F 12k
330
120
FS1 10A
LK3 LK4
LK5 LK6
100n F
YR should initially be
R2 R1 R EG installed as shown
S1
1. 5k
10k
470
470
470
470
an SLA battery or
TH1
LED1 LED2 LED3 LED4 LED5 LK6 for a lead-acid
CH ARGE FLOA T BATTERY
battery.
PO WE R THERMISTOR AB SO RPTION
Power supply capacitor and fed to an adjustable volt- signal from pin 9 is switched off.
Power for the circuit is obtained from age regulator (REG1) that is set to deliver In addition, having Q1 switched off
the charger via diode D1, or it can come a precise 5.0V. This feeds IC1 and buffer also prevents voltage fluctuations due
from the battery via the reverse diode stage transistors Q2 and Q3. to charging current in the leads to the
within Q1. However, the latter is a spuri- IC1 monitors the battery voltage via a battery ‘under charge’.
ous mode which has no useful function. voltage divider comprising R1 and R2,
Diode D1 prevents reverse cur- and converts it to a 10-bit digital value Temperature measurement
rent to the controller circuit should via the AN3 input, pin 2. The signal As mentioned, an NTC thermistor
the charger or battery be connected is filtered with a 100nF capacitor to (TH1) is used to measure temperature. It
with incorrect polarity. The incoming remove noise from the measurement. is connected in series with a 10kW resis-
supply from diode D1 and switch S1 is Furthermore, the battery voltage meas- tor across the 5V supply. The resulting
filtered using a 470mF 25V electrolytic urements are made after the 500kHz voltage across the thermistor is fed to IC1
AN2 input (pin 1) and converted to an standard Default (LK1) or Adjustable housed in a diecast box measuring 118
8-bit digital value. IC1 then computes setting referred to above. × 93 × 35mm.
the temperature with a look-up table. It Links LK3 and LK4 set the standard Start construction by checking the PC
can also sense whether the thermistor is or three-step option. The standard board for any defects such as shorted
disconnected (pin 1 at +5V) or shorted charge selection switches charging copper tracks, breaks in the copper ar-
(pin 1 at 0V). to float charge directly after the main eas and for correct sizes for each hole.
Analogue inputs AN5, AN6, AN0 charge is complete. The holes for the four-corner mounting
and AN1 monitor the settings for The three-step selection will run the screws and the toroidal transformer ca-
charge rate percentage, cut-off voltage, absorption phase after the main charge, ble tie mounts need to be 3mm diameter,
float voltage and temperature compen- provided that the full charging process while the four mounting points for the
sation, as set by trimpots VR1-VR4. takes more than one hour. For a main crimp eyelets need to be 4mm diameter.
Switch S2 stores the settings in IC1. charge of less than one hour, the charg- Check also that the PC board is cut
S2 is normally open, and an internal ing will switch directly to float charge. and shaped to size so that it fits into
pull-up resistor within IC1 holds the Note that these link combinations the box.
RB5 input (pin 11) at 5V. cannot be used together you must That done, the first step is to secure
When S2 is pressed, the pin 11 input use one or the other. For example, the four M4 nuts to the underside of
of IC1 is pulled low (0V), this signals you can use LK1 or LK2, LK3 or LK4, the PC board in the four eyelet mount-
the program within IC1 to store the and LK5 or LK6. ing positions using M4 screws. Preheat
settings for VR2, VR3 and VR4 as the each nut with a soldering iron and
adjustable values for either SLA or lead- Software solder it to the PC board. When cool,
acid batteries. Where the values are The software files are available via the screws can be removed.
stored depends on links LK5 and LK6, the EPE Library site, accessed via www. Construction can now be continued
connected to the RA7 input at pin 16. epemag.com. Pre-programmed PICs by installing the two wire links and the
will also be available from Magenta resistors. Take care to place each resis-
Link settings Electronics – see their advert in this tor in its correct position. A colour code
If LK5 is in, pin 16 will be high (5V) issue for contact details. table is provided as a guide to finding
and IC1 will stores the settings as SLA each value, but use your DMM (dig-
parameters. If LK6 is in place, pin 16 Construction ital multimeter) to check each resistor
will be low and the settings will be The Charge Controller is built us- before inserting it into the PC board.
stored for the lead-acid parameters. ing a PC board, code 741, measuring Next, install the PC stakes for the
Links LK1 and LK2 determine 102mm × 72mm. This board is available test points TP GND and TP1 to TP5.
whether the Charge Controller uses the from the EPE PCB Service. The PCB is Install the 2-way header for switch
Casing up
Work can now commence on the
Specifications
metal box. First, position the PC board Under-voltage burst charge: 10.5V (inoperative if the selected cut-off voltage
in the box with the edge closest to the is below 12V).
LEDs sitting 3mm away from the edge Under-voltage burst rate: approx. 200ms burst every 2s with charge rate set to
of the box. Mark out the four corner 100%. Burst width is reduced with a lower charge rate. Charge, Absorbtion and
mounting hole positions, then drill Float LEDs all flash. Battery LED flashes with no battery and charger connected.
(and deburr) these holes to 3mm and The LED lights continuously when battery connected.
mount the four 9mm stand-offs. Under temperature: 0°C; no charge; thermistor LED flashes on and off at 1s rate.
Now mount the PC board in position Temperature measurement resolution: 0-60°C in 1°C steps.
and secure it using M3 x 6mm screws.
Mark out the mounting holes for Q1 Thermistor out: Thermistor LED fully lit; no charge.
and REG1, and mark out the LED and Compensation: 0°C to 60°C
S1 positions. Also mark out the two Adjustable compensation: 0-50mV/°C in 256 steps (separate SLA and lead-acid
holes for the cable glands. That done, battery adjustments)
remove the PC board and drill out the Adjustable cut-off and float voltage: 0-16V in 48.8mV steps. Separate SLA and
holes. Be sure to deburr, especially the lead-acid battery adjustments
two holes for Q1 and REG1. Fixed value: SLA cut-off 14.1V, float 13.5V and –25mV/°C compensation with
The PC board can now be mounted respect to 20°C. Lead-acid 14.4V, 13.8V and –20mV
inside the box. Isolate the tabs of Q1 Charge rate: adjustable from 100% to 0% in 1% steps. Pulses are adjusted in
and REG1 from the case, using insu- approximately 20ms steps.
lating washers and mounting bushes PWM drive signal: 500kHz.
– see Fig.5 and Fig.7. Now check that MOSFET gate rise-time for an on pulse: 56ms (10-90%) for a 16V gate voltage
the tabs for REG1 and Q1 are insulated
MOSFET gate fall time for an off pulse: 69ms
from the metal box by measuring the
resistance with a multimeter. The read- LEDs
ing should be high; above 1MW. The Bulk Charge: Charge LED flashes at a duty that equals the % charge rate.
box is totally isolated from the elec- Absorption: Absorption LED lit (optional Charge LED shows whenever charge
trical connections so that accidental is on to maintain battery voltage).
contact of the box to a battery terminal Float: Float LED lit (optional Charge LED indication).
will not cause a short circuit.
Install the two cable glands and pass Charging
the figure-8 cable through them, ready Charge: charges at the charge rate (%) until the cut-off voltage is reached.
to attach the crimp eyelets. We used Absorption: adjusts current pulse duty cycle to maintain cut-off voltage.
the striped wire as the negative and the Float: adjusts current pulse duty to maintain float voltage.
plain red wire as the positive. Float and absorption current control
Connect the crimp eyelets using a
Charge duty cycle is reduced fast (15% every 2s) if the battery voltage is above
crimping tool and secure them to the the required value by more than 0.25V, and reduced by 1% every 2s if the battery
PC board using the M4 screws and star voltage is above the required value by up to 0.25V. Conversely, charge duty cycle
washers. Make sure the eyelets are not is increased fast (3% per 2s) if the battery voltage is less than 0.25V below the
shorting to adjacent parts, especially required value and increased at a slow rate (1% per 2s) if the battery voltage is
the fuseholder. The battery leads will no more than 0.25V below the required voltage.
need the large insulated clips con-
nected to the end – use red for positive Now connect a multimeter, set to If your charger supplies less than
and black for negative. read 5V DC, between ‘test points’ TP 30A, then the 100% setting can be
The Charge Controller leads can GND and TP5. Connect a supply to the used. If your battery is rated in RC
simply be bared at their ends and charger input and adjust VR5 for a 5.0V (reserve capacity) you will need to
connected to the charger clips or reading on the multimeter. Check that convert to Ah.
they can be permanently wired to the voltage between pin 5 and pin 14 pin Reserve capacity is a specification
the charger. on IC1’s socket is also 5V. If so, switch in minutes, and specifies how many
Switch S1 can now be wired to the off power and insert IC1, taking care to minutes a fully-charged battery can
PC stakes on the PC board and covered orient it correctly. deliver 25A before the voltage drops
with heatshrink tubing. Finally, fit the to 10.5V. A battery with an RC of 90
stick-on rubber feet to the underside Charging will supply 25A for 90 minutes. The
of the box. For most large batteries you would amp-hour specification (Ah) refers to
set the charge rate to 100%. In this case, the current that can be supplied (usu-
Testing simply set VR1 fully clockwise. You can ally over a 20 hour period). So a 100Ah
Install links LK1, LK3 and either use the 100% setting for all batteries that battery can supply 5A for 20 hours.
LK5 (SLA) or LK6 (lead-acid). Do not can accept the charge rate from your To convert from RC to Ah, multi-
place a link onto the 2-way header charger. Most batteries can accept up to ply the RC value by 0.42 (derived by
adjacent to S2, as this is for an optional 30% of the quoted Ah capacity as a cur- multiplying by 25A to get the capac-
front panel-mounting switch for S2. rent. So a 100Ah battery can accept 30A. ity in Amp minutes and dividing by
Fig.9: this scope shot duplicates the waveforms shown in Fig.10: this shot shows the Charge Controller operation.
Fig.2a. The white trace is the charger input, while the red The red trace is the 100Hz input from the charger, while the
trace shows the 100Hz current pulses into the battery. yellow trace shows the current into the battery.
60 to convert from minutes to hours). represents the percentage. Voltages of If you do not require the charge
In practice, because the RC capacity 1V or more give 100%, while values LED to show during these phases,
specification uses 25A, the conversion below 1V provide lower percentage you can disable this. Switching off
from RC to Ah often gives a lower charge rates. For example, a 0.5V read- power and pressing S2 while the
Ah value than the battery’s actual Ah ing gives a 50% charge rate duty cycle. power is re-applied will disable this
capacity. This is because the Ah Note that when charging a battery that feature. The change is acknowledged
capacity often requires much less has less than 10.5V across its terminals, by a minimum of two fast (two/sec-
current from the battery over a longer the charging will be in a specific burst ond) flashes of the Charge LED. The
period. mode, with the burst at 200ms every two acknowledgement flashing continues
For batteries that require a lower seconds when the charge rate is set to until the switch is released.
current than that supplied by the 100%. At lower charge rates, the burst You can re-enable the feature by
charger, the charge rate can be reduced length will be reduced accordingly. pressing S2 at power up again.
from 100%. So, for a charger that is During under-voltage burst, the Charge,
rated at 4A and a battery that can only Absorption and Float LEDs flash. Setting the parameters
accept a 2A charge current, set the As mentioned earlier, the charge Most battery manufacturers will
charge rate to 50%. LED can be set to flash when charge specify the required cut-off (also called
The charge rate is set using VR1, is applied during the absorption and the cyclic voltage), the float (also called
where the voltage at test point TP1 float phases. This is the initial setting. the trickle voltage) and the tempera-
ture compensation for each battery.
Note that the cut-off and float voltages
must be the values for 20°C.
The temperature compensation
required by manufacturers is usually
shown as a graph of voltage versus
temperature. You need to convert this
to mV/°C. To do this, take the differ-
ence between the voltages at two dif-
ferent temperatures and divide by the
temperature difference.
For example, a battery graph may
show the cut-off or cyclic voltage at 0°C
to be 14.9V. At 40°C it may be 14.2V.
So (14.2 – 14.9)/40 is –17.5mV/°C.
Where the float temperature com-
pensation is different to the cyclic
BATTERY
CH ARGE R
temperature compensation, a compro-
AD APTO R mise between the two values will have
to be made. Note that the graph can be
interpreted over a smaller tempera-
ture range that is consistent with the
Fig.11: check your etched PC board for defects before installing any temperatures under which you expect
parts by comparing it with this full-size artwork. to be using the charger.
1 PC board, code 741, available 2 100mm cable ties 1 24V 1W Zener diode (ZD1)
from the EPE PCB Service, 1 1m length of 15A figure-8 1 18V 1W Zener diode (ZD2)
size, 102 × 72mm automotive cable 1 1N4004 1A diode (D1)
1 diecast box, 118 × 93 × 35mm 1 100mm length of medium-duty 5 1N4148 diodes (D2 to D6)
1 SPDT toggle switch (S1) red hook-up wire 1 LM317T adjustable voltage
1 SPST micro tactile switch, with 1 100mm length of medium-duty regulator (REG1)
0.7mm actuator (S2) black hook-up wire 2 orange 3mm LEDs (LED1 and 3)
2 cable glands for 4-8mm 3 3-way headers with 2.54mm 1 red 3mm LED (LED2)
diameter cable spacing 2 green 3mm LEDs (LED 4 and 5)
2 TO-220 silicone insulating 1 2-way header with 2.54mm Capacitors
washers and mounting bushes spacings 1 470F 25V PC radial elect.
4 small adhesive rubber feet 3 jumper plugs 2 100F 16V PC radial elect.
2 PC-mount fuse clips 8 PC stakes 1 10F 25V PC radial elect.
1 10A fuse (FS1) 2 insulated battery clips (red and 4 100nF MKT polyester
1 ferrite ring-core, 18 × 10 × black) 1 3.3nF ceramic
6mm (Jaycar LO-1230 or 1 600mm length of 0.5mm 1 120pF ceramic
equivalent) (T1) enamelled copper wire
1 50mm length of 0.7mm tinned Resistors (0.25W, 1% metal film)
1 NTC thermistor (10k at 25°C)
copper wire 1 220k 4 470
(TH1)
1 22k 1 330
1 18-pin IC socket Semiconductors 1 12k 1 120
4 9mm long M3 tapped spacers 1 PIC16F88-I/P microcontroller, 2 10k 1 100 1/2W
8 M3 × 6mm screws pre-programmed – see text 1 1k
2 M3 × 10mm screws (IC1)
2 M3 nuts 1 IRF1405 N-channel MOSFET Trimpots
4 M3 × 10 screws (Q1) 4 20k horizontal mount trimpots
4 M4 nuts 1 BC337 NPN transistor (Q2) (VR1-VR4)
4 M4 star washers 2 BC327 PNP transistors 1 100 multiturn top adjust
4 insulated crimp eyelets (Q3,Q4) trimpot VR5)