When integrating a power supply in a circuit for embedded systems, you are not just stepping down voltage; you are managing thermal dissipation, switching noise, and transient protection. The direct answer to sizing and selecting your local regulation network is to calculate your maximum steady-state current, add a 20% transient margin, and choose your topology based on the input-to-output differential (headroom) and your load's noise sensitivity. For a 24V nominal battery or solar input stepping down to 5V and 3.3V logic, a two-stage hybrid approach—a switching buck converter followed by a low-dropout regulator (LDO)—provides the best balance of efficiency and clean RF power.

Topology Showdown: Linear vs. Switching for Your Load

Choosing between a linear regulator and a switching converter dictates your board's thermal profile and electromagnetic compatibility (EMC). Linear regulators act as variable resistors, burning excess voltage as heat. Switching converters use inductors and capacitors to transfer energy in discrete packets, achieving much higher efficiency but introducing high-frequency ripple.

Topology Comparison for Embedded Power Paths
Parameter Linear (LDO) Switching (Buck)
Efficiency Vout / Vin (e.g., 27% for 12V to 3.3V) 85% – 95% typical
Heat Dissipation High: P = (Vin - Vout) × I Low: P = Pout × ((1/Eff) - 1)
Output Noise Ultra-low (< 10µV RMS) High (20mV – 50mV p-p switching ripple)
BOM Cost & Footprint Low ($0.10 - $0.50), tiny (SOT-23) Moderate ($0.80 - $2.00), larger (needs inductor)
Best Use Case RF modules, ADCs, sensors, low-current logic Main distribution, motors, high-current logic

Consider a 12V to 3.3V rail powering an ESP32 drawing 500mA. If you use a linear regulator like the LM317, the heat dissipated is (12V - 3.3V) × 0.5A = 4.35W. A standard TO-220 package without a massive heatsink will hit thermal shutdown in seconds. A switching buck converter handling the same task dissipates roughly 0.3W, making it mandatory for high differentials.

Design Example: 24V to 5V/3.3V Embedded Node Power Path

Let us design a robust power supply in a circuit for a remote solar-powered telemetry node. The raw input is a 24V nominal lead-acid or LiFePO4 battery bank, which can float as high as 28.8V during equalization charging. We need a 5V rail for a relay module (1A max) and a clean 3.3V rail for an ESP32 and an I2C sensor array (500mA max).

Stage 1: 24V to 5V Switching Buck

We select the Texas Instruments TPS5420, a 2A, 36V-capable step-down converter.

  • Input Range: 5.5V to 36V (safely covers our 28.8V max battery float).
  • Switching Frequency: 500kHz internal oscillator.
  • Inductor Selection: For a 5V output at 2A, a 15µH shielded ferrite inductor (e.g., Würth 744774115) keeps ripple current around 30% of max load.
  • Output Capacitor: A 100µF low-ESR electrolytic in parallel with a 10µF X7R ceramic. The ceramic handles the high-frequency ESL spikes, while the electrolytic stores bulk energy.

Stage 2: 5V to 3.3V Low-Dropout Regulator

To eliminate the 500kHz switching ripple from the buck converter before it reaches the ESP32's sensitive RF frontend, we use an LDO. The AMS1117-3.3 is a common, low-cost choice.

  • Dropout Math: The AMS1117-3.3 has a maximum dropout voltage of 1.1V at 500mA. With a 5V input and 3.3V output, our headroom is 1.7V. This leaves a safe 0.6V margin above the dropout threshold.
  • Thermal Check: Power dissipated on the LDO is (5V - 3.3V) × 0.5A = 0.85W. In a SOT-223 package with a standard 1-square-inch PCB copper pour acting as a heatsink (theta-JA ≈ 50°C/W), the junction temperature rise is roughly 42.5°C. At a 40°C ambient enclosure temperature, the silicon sits at 82.5°C—well below the 125°C limit.
⚠️ Thermal Derating Note: Always check the manufacturer's thermal derating curves. If your enclosure lacks ventilation and ambient temps exceed 60°C, the AMS1117's internal thermal shutdown may trip at loads above 300mA. In high-ambient environments, switch to a modern high-PSRR LDO with a lower quiescent current and better thermal packaging, like the TI TLV75733P.

Input Protection, Thermal Derating, and Ripple Reality

A power supply in a circuit is only as reliable as its protection network. 24V battery systems are hostile environments characterized by load dumps, inductive kickback from nearby motors, and accidental reverse polarity.

Input Range and Protection

Do not rely on the buck converter's internal absolute maximum ratings to survive real-world transients. A 24V system can easily see 40V spikes when a heavy inductive load is switched off.

  1. TVS Diode: Place a bidirectional Transient Voltage Suppression diode, such as the SMAJ24CA, directly at the board input. It clamps transients at 38.9V, safely below the TPS5420's 40V absolute max.
  2. Reverse Polarity: Avoid standard series diodes (which drop 0.4V to 0.7V and waste power). Use a P-channel MOSFET (like the SI2301) configured as a high-side reverse polarity protector. It drops only millivolts when forward-biased.
  3. Overcurrent: A 3A resettable PPTC polyfuse limits catastrophic fault currents if a downstream capacitor shorts.

Ripple and Noise Expectations

Switching regulators inherently generate output voltage ripple. The peak-to-peak ripple is largely determined by the output capacitor's Equivalent Series Resistance (ESR). If your 100µF output capacitor has an ESR of 0.1Ω, and the inductor ripple current is 0.4A, the resulting ripple voltage is 0.4A × 0.1Ω = 40mV p-p. While fine for 5V relays, 40mV of 500kHz noise will degrade the Signal-to-Noise Ratio (SNR) of a 12-bit ADC. This is exactly why the secondary LDO stage is critical; an LDO with a Power Supply Rejection Ratio (PSRR) of 60dB at 500kHz will attenuate that 40mV ripple down to a negligible 40µV.

Frequently Asked Questions

How do I calculate the right power supply in a circuit with mixed RF and motor loads?

Calculate the continuous current draw of every component, then add the peak transient currents. Motors can draw 5x their stall current on startup, and RF modules like the ESP32 draw 300mA+ peaks during transmission. Sum the continuous loads, add the highest simultaneous transient peak, and add a 20% safety margin. For mixed loads, use separate regulation branches: a heavy-duty buck for the motors and a dedicated, heavily filtered LDO branch for the RF and logic to prevent motor back-EMF from resetting your microcontroller.

What are the ripple and noise expectations for a switching power supply in a circuit?

For a standard hobbyist or industrial buck converter operating between 300kHz and 1MHz, expect 20mV to 50mV peak-to-peak switching ripple on the output rail. You will also see high-frequency ringing (up to 100mV+) on the oscilloscope if your probe ground lead is too long. To measure true ripple, use a coaxial probe tip or a ground spring. If your application requires less than 5mV of ripple (such as precision audio or 16-bit ADC references), you must follow the switching stage with an LDO or a passive LC pi-filter.

How do I protect a power supply in a circuit from solar load dumps and reverse polarity?

For solar and battery systems, always use a TVS diode rated for your nominal voltage (e.g., SMAJ24CA for a 24V system) to clamp inductive load dumps. For reverse polarity protection, use a P-channel MOSFET on the high side rather than a series Schottky diode; the MOSFET avoids the 0.3V to 0.5V continuous voltage drop and the associated heat generation. Finally, ensure your bulk input capacitors are rated for at least 1.5x the maximum float voltage of your battery bank to prevent dielectric breakdown during equalization charges.