Regulated Power Supply Circuit: Linear Regulator and Switching Regulator Design Explained
This is a free printable regulated power supply circuit diagram: download the diagram as SVG or open it and print to paper or PDF.
Understand how regulated power supply circuits work, including transformer-rectifier-filter-regulator topology, LM7805 linear regulation, and key design decisions for low-noise applications.
A regulated power supply converts an AC mains input (or an unregulated DC source) into a stable, accurate DC output voltage that remains essentially constant regardless of changes in load current or input voltage. Regulation is the defining characteristic that separates a proper power supply from a simple rectifier: without regulation, output voltage sags under load and rises under light load conditions, causing unstable behaviour in connected electronics.
The classic linear regulated power supply consists of four functional stages:
1. Transformer: steps the mains voltage down to an appropriate AC level for the desired DC output. For a 5 V DC regulated output, a transformer secondary of approximately 8–12 V AC is typical, accounting for rectifier drops and regulator headroom.
2. Rectifier: converts AC to pulsating DC. A full-wave bridge rectifier (four diodes in a bridge configuration) is the standard choice, providing full-wave rectification with a peak output of approximately 1.414 × the RMS secondary voltage, minus two diode forward voltage drops (approximately 1.4 V total for silicon diodes).
3. Filter capacitor: smooths the pulsating rectifier output to a relatively smooth DC with a ripple component. The capacitance value is calculated from the load current, ripple frequency (twice the supply frequency for full-wave), and acceptable ripple voltage. A rule of thumb for initial design is 1000–2200 µF per ampere of load current.
4. Voltage regulator: maintains the output voltage constant as load and input vary. The LM7805 (fixed 5 V output) and its 78XX family are the most widely used linear three-terminal regulators. The LM317 provides adjustable output from approximately 1.25 V to 37 V using two external resistors. Linear regulators dissipate the difference between input and output voltage as heat (P = (Vin − Vout) × Iload) and require a heatsink at significant load currents.
Switching regulators (buck, boost, buck-boost) are more efficient but introduce switching noise and require more complex design. For noise-sensitive analogue circuits, audio, and measurement applications, a well-designed linear supply remains the preferred choice despite its lower efficiency.
Output decoupling capacitors (100 nF ceramic in parallel with 10–47 µF electrolytic) at the regulator output are mandatory for stability — the 78XX family particularly requires a minimum capacitance on the output to prevent oscillation.
How to wire regulated power supply circuit diagram
- Determine output voltage and current requirements Define the regulated output voltage and maximum load current. Add a 20–30% margin to the maximum current for derating. Note whether the application is noise-sensitive (favouring a linear regulator) or high-efficiency (favouring a switching regulator).
- Select the transformer For a linear supply using a 78XX series regulator, the transformer secondary RMS voltage should equal the desired output voltage plus regulator headroom (2–3 V minimum) plus rectifier drops (1.4 V for a bridge rectifier), divided by 1.414 (to convert from peak to RMS). Example: for 5 V output at 1 A: minimum secondary peak = 5 + 3 + 1.4 = 9.4 V peak, so RMS = 9.4 / 1.414 ≈ 6.6 V AC. A standard 9 V AC secondary provides adequate headroom. Transformer VA rating must exceed output power divided by an assumed 70% efficiency.
- Wire the bridge rectifier Use a bridge rectifier module or four matched 1N4007 diodes. Connect the two AC inputs of the bridge to the transformer secondary terminals. The bridge positive output (+) connects to the filter capacitor positive terminal and the regulator input. The bridge negative output (−) connects to the filter capacitor negative terminal and the circuit ground. Observe correct diode polarity — the cathode (banded end) of each 1N4007 faces the positive output direction.
- Install the filter capacitor Connect an electrolytic capacitor (calculated per the formula above, minimum 1000 µF per amp) across the rectifier output (+ to positive rail, − to ground). Observe polarity — reversed electrolytic capacitors will fail, possibly venting or rupturing. Add a 100 nF ceramic capacitor in parallel to suppress high-frequency noise.
- Wire the voltage regulator For the LM7805: Input pin (pin 1) connects to the positive rail from the filter capacitor. Ground pin (pin 2) connects to the circuit ground rail. Output pin (pin 3) is the regulated 5 V output. Add a 100 nF ceramic capacitor from input to ground and a 100 nF ceramic capacitor from output to ground, both placed as close to the regulator as possible. Add a 10 µF electrolytic in parallel with the output ceramic for low-frequency stability.
- Calculate and fit a heatsink Calculate power dissipation: P = (Vin_DC − Vout) × Iload. For the LM7805 in a TO-220 package, the thermal resistance junction-to-case is approximately 5 °C/W. Add the thermal resistance of the heatsink to case and heatsink to ambient to calculate junction temperature. Junction temperature must not exceed 125 °C (derate to 100 °C for reliability). Apply thermal compound between regulator and heatsink. Use an insulating pad if the heatsink is electrically exposed.
- Test and verify output Apply mains input and measure: (1) transformer secondary AC voltage (should match specification), (2) rectified DC voltage before regulator (should be approximately 1.414 × secondary RMS, minus 1.4 V diode drops), (3) regulated output voltage (should be within the regulator's accuracy specification — typically ±2%). Apply a resistive load equal to the rated current and remeasure output voltage under load. The output should remain stable (within ±50 mV) as load varies.
Specifications
| LM7805 output voltage | 5 V DC ±2% (verify current datasheet) |
|---|---|
| LM7805 maximum output current | 1 A (with heatsink) — verify datasheet for thermal limit at specific dissipation |
| LM7805 minimum input-output differential (dropout voltage) | Approximately 2 V — input must be at least 7 V for 5 V output (verify datasheet) |
| Rectifier output peak voltage (full-wave bridge) | (Secondary RMS × 1.414) − 1.4 V (two diode drops) |
| Filter capacitor rule of thumb | 1000–2200 µF per ampere of load current (verify with C = Iload / (2 × f × ΔV)) |
| Ripple frequency (full-wave bridge at 50 Hz mains) | 100 Hz (twice supply frequency) |
| Applicable component standard | IEC 60065, IEC 61558 (transformers), IEC 60384 (capacitors) — verify datasheet for specific parts |
Safety warnings
- Mains voltage (230 V AC or 110 V AC) is present in the primary circuit of this power supply and is lethal. All mains-voltage wiring must be performed by a qualified electrician and comply with applicable electrical installation standards (IEC 60364, NEC/NFPA 70, BS 7671, AS/NZS 3000). Mains connections must be made inside a suitable rated enclosure with covers that prevent accidental contact.
- Always fit a correctly rated mains fuse in series with the transformer primary. An unfused transformer primary is a fire hazard — a winding short circuit with no fuse will cause catastrophic failure.
- The filter capacitor retains a charge even after the mains is disconnected. Before touching any internal components, discharge the filter capacitor through a 1 kΩ resistor to ground and verify zero voltage with a multimeter.
- Electrolytic capacitors are polarised. A reversed electrolytic capacitor will fail when voltage is applied — it may vent hot electrolyte, rupture, or in severe cases explode. Always verify polarity (positive lead to positive rail) before applying power.
- Calculate and verify junction temperature for the voltage regulator before operating at rated load. Operating a linear regulator above its junction temperature limit causes thermal shutdown, accelerated aging, or permanent failure. Always use a heatsink for dissipations above 1 W.
Tools needed
- Digital multimeter (AC and DC voltage, current)
- Oscilloscope (for ripple voltage measurement and output noise verification)
- Bench power supply or Variac (for initial testing at reduced voltage)
- Soldering iron and solder
- Desoldering pump or wick
- Wire strippers and side cutters
- Heatsink compound applicator
- Resistive load bank or dummy load resistors (for load testing)
Common mistakes
- Installing the filter electrolytic capacitor with reversed polarity — applies reverse voltage to the capacitor immediately on power-up, causing rapid failure and potential rupture.
- Omitting the output decoupling capacitors on the LM7805 — the regulator may oscillate (particularly with long output cables), producing AC output noise that corrupts connected digital and analogue circuits.
- Using an undersized transformer — the transformer VA rating must account for the efficiency losses of rectification and regulation. An undersized transformer saturates under load, causing excessive secondary voltage sag and AC waveform distortion.
- Failing to calculate and manage regulator heat dissipation — a TO-220 LM7805 without a heatsink will enter thermal shutdown at dissipations above approximately 1.5–2 W in free air.
- Choosing a transformer secondary voltage too high for the required regulator input-output differential — excess voltage increases regulator power dissipation unnecessarily. Minimise the voltage differential while maintaining adequate headroom.
- Not fusing the mains primary — the only overcurrent protection between a mains supply and a transformer winding short is the primary fuse. Omitting it creates a significant fire risk.
Troubleshooting
- Output voltage is correct unloaded but sags under load
- Cause: Transformer VA rating is undersized, filter capacitor is too small, or rectifier diodes are rated below load current and are dropping more voltage than specified. Fix: Measure DC voltage before the regulator under load. If it drops below the regulator's minimum input requirement (approximately 7–8 V for LM7805), the transformer or capacitor is undersized. Calculate required filter capacitance per the formula and verify transformer VA rating exceeds load power.
- Output voltage is significantly higher or lower than expected
- Cause: Wrong transformer secondary voltage selected, regulator part number mismatch (e.g. LM7812 fitted in LM7805 position), or regulator wired with incorrect pinout. Fix: Measure transformer secondary AC voltage and compare with design specification. Verify regulator part number marking matches the circuit design. Check regulator pinout against the datasheet — TO-220 package pin 1/2/3 assignment varies between manufacturers for some devices.
- High ripple on DC output despite correct capacitor size
- Cause: Electrolytic capacitor has high ESR (equivalent series resistance) due to age or poor quality, output decoupling capacitors omitted, or bridge rectifier diode with too high a forward voltage drop. Fix: Measure AC ripple at the filter capacitor with an oscilloscope. Replace the electrolytic capacitor with a low-ESR type. Add or check 100 nF ceramic decoupling at the regulator output. Verify diode forward voltage drop under load.
Frequently asked questions
What is the difference between a regulated and unregulated power supply?
An unregulated supply uses only a transformer, rectifier, and filter capacitor. Its output voltage varies with load — rising at light load and sagging under heavy load, typically by 10–30%. A regulated supply adds a voltage regulator stage that maintains the output voltage within typically 1–2% regardless of load changes and input voltage variations. Regulated supplies are required for precision analogue circuits, microcontrollers, and most electronic equipment.
How do I calculate the filter capacitor value for a regulated power supply?
Use C = Iload / (2 × f × ΔV), where Iload is the maximum load current in amperes, f is the supply frequency (50 Hz or 60 Hz), and ΔV is the acceptable peak-to-peak ripple voltage in volts. For a 1 A load at 50 Hz with 1 V allowable ripple: C = 1 / (2 × 50 × 1) = 10 000 µF. A practical rule of thumb is 1000–2200 µF per ampere of load current, then verify with the formula.
Why does the LM7805 get hot?
The LM7805 (and all linear regulators) dissipate the difference between input and output voltage as heat. Power dissipated = (Vin − Vout) × Iload. For a 7805 with 12 V input delivering 5 V at 500 mA: P = (12 − 5) × 0.5 = 3.5 W. The device requires a heatsink for any dissipation above approximately 1 W. Always check the datasheet's thermal resistance specifications and calculate junction temperature to ensure safe operation.
What is the minimum input voltage for an LM7805?
The LM7805 requires a minimum input voltage of approximately 7–8 V DC at the regulator input to maintain regulation (providing at least 2–3 V headroom above the 5 V output). The exact minimum is specified as the 'minimum input-output voltage differential' in the datasheet — typically 2 V minimum but verify the current datasheet. When the input drops below this headroom, regulation is lost and the output follows the input.
Should I use a linear or switching regulator for my project?
Use a linear regulator for: noise-sensitive analogue circuits, audio amplifiers, measurement equipment, RF circuits, or applications where the input-to-output voltage difference is small (reducing heat dissipation). Use a switching regulator for: battery-powered devices, higher current loads (above 1–2 A), applications where efficiency matters, or where the input voltage is significantly higher than the output. Switching regulators introduce switching noise that requires careful filtering in analogue systems.
Related diagrams
- 12v regulated power supply circuit diagram
- 12v dc power supply circuit diagram
- 5 wires universal power supply module circuit diagram
- atx power supply circuit diagram
- dc power supply circuit diagram
- power supply circuit diagram with explanation