3-Wire Voltage Regulator Wiring Diagram
This is a free printable 3 wire voltage regulator wiring diagram: download the diagram as SVG or open it and print to paper or PDF.
Understand how to wire three-terminal linear voltage regulators — covering input, output, and adjust/common pins for LM317 adjustable and 78xx fixed-output regulators, with correct capacitor placement.
A three-terminal linear voltage regulator is the simplest and most reliable method for converting an unregulated DC supply into a stable, regulated DC output voltage. The device has exactly three connections: an input terminal, an output terminal, and either a common/ground terminal (in fixed-output regulators such as the 78xx series) or an adjust terminal (in adjustable regulators such as the LM317).
Fixed-output regulators (78xx series): The 7805 regulates to 5 V, the 7809 to 9 V, the 7812 to 12 V, and so on. The input connects to the unregulated DC supply, the output delivers the regulated voltage, and the common (GND) pin connects to the circuit ground return. The input voltage must exceed the output voltage by at least the minimum dropout voltage (typically 2–3 V for standard linear regulators; lower for low-dropout 'LDO' variants). A bypass capacitor on the input (0.33 µF minimum, 100 nF to 10 µF in practice) and on the output (0.1 µF minimum, 10–100 µF in practice) are essential for stability — without them the regulator oscillates at high frequency.
Adjustable regulators (LM317): The LM317 can be set to any output voltage from 1.25 V to 37 V using two external resistors (R1 and R2) forming a voltage divider between the output and adjust terminals. The reference voltage between output and adjust is fixed at 1.25 V (Vref). Output voltage is set by the formula: Vout = Vref × (1 + R2/R1) + Iadj × R2. Because Iadj (100 µA typical) is small, the simplified formula Vout ≈ 1.25 × (1 + R2/R1) is used in practice. R1 is typically 240 Ω; R2 is selected to set the desired output voltage. The adjust terminal must not be left floating.
Heat dissipation is critical: the regulator dissipates power equal to (Vin − Vout) × Iout. A 7805 delivering 1 A from a 12 V input dissipates 7 W — sufficient to destroy the device in seconds without a heatsink. Calculate thermal dissipation before selection and mount the regulator to an adequately sized heatsink, using a thermal interface pad and isolating washer where the package tab is electrically live.
How to wire 3 wire voltage regulator wiring diagram
- Determine the required output voltage and maximum load current Identify the regulated voltage required by the load and the maximum continuous current it will draw. Select a regulator that covers the required output voltage and has a current rating above the maximum load (e.g., standard TO-220 package LM317 or 78xx is rated to 1.0–1.5 A; for higher currents, use a pass transistor or switch to a switching regulator topology).
- Calculate thermal dissipation and select a heatsink Calculate power dissipated: P = (Vin − Vout) × Iout. For an LM317 supplying 0.5 A from 15 V with a 9 V output: P = (15 − 9) × 0.5 = 3 W. Using the regulator's thermal resistance junction-to-case (typically 4–5 °C/W for TO-220), calculate the required heatsink thermal resistance to keep the junction below 125 °C at the maximum ambient temperature. Select or fabricate an appropriate heatsink.
- Connect the input capacitor Connect a 0.33 µF (minimum) capacitor from the regulator's input pin to the ground (common) pin, placed as close to the regulator body as possible. In practice, a 10 µF electrolytic in parallel with a 100 nF ceramic is used. The electrolytic handles low-frequency ripple; the ceramic handles high-frequency noise. Observe polarity on the electrolytic.
- For LM317: wire the voltage-setting resistor divider Connect R1 (240 Ω, 1 % tolerance) between the output pin and the adjust pin. Connect R2 (value calculated from the output voltage formula) between the adjust pin and the circuit ground. Do not connect the adjust pin directly to ground — always use R1 and R2. Optionally, add a 10 µF capacitor from the adjust pin to ground to improve ripple rejection.
- For 78xx: connect the common (GND) pin to circuit ground On a fixed-output 78xx regulator, the common pin simply connects to the circuit ground return. No external resistors are required for fixed voltage output. The ground pin must have a low-resistance connection to the circuit ground; a poor ground connection introduces noise on the regulated output.
- Connect the output capacitor Connect a capacitor from the regulator's output pin to ground — a 10 µF electrolytic in parallel with 100 nF ceramic is standard. Larger output capacitors (47–220 µF) improve transient response under fast load changes. Check the datasheet — some regulators have a maximum output capacitance limit beyond which they may become unstable.
- Apply power and measure output voltage Apply the DC input voltage and measure the output with a multimeter. The output should be at the set regulated voltage within the regulator's specified accuracy (typically ±2 % for 78xx, ±2 % or better for LM317 with precision resistors). Measure input and output voltages under full load to verify the dropout condition is not reached. Check regulator and heatsink temperature after 10 minutes at full load.
Specifications
| LM317 output voltage range | 1.25 V to 37 V (adjustable) |
|---|---|
| LM317 internal reference voltage (Vref) | 1.25 V (between output and adjust pins) |
| 78xx series fixed output voltages available | 5 V (7805), 6 V (7806), 8 V (7808), 9 V (7809), 10 V (7810), 12 V (7812), 15 V (7815), 18 V (7818), 24 V (7824) |
| Maximum output current (TO-220 package, with heatsink) | 1.0–1.5 A continuous; derate with temperature |
| Minimum input-to-output voltage differential (dropout) | 2.0–3.0 V for standard linear regulators; 0.3–1.5 V for LDO variants |
| R1 standard value (LM317 output-to-adjust) | 240 Ω (per datasheet recommendation; 1 % tolerance) |
| Thermal resistance junction-to-case (TO-220 package, typical) | 4–5 °C/W (verify datasheet for specific device) |
| Maximum junction temperature | 150 °C (thermal shutdown activates); design target ≤ 125 °C |
Safety warnings
- Mains-powered DC power supplies feeding the voltage regulator circuit must be designed and built in compliance with the applicable electrical installation and safety standards (IEC 60364, NEC/NFPA 70, BS 7671, or AS/NZS 3000). The transformer and mains wiring must be handled only by a qualified electrician or electronics engineer.
- The tab of a TO-220 packaged 78xx or LM317 regulator is electrically connected to a circuit node (GND for 78xx; output pin for LM317). If mounting to an earthed heatsink, use an electrically insulating thermal interface pad and a nylon isolating bush for the mounting screw to prevent short circuits.
- A charged reservoir capacitor in the unregulated DC supply stores significant energy. Even with mains disconnected, a large electrolytic capacitor can deliver a painful or dangerous electric shock. Allow capacitors to discharge (or use a discharge resistor) before working on the circuit.
- Do not exceed the regulator's maximum input voltage. The LM317 has a maximum input-to-output differential of 40 V; the 78xx series has a maximum input voltage of 35–40 V depending on variant. Exceeding these limits destroys the device instantly.
- Ensure adequate heatsinking. A TO-220 linear regulator without a heatsink dissipates a maximum of approximately 1.5–2 W before thermal shutdown. For higher dissipation, always calculate the required heatsink and verify with temperature measurement under full load.
Tools needed
- Digital multimeter (DC voltage, resistance, and continuity)
- Soldering iron (15–25 W) with fine tip for through-hole or PCB work
- Resin-core (no-clean) solder
- Oscilloscope (for verifying output ripple and checking for oscillation — essential for production builds)
- Thermal interface paste or pad
- Small screwdriver for heatsink mounting hardware
- Resistor colour code chart or meter for verifying R1 and R2 values
Common mistakes
- Omitting the input and output bypass capacitors, causing the regulator to oscillate at high frequency — the output appears regulated on a multimeter but has significant AC ripple that damages sensitive loads.
- Reversing the input and output pins — 78xx and LM317 are not symmetric. Reverse connection applies reverse voltage or incorrect voltage to the device and destroys it immediately.
- Leaving the LM317 adjust pin floating or unconnected — the output voltage will be undefined and the device may be damaged.
- Mounting the regulator to a heatsink without a thermal interface material, creating high thermal resistance at the contact and causing the device to overheat despite adequate heatsink size.
- Selecting R1 and R2 with 5 % tolerance resistors when precision output voltage is required — use 1 % or better tolerance resistors for the voltage-setting divider to achieve the calculated output within specification.
Troubleshooting
- Output voltage is too low or drops under load
- Cause: Input voltage too close to output voltage (insufficient dropout margin), input capacitor omitted causing high input impedance at the regulator, or regulator in thermal shutdown due to inadequate heatsinking Fix: Measure input voltage under load — ensure it remains at least 2.5–3 V above the required output. Check input capacitor is fitted and in good condition. Measure regulator body temperature — if very hot (above 60 °C to touch), improve heatsinking. Recalculate thermal dissipation and fit a larger heatsink.
- Output has audible noise or significant AC ripple
- Cause: Output capacitor omitted or too small, causing oscillation or insufficient filtering; insufficient input reservoir capacitor in the rectified supply allowing excessive ripple through the regulator Fix: Verify output capacitor is correctly fitted (10 µF electrolytic + 100 nF ceramic) and measure AC ripple on the output with a multimeter set to AC voltage. Check input reservoir capacitor value — increase if ripple exceeds regulator's rejection capability. Ensure capacitors are placed close to the regulator terminals.
- LM317 output voltage does not match calculated value
- Cause: Resistor values incorrect or out of tolerance, poor resistor connections, adjust pin not properly connected, or input voltage insufficient for the set output voltage Fix: Measure R1 and R2 in-circuit with power removed. Recalculate expected output from actual measured resistance values using Vout = 1.25 × (1 + R2/R1). Verify input is at least 3 V above intended output. Check that the adjust pin has a clean connection to the junction of R1 and R2.
Frequently asked questions
What is the minimum input-to-output voltage difference required for a linear regulator?
Standard linear regulators (78xx series, LM317) require a minimum dropout voltage of approximately 2–3 V. For example, a 7805 needs at least 7–8 V at the input to maintain a stable 5 V output. Low-dropout (LDO) regulators can operate with as little as 0.1–0.6 V input-to-output differential. If the input drops below the minimum, the output follows it downward and regulation is lost.
Why are bypass capacitors required on the input and output of a linear regulator?
Linear regulators can oscillate if their input and output terminals have high impedance at certain frequencies. The input capacitor (typically 100 nF to 10 µF) prevents high-frequency noise from the power supply reaching the regulator's error amplifier. The output capacitor (typically 10–100 µF electrolytic plus 100 nF ceramic) ensures stability of the feedback loop and filters the output. Omitting these capacitors causes high-frequency oscillation and unstable output voltage.
How do I calculate the output voltage of an LM317?
Use the formula Vout = 1.25 × (1 + R2/R1), where 1.25 V is the internal reference voltage, R1 is the resistor between the output pin and the adjust pin (typically 240 Ω), and R2 is the resistor between the adjust pin and ground. For example, to set 9 V output: R2 = R1 × (Vout/1.25 − 1) = 240 × (9/1.25 − 1) = 240 × 6.2 = 1 488 Ω; use 1.5 kΩ standard value.
What happens if the 78xx regulator overheats?
78xx series regulators incorporate a thermal shutdown circuit that disables the output when the junction temperature exceeds approximately 150 °C. The regulator switches off and then back on as it cools, causing cyclical dropout — the output voltage oscillates on and off. This is not a design feature to be relied upon; it indicates inadequate heatsinking. Sustained thermal cycling degrades the device and reduces its service life.
Can I use a 79xx regulator for a negative voltage supply?
Yes. The 79xx series are negative-voltage equivalents of the 78xx series: the 7905 regulates to −5 V, the 7912 to −12 V, and so on. The pin assignments differ from the 78xx: on a 79xx in a TO-220 package, pin 1 is GND, pin 2 is input (negative rail), and pin 3 is output (regulated negative). Never assume the same pinout as the 78xx — verify the datasheet for the specific device and package.
Related diagrams
- 2 wire voltage regulator wiring diagram
- 4 wire voltage regulator wiring diagram
- 6 wire voltage regulator wiring diagram
- 3 phase 4 wire energy meter connection diagram with ct
- 3 phase motor wiring diagram 3 wire
- 3 phase motor wiring diagram 6 wire