← Back to Roadmap

🔌Power Supplies

How to convert AC mains into clean, stable DC — the foundation every circuit depends on.

Power Supply Block Diagram

1. Transformer: steps AC down (e.g., 120V → 12V AC) for safety/isolation. 2. Rectifier: diodes convert AC to pulsating DC (full bridge: 4 diodes, uses both half-cycles, efficiency ∼81%). 3. Filter: capacitor smooths the pulsating DC (larger C = less ripple, but higher inrush current). 4. Regulator: provides constant output despite input/load changes. Linear (7805, LM317) — simple, low noise, inefficient (η ≈ Vout/Vin). Switching (buck/boost) — complex, efficient (η > 85%).

Linear Regulators

The 7805 is the most famous: input 7-35V, output 5V ±5%, 1A max, internal thermal shutdown. Dropout voltage ≈2V (input must be >7V for 5V out). Excess voltage × current = heat. At 12V in, 5V out, 1A: P_dissipated = (12-5)×1 = 7W — needs heatsink! LDO (Low Dropout): dropout <0.5V. Better for battery applications (e.g., 3.7V Li-Ion → 3.3V).

⚠️ Safety Rules

⚠️ Safety Rules
NEVER work on live mains circuits. Always discharge filter capacitors (they can hold >300V DC for hours). Use fuses rated for the expected current × 1.25. Isolation transformer for bench work. One hand in pocket when probing high voltage. Earth ground your equipment. Capacitors explode if polarity is reversed — observe the stripe!

🎮 Interactive: Buck Converter

🎮 Interactive: Buck Converter
See how PWM duty cycle controls output voltage in a step-down switching regulator.
Input
12V
Output
6.0V
Efficiency
~90%
Vout = D \u00D7 Vin (ideal buck converter)