When converting a 24V nominal solar battery bank—which routinely swings from 20V at rest to 29V during absorption charging—down to 5V for microcontroller logic, a synchronous or asynchronous buck converter is the mandatory topology for your power supply unit circuit diagram. Attempting this with a linear regulator will result in catastrophic thermal failure. This guide breaks down the exact schematic blocks, component math, and protection circuits required to build a robust 24V-to-5V/3.3V power supply for ESP32-based solar charge controllers and off-grid telemetry nodes.
Topology Selection: Linear vs. Switching for 24V Inputs
The most common mistake in DIY solar logic boards is underestimating the voltage differential. A 24V lead-acid or LiFePO4 bank actually operates between 24.0V and 28.8V. If you need 5V at 500mA to power a microcontroller and a few sensors, the dropout voltage is massive.
Let's run the thermal math on a linear regulator (like the classic LM317 or L7805) versus a switching buck converter:
- Linear Regulator Dissipation: P = (Vin - Vout) × I. Assuming a 26V input and 5V output at 0.5A: (26V - 5V) × 0.5A = 10.5 Watts of pure heat. Without a massive, actively cooled heatsink, the silicon junction will hit 150°C and trigger thermal shutdown in seconds.
- Switching Buck Dissipation: A modern buck converter operates at roughly 85% efficiency. Output power is 2.5W (5V × 0.5A). Input power is 2.5W / 0.85 = 2.94W. Total heat dissipated across the entire circuit is only 0.44 Watts.
The table below compares standard topologies for this specific 24V-to-5V conversion requirement.
| Topology | Efficiency (26V to 5V @ 0.5A) | Heat Dissipation | Output Noise / Ripple | BOM Cost & Footprint |
|---|---|---|---|---|
| Linear (LDO/Standard) | ~19% | 10.5W (Requires large heatsink) | < 5mV p-p (Ultra-clean) | $0.50 / Small (but heatsink adds bulk) |
| Asynchronous Buck | ~82% | ~0.55W (Mostly in catch diode) | 30-50mV p-p | $1.50 / Medium (Requires Schottky diode) |
| Synchronous Buck | ~88% | ~0.35W (Spread across IC) | 20-40mV p-p | $2.20 / Medium (Integrated MOSFETs) |
| Isolated Flyback | ~75% | ~0.85W | 50-100mV p-p | $4.50 / Large (Requires custom transformer) |
The Verdict: For solar logic boards, an asynchronous or synchronous buck converter is the only viable choice for the primary 24V-to-5V stage. We reserve linear regulators strictly for the secondary 5V-to-3.3V step-down, where the dropout voltage is small enough to manage thermally.
Anatomy of the Power Supply Unit Circuit Diagram
A professional power supply unit circuit diagram for a harsh solar environment requires more than just the regulator IC. It must be broken down into four distinct schematic blocks: Input Protection, the Switching Node, Output Filtering, and the Feedback/Secondary stage.
Input Range and Protection
Solar environments are electrically hostile. A 24V nominal panel array can easily push 38V open-circuit (Voc) on a cold winter morning. Furthermore, inductive kickback from nearby DC water pumps or contactors can cause microsecond voltage spikes exceeding 60V.
- Transient Voltage Suppression (TVS): Place a unidirectional TVS diode (e.g., SMAJ33A, clamping at 53.3V) directly across the input terminals to absorb inductive spikes.
- Reverse Polarity Protection: Do not use a standard series diode; the 0.6V forward drop at 1A wastes 0.6W and reduces your input voltage. Instead, use a P-channel MOSFET (like the IRF9540) configured as a high-side reverse polarity block. It introduces only milliohms of resistance.
- Input Capacitance: The buck converter will draw high-frequency current pulses from the source. You need a bulk aluminum electrolytic capacitor (100µF, 50V rated) to handle low-frequency ripple, paired with a 100nF X7R ceramic capacitor placed as physically close to the IC's VIN pin as possible to handle high-frequency switching transients.
Ripple and Noise Expectations
Switching regulators inherently generate output ripple. For a standard buck converter switching at 500kHz, expect 30mV to 50mV peak-to-peak ripple on the 5V rail. For digital logic (ESP32, Arduino), this is perfectly acceptable. However, if your circuit includes sensitive analog sensors (like a shunt ammeter reading battery current), this switching noise will corrupt your ADC readings. To fix this, add a secondary LC pi-filter (a 10µH ferrite bead and a 10µF ceramic capacitor) immediately before the analog sensor's VCC pin.
Design Example: 24V to 5V/3.3V Solar Logic Supply
Let's specify the exact components for a dual-rail power supply unit circuit diagram capable of delivering 5V @ 2A and 3.3V @ 500mA.
Stage 1: 24V to 5V Buck Conversion
We will use the Texas Instruments TPS5430, a rugged 5.5V-to-36V input, 3A asynchronous buck converter. It is a staple in off-grid designs due to its wide input tolerance and simple external compensation.
- Inductor Selection: The inductor value dictates your ripple current. We target a ripple current (ΔIL) of 30% of the maximum load (2A). So, ΔIL = 0.6A. Using the formula L = (Vin_max - Vout) / (ΔIL × f_sw), and assuming a worst-case 30V input and the TPS5430's 500kHz switching frequency: L = (30 - 5) / (0.6 × 500,000) = 83µH. We select a standard 82µH shielded power inductor rated for at least 3A saturation current.
- Catch Diode: Because this is an asynchronous topology, we need a fast recovery Schottky diode. The SS34 (3A, 40V) is the correct choice. Never use a slow 1N4007 rectifier here; the reverse recovery time will cause massive switching spikes and destroy the IC.
Stage 2: 5V to 3.3V LDO with Dropout Math
To get a clean 3.3V rail for the ESP32's core logic and RF transmission, we step down from the 5V rail using a Low Dropout Regulator (LDO). We select the TPS7A47, an ultra-low noise LDO.
The Dropout and Headroom Math:
The TPS7A47 has a maximum dropout voltage of 317mV at 1A (and roughly 150mV at our 500mA load). Our available headroom is Vin - Vout = 5.0V - 3.3V = 1.7V. Because 1.7V is significantly greater than the 317mV dropout requirement, the LDO will maintain tight regulation even if the 5V buck rail sags slightly under heavy load.
Thermal Check on the LDO:
Power dissipated = (5.0V - 3.3V) × 0.5A = 0.85W. While this is manageable without a massive heatsink, 0.85W in a small SOT-223 or DFN package will raise the junction temperature significantly. Ensure your PCB layout includes an exposed thermal pad with an array of stitched vias routing heat to the bottom copper pour.
| Ref Des | Component | Value / Part Number | Specs & Ratings |
|---|---|---|---|
| U1 | Primary Buck IC | TPS5430DDA | 5.5-36V Input, 3A Output, SOIC-8 |
| L1 | Power Inductor | 82µH (e.g., Bourns SRN6045) | Isat > 3.5A, Shielded |
| D1 | Catch Diode | SS34 | 40V, 3A Schottky, SMA |
| U2 | Secondary LDO | TPS7A4701 | 3.3V Fixed, 1A, Ultra-Low Noise |
| C_IN | Input Bulk Cap | 100µF / 50V | 105°C rated, Low-ESR Electrolytic |
| D_TVS | Transient Suppressor | SMAJ33A | 33V WM, 53.3V Clamp |
Thermal Derating and PCB Layout Rules
Solar charge controllers are often mounted in outdoor NEMA enclosures or attics where ambient temperatures routinely exceed 60°C (140°F) in the summer. Standard 85°C rated electrolytic capacitors will dry out and fail prematurely in these conditions. You must specify 105°C rated, low-ESR aluminum electrolytic capacitors for both the input and output bulk storage. Furthermore, the lifespan of an electrolytic capacitor doubles for every 10°C drop below its rated temperature. A 2,000-hour rated 105°C cap operating at 65°C will theoretically last 32,000 hours (roughly 3.6 years of continuous operation). Never derate your voltage ratings either; a 25V cap on a 24V solar bank will explode during an equalization charge. Always use 50V or 63V rated caps for 24V nominal systems.
Beyond component selection, the physical layout of your power supply unit circuit diagram dictates its performance. Switching regulators are highly sensitive to parasitic inductance in the PCB traces.
- Minimize the Switching Node: The trace connecting the IC's SW pin to the inductor and the catch diode carries high di/dt (rapidly changing current). Keep this copper polygon as short and wide as possible. A long, thin trace here will act as an antenna, radiating EMI that can disrupt the ESP32's 2.4GHz WiFi and Bluetooth radios.
- Current Sense Resistor Placement: If your design includes a low-side current shunt to monitor the 5V load, keep the Kelvin sense traces tightly coupled and route them directly to the differential amplifier or ADC pins, away from the inductor's magnetic field.
- Ground Planes: Do not route high-current switching ground returns through the same path as your sensitive 3.3V analog ground. Use a single, solid ground plane, but carefully partition the placement of components so that the heavy pulsing currents from the input cap, through the MOSFET, and back via the catch diode do not flow underneath the analog feedback resistors.
By respecting the thermal realities of outdoor enclosures and strictly following the high-frequency layout rules for the buck converter, your power supply unit circuit diagram will transition from a theoretical schematic to a bulletproof, field-ready solar logic board.






