To build a reliable, multi-stage smart battery charger at home, you need to pair a high-quality AC-DC switching power supply (like the Mean Well LRS-350 series) with a programmable DC-DC buck converter module (such as the RUIDENG RD6012 or RD6024). This combination gives you precise constant-current/constant-voltage (CC/CV) control for both lead-acid and lithium chemistries without the premium cost of a commercial off-the-shelf inverter/charger. By selecting the right source and control modules, you can safely charge anything from a 12V 100Ah LiFePO4 block to a 24V flooded lead-acid golf cart bank.
The Anatomy of a DIY Smart Battery Charger
Understanding the system block description from source to load is critical before terminating any wires. A DIY bench charger consists of four distinct stages:
- AC Mains Source: Your 120V or 240V AC wall supply. This must be fused and properly grounded.
- AC-DC Power Supply (The Source): Converts AC mains to a stable, high-current DC bus (typically 24V DC or 36V DC). This acts as your raw power reservoir.
- Programmable DC-DC Charge Controller (The Brain): A synchronous buck converter that steps down the DC bus voltage to the exact battery absorption or float profile while strictly limiting current.
- Battery Bank (The Load): Receives the tailored CC/CV charge profile via appropriately sized copper conductors.
Sizing Your Power Supply and Charge Controller
Inverter and charger sizing must account for the battery's chemical limits, the desired charge rate (C-rate), and the efficiency losses inherent in DC-DC conversion. Let us walk through the sizing math for a 12V 100Ah LiFePO4 battery.
Inverter/Charger Sizing for the Stated Load
We want to charge our 100Ah LiFePO4 battery at a 0.5C rate, which equals 50A of charge current. The absorption voltage for LiFePO4 is 14.6V.
- Output Power Required: 14.6V × 50A = 730W.
- Efficiency Factor: High-quality DC-DC buck converters operate at roughly 90% efficiency under optimal load. We must divide our output power by 0.90 to find the required input power.
- Input Power Required: 730W / 0.90 = 811W.
Therefore, your AC-DC power supply must be rated for at least 850W. A 24V 35A (840W) or 36V 24A (864W) Mean Well unit is the correct choice. Crucial design note: Do not use a 12V AC-DC supply. The buck converter requires a higher input voltage than the output to regulate properly (typically Vin = Vout + 3V minimum). A 24V DC bus gives the RD6012 plenty of headroom to regulate down to 14.6V.
Sizing Math with Peukert’s Law (For Lead-Acid)
If you are building this charger for flooded lead-acid (FLA) or AGM batteries, you must account for Peukert’s Law. Peukert's equation ($t = H(C/I)^k$) demonstrates that a battery's effective capacity drops as discharge or charge currents increase, primarily due to internal resistance and heat. Because of this, lead-acid charge rates are strictly capped at 0.1C to 0.2C to prevent excessive gassing, electrolyte loss, and thermal runaway. For a 100Ah lead-acid battery, your max charge current is 20A, requiring only a ~350W AC-DC supply.
| Chemistry | Max Charge C-Rate | Max Discharge C-Rate | Recommended DoD | Absorption Voltage (12V Nominal) |
|---|---|---|---|---|
| LiFePO4 | 0.5C to 1.0C | 1.0C | 80% - 90% | 14.4V - 14.6V |
| Flooded Lead-Acid | 0.1C to 0.2C | 0.2C | 50% | 14.4V - 14.8V |
| AGM / Gel | 0.2C to 0.3C | 0.25C | 50% - 60% | 14.2V - 14.4V |
Series vs. Parallel: Consequences for Voltage and Capacity
When scaling your battery bank to match your DIY charger's output, you must understand how series and parallel wiring alters the system's electrical characteristics.
- Series Wiring: Voltages add together, but Amp-hour (Ah) capacity remains the same. Wiring two 12V 100Ah batteries in series yields a 24V 100Ah bank. Your charger must be programmed to a 24V profile (29.2V absorption for LiFePO4).
- Parallel Wiring: Amp-hour capacity adds together, but voltage remains the same. Wiring two 12V 100Ah batteries in parallel yields a 12V 200Ah bank. Your charger stays on the 12V profile but must supply twice the current to maintain the same C-rate.
Frequently Asked Questions
How can I make a battery charger from an old computer power supply?
You can repurpose an ATX computer power supply by tapping the 12V yellow wires and the ground black wires. However, an unmodified ATX supply outputs a fixed 12V, which is insufficient to fully charge a 12V battery (which requires 14.4V to 14.6V for absorption). To make it functional, you must wire the 12V output into a DC-DC boost converter or a programmable buck-boost module capable of stepping the voltage up to 14.6V while limiting the current. Additionally, ATX supplies require a minimum dummy load on the 5V rail to remain stable, making them less ideal than dedicated 24V AC-DC LED drivers or industrial supplies like the Mean Well LRS series.
How can I make a battery charger without a transformer?
Modern DIY battery chargers rarely use heavy, 60Hz iron-core transformers. Instead, they use Switched-Mode Power Supplies (SMPS). The AC-DC power supply block mentioned in this guide is a transformerless SMPS that uses high-frequency switching (typically 50kHz to 150kHz) and a small ferrite-core transformer to step down voltage efficiently. If you are asking about a transformerless capacitive dropper circuit directly from AC mains: do not build one. Capacitive dropper circuits lack galvanic isolation, meaning your battery and any connected DC loads will be at lethal mains potentials. Always use an isolated AC-DC switching supply for safety.
How can I make a solar battery charger for a 12V system?
To build a solar charger, replace the AC-DC power supply with a solar panel array and use a dedicated MPPT (Maximum Power Point Tracking) charge controller instead of a DC-DC buck converter. Size your solar array so the Vmp (voltage at maximum power) is at least 1.5 times the battery's absorption voltage. For a 12V LiFePO4 battery (14.6V absorption), your solar panel Vmp should be between 22V and 30V. The MPPT controller will dynamically convert the higher solar voltage into the exact current required by the battery, maximizing harvest efficiency while enforcing the strict CC/CV limits required by lithium chemistries.






