When makers and off-grid builders ask how to make a battery charger for modern 12V or 24V energy storage, they are rarely looking to wind a custom transformer and solder a bridge rectifier. Building a linear charger from scratch is obsolete, inefficient, and dangerous for modern lithium chemistries. In 2026, "making" a charger means engineering a custom, multi-stage charging architecture. You integrate smart MPPT solar controllers or AC-DC inverter/chargers with a Battery Management System (BMS) to deliver precise Constant Current/Constant Voltage (CC/CV) profiles.
This guide walks through the exact system topology, sizing math, and safety protocols required to build a reliable charging system for a LiFePO4 (Lithium Iron Phosphate) battery bank.
The Anatomy of a Custom Battery Charging System
A robust charging system is not a single component; it is a managed power path. Before selecting hardware, you must define the system block description from source to load:
- Energy Source: AC Grid, Generator, Solar Array, or Vehicle Alternator.
- Charge Controller / AC-DC Converter: Converts raw source power into a regulated CC/CV DC profile (e.g., Victron SmartSolar MPPT or MultiPlus Inverter/Charger).
- DC Bus & Fusing: Class-T fuses and properly crimped 2/0 AWG copper conductors.
- Battery Management System (BMS): Monitors individual cell voltages, temperatures, and balances the pack. It acts as the final gatekeeper, disconnecting the load or charge if limits are exceeded.
- Battery Bank: The LiFePO4 cells configured in series/parallel.
- Load / Inverter: Draws DC power to run AC appliances or DC bus devices.
Bench Note: Never wire a charge controller directly to a load without a battery in the circuit. The battery acts as a massive capacitor that stabilizes the DC bus voltage. Without it, voltage spikes from the charger will fry your inverter's logic board.
Sizing Your Charger: Math, C-Rates, and Efficiency
To size your charger, you must calculate the required charge current based on the battery's C-rate and the system's efficiency losses. For LiFePO4, the optimal charge rate is 0.5C (charging the battery from 0% to 100% in 2 hours). The maximum safe discharge rate is typically 1C.
The Sizing Math
Let us size an AC-DC Inverter/Charger for a 12V 200Ah LiFePO4 bank that must simultaneously power a 2000W continuous AC load and charge the batteries at 0.5C.
- Target Charge Current: 200Ah × 0.5C = 100A DC.
- Charge Power Required: 100A × 14.4V (absorption voltage) = 1440W.
- Load Current Required: 2000W AC load / 12V DC nominal = 166.6A.
- Inverter Efficiency Factor: Assume 90% efficiency. 166.6A / 0.90 = 185A DC draw.
- Total DC Bus Requirement: 185A (Load) + 100A (Charge) = 285A.
You need an Inverter/Charger capable of passing at least 300A on its internal DC bus, paired with a 3000W inverter. If using solar to supplement the charge, you would need a minimum of 1440W of solar panels, factoring in an 80% real-world MPPT yield, pushing your array size to ~1800W.
Peukert's Law and Efficiency Factors
Peukert's Law ($t = H(C/I)^k$) dictates that the faster you discharge a battery, the less total capacity you get. For traditional Flooded Lead-Acid (FLA), the Peukert exponent ($k$) is roughly 1.2 to 1.3, meaning a 100Ah battery might only yield 60Ah if discharged at 1C. For LiFePO4, $k$ is approximately 1.05. This near-linear efficiency is why lithium dominates modern off-grid builds, but it also means your charger must be strictly current-limited, as the battery will gladly accept massive current until the BMS trips.
| Battery Capacity | Optimal Charge (0.5C) | Max Continuous Discharge (1C) | Recommended Inverter Size | Min MPPT Solar Array |
|---|---|---|---|---|
| 100Ah | 50A | 100A (1200W) | 1000W - 1500W | 800W |
| 200Ah | 100A | 200A (2400W) | 2000W - 3000W | 1600W |
| 400Ah | 200A | 400A (4800W) | 3000W (x2 parallel) | 3200W |
Battery Bank Configuration and Charge Limits
How you wire your raw cells dictates your system voltage and amp-hour capacity. This directly impacts your charger selection and Depth of Discharge (DoD) limits.
| Configuration | Voltage Consequence | Capacity (Ah) Consequence | Charger Requirement | Primary Risk |
|---|---|---|---|---|
| Series (4S) | Multiplies (4x 3.2V = 12.8V) | Remains the same (100Ah) | 12V / 14.6V Charger | Cell voltage imbalance over time. |
| Parallel (4P) | Remains the same (3.2V) | Multiplies (4x 100Ah = 400Ah) | 3.2V / 3.65V Charger (Rare) | Circulating currents if cells mismatch. |
| Series-Parallel (4S2P) | Multiplies by Series count | Multiplies by Parallel count | Matches Series Voltage | Parallel string imbalance. |
Charge and Discharge Limits
LiFePO4 chemistry requires strict adherence to voltage limits. The charge profile must hit a maximum of 3.65V per cell (14.6V for a 12V 4S pack) during the Constant Voltage (CV) phase, and cut off completely at 2.50V per cell (10.0V) during discharge. Unlike lead-acid, which should be limited to a 50% DoD to preserve cycle life, LiFePO4 can safely be discharged to 80%-100% DoD, yielding vastly more usable energy per pound.
Lithium cells do not off-gas like lead-acid; they vent highly flammable electrolyte and can enter thermal runaway if charged above 3.65V/cell or if internal shorts occur due to physical damage. Never parallel mismatched cells, cells of different ages, or cells with different internal resistances. Doing so causes the stronger cells to force unregulated current into the weaker ones, bypassing the BMS and causing localized heating and fire. Always use a high-quality BMS (like a JK or Daly smart BMS) rated for at least 1.5x your maximum expected charge/discharge current, and ensure your charge controller's over-voltage protection (OVP) is set to trip before the BMS high-voltage cutoff.
Frequently Asked Questions
How to make a battery charger using a standard PC power supply?
You cannot safely charge a 12V LiFePO4 battery directly with a standard ATX PC power supply. An ATX PSU outputs a fixed 12V, but LiFePO4 requires a 14.4V - 14.6V absorption voltage to reach full capacity. Furthermore, a PC PSU lacks Constant Current (CC) limiting; if the battery is deeply discharged, it will pull hundreds of amps, tripping the PSU's short-circuit protection or melting your wires. To "make" a charger from a PC PSU, you must wire the 12V output into a high-power CC/CV buck-boost converter module (like a DPS5020 or a 300W DC-DC step-up module). Set the module's CV to 14.4V and the CC limit to your desired charge rate (e.g., 20A). This creates a functional, albeit low-power, bench charger.
How to make a battery charger with an alternator for LiFePO4?
Wiring a vehicle alternator directly to a LiFePO4 house bank is a common mistake that destroys alternators. Lithium batteries have near-zero internal resistance and will pull maximum current (often 150A+) from the alternator continuously, causing the alternator diodes to overheat and fail. Additionally, if the BMS disconnects the battery while the engine is running, the resulting load-dump voltage spike will fry the vehicle's ECU. To properly make an alternator-based charger, you must install a DC-DC battery charger (such as the Victron Orion-Tr Smart 12/12-30). This device isolates the alternator, limits the current to a safe 30A, and applies the correct CC/CV profile to the lithium bank.
How to make a solar battery charger for a 48V system?
Building a 48V solar charger requires calculating the Maximum Power Point Tracking (MPPT) controller's voltage and current limits. First, determine your battery bank's nominal voltage (e.g., 16S LiFePO4 = 51.2V nominal, 58.4V max charge). Next, size your solar array. If you want a 50A charge current at 58.4V, you need 2920W of solar panels. Select an MPPT controller rated for at least 3000W and a maximum battery voltage of 60V (like the Victron SmartSolar MPPT 250/60). Crucially, ensure your solar panel string's Open Circuit Voltage (Voc) at the lowest expected winter temperature does not exceed the MPPT's maximum input voltage (250V in this example), or the controller will be destroyed. Use an online string sizing tool to calculate cold-temperature Voc derating.






