Voltage Regulators: Linear and Switching Basics Guide.
A voltage regulator holds its output constant as input voltage wanders or load current changes. Raw supplies sag under load and ripple with the mains; chips tolerate neither. The regulator sits between raw supply and circuit, continuously adjusting so the load always sees a clean 5 V or 3.3 V.
Every device has one: phone chargers, Arduinos, lab supplies, motherboards. The wrong type wastes battery as heat or injects noise into sensitive circuits, making linear-versus-switching one of the most common practical decisions.
Key Concepts
- Line regulation: Output change per volt of input change; ideally microvolts.
- Load regulation: Output change from no load to full load; ideally millivolts.
- Dropout voltage: Minimum input-output difference to stay in regulation: ~2 V for a 7805, a few hundred mV for modern LDOs.
- Linear regulator: A pass transistor acts as an auto-adjusted resistor, burning excess as heat. Simple, quiet, but efficiency ≈ Vout/Vin.
- 7805 / LM317: Fixed 5 V up to 1 A, and an adjustable classic; three-terminal hobby staples.
- Switching regulator: PWM-switches an inductor's current, then filters it. 85-95 percent efficient, but with ripple and EMI.
- Buck: Steps down; Vout ≈ duty cycle x Vin. Boost: steps up via inductor flyback; Vout ≈ Vin/(1 - duty cycle).
- Feedback divider: Two resistors sample the output against an internal reference, closing the loop in both types.
Formulas
- Linear efficiency: eta = Vout/Vin; heat = (Vin - Vout) x Iload.
- Buck (ideal): Vout = D x Vin. Boost (ideal): Vout = Vin/(1 - D).
- Limits: Ideal formulas assume perfect parts in continuous mode. Real resistance, diode drops and duty-cycle limits pull outputs short of ideal; the feedback loop corrects the rest.
Worked Example
Power a 0.5 A, 5 V load from 12 V, two ways. Linear 7805: efficiency = 5/12 = 41.7 percent; heat = 7 x 0.5 = 3.5 W, needing a real heat sink. Buck at 90 percent: output 2.5 W, input 2.78 W, waste only 0.28 W, barely warm. The catch: the buck's output carries switching ripple and EMI while the 7805 is nearly silent. Designers often cascade them, buck for the big step, small LDO for the final quiet rail.
Common Misconceptions
- "A 7805 takes any input." ~35 V max, but heat is the real limit: always compute (Vin - Vout) x I.
- "Switching is always better." It wins efficiency but its noise can corrupt analog, audio and RF. Linears still rule where quiet matters.
- "Bigger capacitors fix regulation." Caps smooth ripple; only the feedback loop holds precise DC under varying load.
Real-World Applications
- Chargers: Tiny switchers make pocket-sized 5 V supplies.
- Arduino: A linear regulator turns 7-12 V into a quiet 5 V rail.
- Computers: Motherboard bucks step 12 V to ~1 V CPU rails at tens of amps.
- RF/audio: LDOs give whisper-quiet final rails after a switching pre-regulator.
Regulators trade simplicity for efficiency: linears like the 7805 burn excess as heat at Vout/Vin efficiency but stay silent; bucks and boosts hit ~90 percent with ripple and noise. The example tells it: 3.5 W of heat linear versus 0.28 W switching for the same 2.5 W load. Watch dropout so the regulator never starves, compute the heat, and pair a switcher with an LDO when you need both efficiency and quiet.
Related blogs
- Amplifier Configurations: CE, CB and CC With easy examples.
- Multistage Amplifiers: Cascading Gain Stages For students.
- Operational Amplifiers: Ideal and Practical For students.
- Feedback Amplifiers: Complete Beginner's Guide For students.
- Oscillators: RC, LC and Crystal: Complete Beginner's Guide
- Active Filters: Low-Pass, High-Pass and Band-Pass Guide.