The Core Job: Stepping Down and Regulating Voltage

When makers and engineers ask how does the power supply work, they are usually looking at a black box that takes a messy, high-voltage input and spits out a clean, low-voltage DC output. At a fundamental physics level, a power supply acts as an energy valve. It does not create power; it converts and regulates it. In DC-DC conversion for battery and solar systems, the core job is to step down a higher nominal bus voltage (like 12V, 24V, or 48V) to the precise logic levels required by microcontrollers and sensors (5V, 3.3V, or 1.8V).

There are two primary ways to achieve this regulation: burning off the excess voltage as waste heat (linear regulation) or rapidly chopping the input voltage and storing the energy in magnetic and electric fields (switching regulation). Choosing the wrong topology for your specific load is the most common reason DIY power boards overheat, fail EMC testing, or introduce fatal noise into analog sensor readings.

Topology Showdown: Linear vs. Switching Power Supplies

To decide between linear vs switching for a specific load, you have to look past the marketing claims and examine the efficiency, thermal, and noise profiles. Linear regulators (like the classic LM7805 or modern LDOs) are essentially smart, variable resistors. Switching regulators (buck, boost, or buck-boost converters) are high-frequency energy transfer pumps.

Linear vs. Switching Topology Comparison
Criterion Linear Regulator (LDO) Switching Regulator (Buck)
Efficiency 30% - 60% (Highly dependent on dropout) 85% - 95% (Consistent across wide input ranges)
Heat Dissipation High. Requires heatsinks for >1A loads or large voltage drops. Low. Heat is primarily from internal MOSFET Rds(on) and inductor DCR.
Output Noise/EMI Ultra-low (<1mV ripple). Ideal for RF and precision ADCs. High (20mV - 100mV switching ripple). Generates broadband EMI.
Component Cost & Size Low cost, tiny footprint (SOT-23), no inductors required. Higher cost, larger footprint, requires shielded inductors and low-ESR caps.
Best Use Case Low current (<300mA), noise-sensitive analog/RF rails. High current (>500mA), large input-to-output voltage differentials.

According to Texas Instruments' power management guidelines, modern switching regulators have largely replaced linear regulators for primary step-down duties, but linear LDOs remain indispensable as secondary post-regulators to clean up switching noise.

Design Example: 24V Solar Battery to 5V and 3.3V Rails

Let us look at a concrete design example to see how the math dictates component selection. Suppose you are building a telemetry node for a 24V off-grid solar system. You need a 5V rail at 2A to drive mechanical relays, and a 3.3V rail at 500mA to power an ESP32-WROOM-32 and an I2C environmental sensor.

The Wrong Way: Linear Step-Down

If you attempted to use a linear regulator to drop 24V down to 5V at 2A, the math quickly exposes the flaw. The power dissipated as heat is calculated as:

P_dissipated = (V_in - V_out) * I_load

P_dissipated = (24V - 5V) * 2A = 38 Watts

Dumping 38W of heat into a small PCB without a massive, expensive extruded aluminum heatsink will trigger the regulator's thermal shutdown within seconds. Furthermore, your efficiency is a dismal 21%.

The Right Way: Switching Buck + Ultra-Low Noise LDO

For the primary 5V rail, we select a switching buck converter. The TI TPS54360 is an excellent choice here because it supports input voltages up to 60V (crucial for 24V battery systems that experience voltage spikes) and delivers up to 3.5A.

TPS54360 Buck Converter Component Values

  • Inductor: 15µH shielded ferrite (keeps ripple current at roughly 30% of max load at 500kHz switching frequency).
  • Output Capacitor: 2x 47µF X7R ceramic (low ESR to minimize output voltage ripple).
  • Boot Capacitor: 100nF X7R (placed as close to the BOOT and PH pins as physically possible).
  • Feedback Resistors: 60.4kΩ (top) and 20.0kΩ (bottom) to set the 0.8V internal reference to exactly 5.0V output.

For the 3.3V rail, we do not use a second buck converter. Switching noise will corrupt the ESP32's ADC readings. Instead, we step down from the clean 5V rail using an ultra-low noise LDO like the TI TPS7A47.

Dropout and Headroom Math: The TPS7A47 has a maximum dropout voltage of 310mV at 500mA. Our headroom is 5.0V - 3.3V = 1.7V. Since 1.7V is well above the 0.31V dropout requirement, the LDO will maintain perfect regulation. The power dissipated in the LDO is (5V - 3.3V) * 0.5A = 0.85W. By utilizing the QFN package's exposed thermal pad and pouring a 2oz copper ground plane on the PCB, this 0.85W is easily managed without a standalone heatsink.

Thermal and Derating Note

Thermal Derating Warning: The TPS54360 has a junction-to-ambient thermal resistance (θ_JA) of roughly 40°C/W on a standard 4-layer board. If your solar enclosure sits in direct sunlight and the ambient internal temperature reaches 60°C, the internal silicon junction temperature will rise rapidly under heavy load. For continuous operation in high-ambient environments, you must derate the maximum output current by 20% for every 10°C above 45°C, or add forced airflow.

Input Protection, Headroom, and Ripple Expectations

Understanding how does the power supply work in a real-world battery environment requires acknowledging that battery voltage is never stable. A 24V nominal lead-acid or LiFePO4 bank will swing from 21V (depleted) up to 28.8V (absorption/equalization phase). Worse, inductive loads switching on the same bus can cause load-dump transients exceeding 60V.

Input Range and Protection Circuitry

Your power supply input stage must survive these abuses. A robust front-end includes:

  1. Automotive Fuse: A 10A or 15A ATO blade fuse to protect against dead shorts.
  2. Reverse Polarity Protection: Instead of a standard diode which drops 0.7V and wastes heat, use a P-channel MOSFET (like the IRF9540N) or an ideal diode controller (like the LM5050) for near-zero voltage drop.
  3. Transient Voltage Suppression (TVS): A bidirectional TVS diode like the SMAJ33A clamps dangerous voltage spikes to 33V, safely protecting the 60V-rated input capacitors and switching ICs downstream.

Ripple and Noise Expectations

Switching power supplies inherently generate output voltage ripple. For a well-designed 500kHz buck converter with proper ceramic output capacitance, you should expect 20mV to 40mV peak-to-peak ripple. According to All About Circuits' regulator analysis, this ripple is perfectly acceptable for digital logic, relays, and motors. However, if you are powering a high-resolution 16-bit ADC or an RF transmitter, this 40mV ripple will manifest as jitter or dropped packets. This is exactly why the cascaded LDO topology (Buck to 5V, LDO to 3.3V) is the industry standard for mixed-signal embedded boards, as the LDO provides >60dB of Power Supply Rejection Ratio (PSRR) at switching frequencies, effectively eliminating the ripple.

Frequently Asked Questions

How does a switched-mode power supply maintain regulation under varying loads?

A switched-mode power supply (SMPS) uses a closed-loop feedback system. A resistor divider scales down the output voltage and feeds it into an internal error amplifier, which compares it to a precise voltage reference (usually 0.8V). If the load suddenly increases and the output voltage sags, the error amplifier detects the drop and instructs the internal PWM controller to increase the duty cycle of the switching MOSFET. This allows more energy to be transferred from the input capacitor, through the inductor, to the output, instantly correcting the voltage sag. This loop operates hundreds of thousands of times per second.

Why does my linear power supply get hot even with a small load?

Linear regulators dissipate power based on the voltage differential, not just the current. Even if your load is only drawing 100mA, dropping 24V down to 3.3V means the regulator is burning off 20.7V. At 100mA, that equals 2.07 Watts of pure heat. In a small SOT-223 or TO-252 package without adequate PCB copper heatsinking, 2W is enough to raise the silicon junction temperature by over 100°C, making the chip too hot to touch and potentially triggering thermal shutdown. Always calculate (V_in - V_out) * I_load to verify thermal limits.

How does the power supply work when dealing with inductive kickback?

When a switching regulator's internal MOSFET turns off, the current flowing through the inductor cannot stop instantly. This collapsing magnetic field generates a massive reverse voltage spike (inductive kickback). To prevent this spike from destroying the switching transistor, a freewheeling diode (or a synchronous low-side MOSFET in modern designs) is placed across the inductor. This diode provides a safe, low-resistance recirculation path for the inductor's stored current to flow back into the output capacitor, safely transferring the magnetic energy into electrical energy.

What is the difference between isolated and non-isolated power supply topologies?

Non-isolated topologies (like the buck, boost, and buck-boost converters discussed above) share a common ground reference between the input and output. They are cheaper, smaller, and more efficient, making them ideal for internal battery-powered systems. Isolated topologies (like flyback or forward converters) use a high-frequency transformer to physically separate the input and output circuits. This provides galvanic isolation, protecting sensitive electronics or human operators from lethal mains voltages or massive ground loops, but adds significant cost, size, and complexity to the design.