Linear vs switching regulators (efficiency matters)
Power rarely arrives at the voltage a device wants. A battery sits at ~12V; the electronics inside want 5V or 3.3V; the panel might deliver 18V. Something has to convert between these levels. That something is a voltage regulator, and there are two families — with a huge efficiency difference between them.
Linear regulators: simple, but wasteful
A linear regulator (e.g., an LDO, building on L2's transistor) drops voltage by burning the difference as heat. To turn 12V into 5V at 1A, it dissipates:
(12V − 5V) × 1A = 7 watts of heat
while delivering only 5W to the load. That's worse than 50% efficient — most of the energy becomes waste heat. Linear regulators are cheap, quiet (no electrical noise), and fine for tiny loads where the dropped voltage is small. But for any real power, they're disqualified by that heat.
Switching regulators: efficient power conversion
A switching regulator doesn't burn the excess — it rapidly switches the energy on and off through an inductor and capacitor (L1's components doing real work), transferring energy from input to output with little loss. Typical efficiency is 85–95%+.
The two you'll meet:
- Buck converter — steps voltage down (e.g., 12V → 5V) efficiently. This is what turns battery voltage into the lower voltages electronics need.
- Boost converter — steps voltage up (e.g., 3.7V → 5V) efficiently.
Because they waste so little, switching regulators run cool and don't drain the battery to make heat. This is why every serious power system uses switching regulators — in a solar generator, the inverter, the charge controller, and the USB outputs are all switching converters under the hood.
The trade-off
Switching regulators are more complex and can introduce a little electrical noise (the switching ripple), which is why ultra-sensitive analog circuits sometimes add a small linear regulator after a switching one — efficient bulk conversion, then a clean final step. But for moving real power, switching wins decisively.
Why this matters for the product
Efficiency isn't an abstract virtue here. Every watt wasted as heat in a regulator is:
- Energy stolen from the battery — shorter runtime for the customer.
- Heat inside a sealed enclosure — which (from Lesson 2) the battery does not appreciate.
So the choice of efficient switching conversion directly improves both runtime and longevity. The next slide applies regulation to the battery itself: the specific profile used to charge lithium safely.
To efficiently step 12V down to 5V at high current (minimal wasted heat), use a:
Charging LiFePO4: the CC/CV profile
You can't charge a lithium battery by just connecting a voltage to it — that would let huge current flow into an empty pack and overshoot the safe voltage on a full one. Lithium charging follows a specific, two-stage recipe: CC/CV.
Constant Current, then Constant Voltage
Stage 1 — Constant Current (CC), the "bulk" phase. While the battery is well below full, the charger pushes a steady, safe current into it (chosen within the cell's C-rate limit). The battery's voltage rises gradually as it fills. This is where most of the energy goes in, and it's the fast part of the charge.
Stage 2 — Constant Voltage (CV), the "absorption" phase. Once the pack reaches its target full voltage, the charger holds that voltage steady and lets the current taper off naturally. As the battery approaches full, it accepts less and less current. When the current drops to a small threshold, the battery is full and charging stops.
The shape, plotted over time: current is flat then falls; voltage rises then flattens. That CC-then-CV curve is the signature of correct lithium charging.
Why both stages are needed
- CC alone would overshoot — once full, a fixed current would force the voltage past the safe limit and damage (or endanger) the cells.
- CV alone would mean enormous inrush current into an empty pack — also damaging.
CC/CV gets the best of both: fast, controlled bulk charging, then a gentle, safe top-off. It charges the pack fully without ever crossing a limit.
LiFePO4 specifics
LiFePO4 uses CC/CV like all lithium, but with its own voltage values (it has a different cell voltage and full-charge voltage than standard Li-ion). This is why you must use a LiFePO4-appropriate charger — a charger set for standard Li-ion voltages will mistreat a LiFePO4 pack. The charger and the chemistry have to match.
The BMS (Lesson 2) sits behind all of this as the backstop: even if a charger misbehaves, the BMS will cut off before the pack is over-charged. But the charger doing CC/CV correctly is the primary control; the BMS is the safety net.
The practical takeaway
When a customer asks "can I charge it with any charger?" or "why does the last bit take longer?", the answers come straight from CC/CV:
- Use the matched charger (LiFePO4 voltages) — not just any lithium charger.
- The charge slows down near full on purpose (the CV taper) — that's correct behaviour, not a fault.
The next slide covers the special charger that sits between a solar panel and the battery — the charge controller, and the PWM vs MPPT choice.
The standard lithium-battery charging profile is:
Solar charge controllers: PWM vs MPPT
A solar panel and a battery can't simply be wired together — the panel's voltage swings with sunlight, and the battery needs the controlled CC/CV charging from the last slide. The device that sits between them is the solar charge controller. There are two kinds, and the difference matters for how much energy you actually harvest.
Why you can't connect a panel straight to a battery
A panel's output voltage and current vary constantly with sunlight, temperature, and load. Connected directly, the battery would be charged erratically — sometimes under-, sometimes over-voltage — with no CC/CV control. The charge controller regulates this: it takes the panel's messy output and delivers proper, safe charging to the battery.
PWM: simple and cheap
A PWM (Pulse Width Modulation) controller works by effectively connecting and disconnecting the panel to the battery rapidly, pulling the panel's voltage down to whatever the battery is at. It's simple, cheap, and reliable.
Its weakness: it throws away the panel's excess voltage. If an 18V panel charges a 13V battery, a PWM controller drags the panel down to 13V — and the 5V of "headroom" is simply wasted. You get the panel's current, but at the battery's voltage, not the panel's optimal point.
MPPT: smarter and higher-yield
An MPPT (Maximum Power Point Tracking) controller is a switching converter (Lesson 1's buck idea) with a brain. It does two clever things:
- Tracks the Maximum Power Point — continuously finds the exact voltage/current combination where the panel produces the most power, and keeps the panel operating there.
- Down-converts the excess voltage into extra current — instead of wasting that 5V of headroom, it efficiently converts the panel's higher voltage into more charging amps for the battery.
The result: an MPPT controller harvests typically 10–30% more energy than PWM from the same panel — and the advantage is largest exactly when you need it most: poor light, cold panels, or when the panel voltage sits well above the battery voltage.
Choosing between them
- PWM suits small, cost-sensitive systems where the panel voltage closely matches the battery voltage and the extra harvest isn't worth the cost.
- MPPT suits larger systems and any case where maximising daily harvest matters — which is most serious solar generators. The higher cost pays back through more usable energy every day.
For solar generators, where wringing the most energy out of each day of sun directly determines how well the product serves the customer, MPPT is the natural choice for anything beyond the smallest units.
You now understand how energy gets in and is regulated. The next lesson goes to the source itself — the solar panel: how it works, how it's rated, and how to size an array.
An MPPT solar charge controller beats a simpler PWM one by: