Regulated Power Supply Circuit: Linear Regulator and Switching Regulator Design Explained

Regulated Power Supply Circuit Diagram — circuit diagram showing component connections+-AC MainsStep-Down XfmrD1 BridgeC1 1000μFREGLM7805 5V230V AC UtilityRegulated Power SupplyAC -> Transformer -> Rectifier -> Filter -> Regulator
Regulated Power Supply Circuit: Linear Regulator and Switching Regulator Design Explained — interactive diagram. Open it in the editor to customise components and wiring.

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

  1. 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).
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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 voltage5 V DC ±2% (verify current datasheet)
LM7805 maximum output current1 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 thumb1000–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 standardIEC 60065, IEC 61558 (transformers), IEC 60384 (capacitors) — verify datasheet for specific parts

Safety warnings

Tools needed

Common mistakes

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

Free electrical calculators

Edit this diagram free in the online editor