To create a battery charger for a 12V, 24V, or 48V off-grid bank, you do not need to wind custom transformers or build linear regulators from scratch. The modern, high-efficiency approach is to build a modular system using a programmable AC-DC switching power supply paired with a DC-DC constant current/constant voltage (CC/CV) buck converter and a Battery Management System (BMS). This method yields a charger that is lighter, runs cooler, and achieves over 90% wall-to-bank efficiency compared to traditional 60Hz iron-core chargers.
This guide walks through the exact system architecture, sizing mathematics, and assembly steps required to build a reliable custom charger for lithium iron phosphate (LiFePO4) and lead-acid banks.
System Architecture and Cell Configuration
A robust custom charger relies on a multi-stage power conversion block. The system flows from source to load as follows:
- AC Mains/Generator (Source): 120V/240V AC input feeds the primary power supply.
- AC-DC Programmable PSU: Converts AC to a bulk DC voltage (e.g., a 24V or 48V server power supply or industrial unit like the Mean Well HEP-600 series). This stage handles the heavy lifting and power factor correction (PFC).
- DC-DC CC/CV Buck Converter: Fine-tunes the bulk DC into the exact CC/CV charging profile required by the specific battery chemistry.
- Battery Management System (BMS): Acts as the final gatekeeper, balancing cells and breaking the circuit if voltage or temperature limits are exceeded.
- Battery Cell Pack: The energy storage medium.
- DC Bus / Inverter (Load): Draws power from the bank to run AC appliances.
Series vs. Parallel Consequences
When configuring your battery bank, you must decide on the nominal voltage. Wiring cells in series adds voltage while keeping the Amp-hour (Ah) capacity identical to a single cell. Wiring cells in parallel adds Ah capacity while keeping the voltage identical. For example, four 3.2V 100Ah LiFePO4 cells in series (4S) create a 12.8V 100Ah bank. If you parallel two of those 4S strings (4S2P), you get 12.8V at 200Ah.
| System Voltage | Cell Configuration | Nominal Voltage | Absorption (Charge) Voltage | Float Voltage | Low Voltage Cutoff |
|---|---|---|---|---|---|
| 12V Nominal | 4S (Series) | 12.8V | 14.6V | 13.5V - 13.8V | 10.0V (2.5V/cell) |
| 24V Nominal | 8S (Series) | 25.6V | 29.2V | 27.0V - 27.6V | 20.0V (2.5V/cell) |
| 48V Nominal | 16S (Series) | 51.2V | 58.4V | 54.0V - 55.2V | 40.0V (2.5V/cell) |
| Lead-Acid 12V | 6S (Series) | 12.0V | 14.4V - 14.8V | 13.2V - 13.5V | 10.5V (1.75V/cell) |
Sizing Math: C-Rates, Peukert, and Charger Capacity
Sizing your charger requires calculating the maximum charge current based on the battery's C-rate and accounting for system inefficiencies. The C-rate defines how fast a battery is charged or discharged relative to its maximum capacity. A 100Ah battery charged at 0.5C requires a 50A charger.
Inverter and Charger Sizing for a Stated Load
Suppose you are building a 24V system to run a 3000W inverter. First, size the inverter wiring: 3000W / 24V = 125A. However, inverters pull more current as battery voltage drops. At a 20V low-voltage sag, the current spikes to 150A (3000W / 20V). You must size your busbars, fuses, and cables for 150A minimum (using 1/0 AWG copper wire). If you want the charger to run the 3000W load and charge the 200Ah battery bank simultaneously at 0.5C (100A), the charger must supply 125A (load) + 100A (charge) = 225A total. At 29.2V (charge voltage), that requires a 6,570W AC-DC power supply. Because massive single-unit power supplies are expensive, most off-grid builders use a smaller charger (e.g., 40A) and rely on load-shedding or solar to make up the difference.
Efficiency Factors and Peukert's Law
When calculating AC wall draw, you must factor in conversion losses. Assume an AC-DC power supply efficiency of 88% and a DC-DC buck converter efficiency of 94%. The combined system efficiency is roughly 82.7%. To deliver 1000W to the battery, the charger will pull approximately 1209W from the AC mains.
For lead-acid batteries, you must also apply Peukert's Law, which states that a battery's effective capacity decreases as the discharge rate increases. The formula is t = H(C / IH)^k, where k is the Peukert exponent (typically 1.25 to 1.3 for flooded lead-acid). LiFePO4 batteries have a Peukert exponent near 1.05, meaning their capacity remains remarkably stable even under heavy loads, making them vastly superior for high-draw inverter applications.
Step-by-Step Build: Assembling the Custom Charger
Building the physical charger requires strict attention to wire sizing, termination, and thermal management. High-current DC connections are the most common point of failure in DIY power systems.
- Select the AC-DC Power Supply: Choose an enclosed, fan-cooled industrial supply with adjustable voltage trimming. For a 24V LiFePO4 bank, a 24V 1000W supply can be trimmed up to 29.2V using the onboard potentiometer, eliminating the need for a secondary DC-DC buck stage for basic charging.
- Wire Preparation: Strip 1/0 AWG or 2 AWG flexible welding cable. Do not use solid THHN for battery-to-charger jumpers; the vibration and bending will work solid wire loose from screw terminals over time.
- Crimp and Terminate: Use a hex-crimper to attach closed-end copper lugs to the battery cables. Insert a piece of heat-shrink tubing with adhesive lining over the wire before crimping, then shrink it over the lug barrel to prevent moisture ingress and strand fraying.
- Install the BMS and Shunt: Mount the BMS close to the battery terminals. The negative load busbar and the charger negative must both route through the BMS's P- (charge/discharge) terminal, or through a dedicated C- (charge only) terminal if your BMS supports split current paths. Install a 500A/50mV shunt on the main negative line for accurate coulomb counting.
- Torque Specifications: Hand-tightening is insufficient. Use a calibrated torque wrench. M8 terminal lugs on LiFePO4 prismatic cells typically require 4 to 5 Nm (35 to 44 in-lbs) of torque. Under-torquing causes high contact resistance and melting; over-torquing strips the aluminum busbar threads inside the cell.
Charge/Discharge Limits and Safety Protocols
Properly programming the CC/CV limits is what separates a battery charger from a fire hazard. According to NREL energy storage guidelines and cell manufacturer datasheets, lithium-ion chemistries require strict voltage ceilings.
Applying the Charge and Discharge Limits
For LiFePO4, the charging algorithm must follow a two-stage profile: 1. Constant Current (CC): The charger outputs maximum rated current (e.g., 50A) while the battery voltage steadily rises. 2. Constant Voltage (CV): Once the pack reaches the absorption voltage (14.6V for a 12V/4S pack), the charger holds the voltage exactly at 14.6V. The current naturally tapers off as the cells reach full saturation. 3. Termination: Charging must stop when the current drops to 0.05C (e.g., 5A for a 100Ah bank). LiFePO4 batteries do not require a continuous float charge; holding them at 14.6V indefinitely will degrade the electrolyte.
Discharge limits are enforced by the BMS. The low-voltage cutoff (LVC) must be set to 2.5V per cell. Discharging below this threshold causes copper dissolution in the anode, permanently destroying the cell's capacity. For maximum cycle life, configure your inverter's low-voltage disconnect at 12.0V (3.0V/cell) and limit your Depth of Discharge (DoD) to 80%.
By combining a high-efficiency AC-DC power supply with strict adherence to C-rate limits, proper mechanical terminations, and uncompromising BMS safety layers, you can build a custom battery charger that outperforms and outlasts off-the-shelf commercial units.






