How to Build a 24V Battery Charger Circuit Step by Step Guide

Use a switch-mode regulator like the LM2596 for optimal performance–dropout under 1.5 volts at full load ensures consistent output even with input sags down to 20 volts. Configure feedback resistors (R1: 10kΩ, R2: 3.3kΩ) to set a precise 29.4V no-load output, compensating for lead-acid float requirements. Add a Schottky diode (1N5822) on the output to clamp reverse current during power-off cycles, preventing capacitor discharge into connected cells.
Incorporate a soft-start capacitor (10μF tantalum) between the enable pin and ground to limit inrush current–critical for extending device lifespan if charging sealed lead-acid or lithium iron phosphate cells. For thermal protection, mount a 10k NTC thermistor on the heatsink aft of the switching transistor; set the shutdown threshold via a comparator (LM393) linked to the error amplifier to cut power before junction temps exceed 110°C.
Use a current-sense resistor (0.1Ω, 2W) in series with the output ground path to monitor charging amperage. Route the voltage across this resistor to a microcontroller’s ADC–calibrate the reading by measuring actual current with a clamp meter. Implement a two-stage profile: bulk mode at 5A until terminal voltage hits 28.8V, then taper to 500mA float. Include a PCB trace fuse (1.5mm width, 2A rating) on the high-side MOSFET’s drain to handle short-circuit events without board damage.
Filter input noise with a 10μH inductor followed by a 470μF low-ESR capacitor to suppress switching spikes above 50kHz–critical for stable operation when powering sensitive instrumentation alongside the supply. Route high-current traces (>2A) as 2oz copper with 3mm width for 25°C temperature rise. Place the input cap within 2cm of the switching IC to minimize voltage ripple below 50mVpp.
Designing a Power Supply Circuit for 24-Volt Energy Storage
Begin with a high-efficiency switching regulator like the LM2596 or MP2307, configuring it for step-down conversion to maintain stable output. Input voltage should exceed the target by at least 20% to account for losses; for a 24-volt storage unit, use 30-36V DC as the source. Ensure the inductor’s saturation current surpasses peak load requirements–2A for light loads, 5A for heavy cycles.
- Rectification: Bridge diodes (1N5408) or a Schottky array (SB560) for lower forward drop.
- Filtering: Electrolytic capacitors (470µF/50V) on both input and output, supplemented with 0.1µF ceramic for high-frequency noise suppression.
- Feedback loop: Two resistors (10kΩ and 2.2kΩ) to set voltage, with a 10kΩ potentiometer for fine adjustment.
For constant-current mode, integrate a shunt resistor (0.1Ω, 5W) in series with the output. Pair it with an op-amp (LM358) to monitor voltage drop and trigger cutoff at 120% of nominal current. Avoid linear regulators–they dissipate excessive heat at this voltage range.
Critical safety components include:
- A thermal switch (70°C cutoff) mounted on the heatsink.
- A TVS diode (P6KE39A) across the output to clamp transients.
- Reverse-polarity protection via a P-channel MOSFET (IRF9540N) or a high-current relay (TYCO 1-1393201-1).
Opt for a flyback converter (using UC3843) if isolation is required. Primary winding: 22 turns of 0.5mm wire; secondary: 15 turns of 0.8mm wire for a 24-volt unit. Snubber circuit (2.2nF + 220Ω) across the transformer primary to suppress ringing.
Test under full load (5A for 2 hours) with a thermal camera. Hotspots above 60°C indicate inadequate heatsinking–add a CPU cooler fan or increase fin area. For lead-acid storage, add a float-mode circuit: reduce current to C/50 (e.g., 200mA for 10Ah) once terminal voltage reaches 27.6V.
Use KiCad or LTspice to simulate transient response. Key waveforms to verify:
- Output ripple: <100mV p-p at 100kHz.
- Startup overshoot: <2V (mitigate with a soft-start capacitor 10µF).
- Short-circuit recovery: output should recover within 5ms.
Enclosure: grounded metal box with ventilation slots; keep high-voltage traces >5mm apart to prevent arcing.
Core Elements for a Dual-Voltage Power Supply Circuit
Select a step-down transformer with a 18-20V AC output rating to ensure proper regulation after rectification–this prevents excessive heat dissipation in linear regulators and aligns input range for switching converters. For rectification, use ultrafast recovery diodes (e.g., UF4007) or a bridge rectifier (KBPC5010) with a minimum 50V reverse voltage margin to handle transients during load changes. Incorporate a 4700μF smoothing capacitor post-rectification to reduce ripple below 100mVpp, critical for lithium-based and AGM storage cells.
Implement a feedback-controlled PWM IC like TL494 or UC3843 for precision output regulation, paired with a totem-pole MOSFET driver (IR2110) to handle the boost stage efficiently. A synchronous buck topology using IRFB3077 MOSFETs (75V, 200A) or low-RDS(on) alternatives (e.g., IXFH88N30P3) minimizes conduction losses to under 5%. Include a 10kΩ NTC thermistor (MF52-103) on the storage housing for temperature compensation, adjusting the charging profile dynamically via the control IC’s voltage reference pin.
Fuse the input at 5A and include a 6A PTC resettable device (e.g., PolySwitch RXEF060) to protect against short circuits without permanent failure. For isolation, opt for a reinforced flyback topology with a WÜRTH ELEKTRONIK 750315745 or similar transformer, ensuring 3kVAC isolation between primary and secondary windings. Gate resistors (10Ω) and snubber networks (47Ω + 0.1μF) on each MOSFET drain suppress ringing, extending component lifespan under continuous duty cycles.
Step-by-Step Assembly of a Transformer-Based Power Supply Unit
Select a toroidal transformer rated for 30VAC output at 5A minimum. Torroidal types reduce electromagnetic interference and improve efficiency. Verify the core’s winding resistance with a multimeter–primaries should read 5-15Ω, secondaries 0.5-3Ω. A deviation beyond 10% indicates potential faults requiring replacement.
Mount the transformer on a 2mm aluminum heatsink using M4 screws spaced 30mm apart. Apply thermal paste between the core and heatsink to improve heat dissipation. Ensure no conductive debris enters the windings during installation–use insulated washers if the chassis is metallic.
Solder a full-wave bridge rectifier (KBPC3510 or equivalent) directly to the transformer’s secondary leads. Position it within 20mm of the winding to minimize voltage drop. Add 100nF decoupling capacitors across each diode to suppress high-frequency noise generated during commutation.
Regulation and Output Conditioning
Install an LM338T adjustable regulator on the same heatsink as the transformer. Use a TO-220 insulator kit but remove the mica washer–thermal paste alone provides sufficient isolation while improving conductivity. Connect the regulator’s input to the rectifier’s positive output via a 2.2Ω/5W current-limiting resistor to protect against inrush spikes.
Wire a 1.2kΩ resistor between the regulator’s adjust pin and output. Add a 10-turn 5kΩ trimpot in series to fine-tune the load voltage–set it mid-range initially. Parallel the trimpot with a 10μF tantalum capacitor to stabilize feedback and prevent oscillation under varying loads. Verify stability by monitoring ripple on an oscilloscope:
Add output terminals rated for 30A continuous current. Use stranded 10AWG wire for connections, twisting pairs to reduce inductive loops. Include a 30A slow-blow fuse in series with the positive output as close to the terminals as possible. For overvoltage protection, place a 27V Zener diode (1N5363B) across the output–it will conduct at 1.5× nominal voltage, safeguarding downstream equipment.
Enclose the assembly in a ventilated steel chassis with 5mm diameter ventilation holes spaced 15mm apart. Ground the chassis to the supply’s negative terminal using a 14AWG wire. Test insulation resistance between all conductive parts and the chassis–minimum 10MΩ at 500VDC is required for safety compliance.
Critical Wiring Errors in Dual-Cell Power Supply Circuits and Prevention

Reverse polarity connections destroy input regulators instantly. Verify polarity with a multimeter before energizing any circuit–positive to positive, negative to negative. Install inline fuses rated at 125% of the maximum sustained current; omit this step and risk melting traces on PCBs rated for 35µm copper. Use crimp connectors with heat-shrink tubing instead of solder-only joints; vibration loosens solder over 500 cycles, increasing resistance by 40%.
Neglecting ground loops creates noise floors exceeding 80 mVpp. Route all returns through a single star-point connected to the negative terminal of the storage unit. Separate high-current paths (buck converter output) from low-level signal paths (feedback dividers) by at least 3 mm; failure causes switching regulators to oscillate at 170 kHz, overheating inductors rated for 10 A continuous.
Component Selection Pitfalls
| Component | Incorrect Rating | Correct Rating | Consequence |
|---|---|---|---|
| Input Capacitor | 25 V, 10 µF | 40 V, 22 µF (X7R) | Voltage sag below 20 V under 8 A load |
| Schottky Diode | 3 A, 40 V | 5 A, 60 V | Forward drop exceeds 0.5 V at 4 A |
| Thermal Resistor | 10 kΩ NTC | 1 kΩ bead | False thermal cutoff at 35 °C |
Overlooking trace width calculates to excessive voltage drop. A 2 oz copper trace carrying 10 A needs 3.5 mm width for 30 °C temperature rise; halving width elevates drop to 0.4 V. For MOSFETs with RDS(on) > 15 mΩ, add a heatsink of 12 °C/W thermal resistance or expect 60% duty cycle limitation. Unstable gate drive from noise prolongs MOSFET turn-off time to 80 ns, increasing switching losses by 32%.
Failing to shield PWM signals invites cross-talk. Twist each control pair–gate drive, current sense, feedback–with 20 turns per 10 cm and shield each pair with foil tied to the star ground. The shield reduces conducted emissions from 45 dBµV to 28 dBµV at 150 kHz, meeting CISPR 25 Class 3. Omitting series gate resistors creates ringing exceeding 50 Vpp, triggering unintended conduction in synchronous rectifiers.
Incorrect fuse placement severs protection. Position the fuse immediately after the power source and before capacitors rated above 100 µF; bypass capacitors then filter transients without fusing delay. A 1 ms transient spike of 70 A through a 10 A fuse vaporizes the element in 400 µs, leaving downstream MOSFETs exposed to 1.2× rated current. Test fuses with a 1.5× rated pulse; slow-blow fuses must survive 20 pulses or risk nuisance trips.
Assembly Verification Protocol
After soldering, perform a cold check with zero applied voltage: measure DC resistance across every node against the schematic–deviations exceeding 5% indicate shorts or open circuits. Energize the circuit in stages: first the auxiliary supply, then the pre-charge path (10 Ω resistor for 100 ms), finally closing the main relay. Record voltage at each node with an oscilloscope bandwidth ≥ 100 MHz; ringing above 1 Vpp signals under-damped loops requiring additional snubbers. Log ripple current through the main inductor–values surpassing 6 Arms degrade core materials rated for 80 °C operation.