# Linear regulator

In electronics, a linear regulator is a voltage regulator used to maintain a steady voltage. The resistance of the regulator varies in accordance with both the input voltage and the load, resulting in a constant voltage output. The regulating circuit varies its resistance, continuously adjusting a voltage divider network to maintain a constant output voltage and continually dissipating the difference between the input and regulated voltages as waste heat. By contrast, a switching regulator uses an active device that switches on and off to maintain an average value of output. Because the regulated voltage of a linear regulator must always be lower than input voltage, efficiency is limited and the input voltage must be high enough to always allow the active device to reduce the voltage by some amount.
Linear regulators may place the regulating device in parallel with the load (shunt regulator) or may place the regulating device between the source and the regulated load (a series regulator). Simple linear regulators may only contain as little as a Zener diode and a series resistor; more complicated regulators include separate stages of voltage reference, error amplifier and power pass element. Because a linear voltage regulator is a common element of many devices, single-chip regulators ICs are very common. Linear regulators may also be made up of assemblies of discrete solid-state or vacuum tube components.
Despite their name, linear regulators are non-linear circuits because they contain non-linear components (such as Zener diodes, as shown below in the simple shunt regulator) and because the output voltage is ideally constant (and a circuit with a constant output that does not depend on its input is a non-linear circuit).

## Overview

The transistor (or other device) is used as one half of a voltage divider to establish the regulated output voltage. The output voltage is compared to a reference voltage to produce a control signal to the transistor which will drive its gate or base. With negative feedback and good choice of compensation, the output voltage is kept reasonably constant. Linear regulators are often inefficient: since the transistor is acting like a resistor, it will waste electrical energy by converting it to heat. In fact, the power loss due to heating in the transistor is the current multiplied by the voltage difference between input and output voltage. The same function can often be performed much more efficiently by a switched-mode power supply, but a linear regulator may be preferred for light loads or where the desired output voltage approaches the source voltage. In these cases, the linear regulator may dissipate less power than a switcher. The linear regulator also has the advantage of not requiring magnetic devices (inductors or transformers) which can be relatively expensive or bulky, being often of simpler design, and cause less electromagnetic interference. Some designs of linear regulators use only transistors, diodes and resistors, which are easier to fabricate into an integrated circuit, further reducing their weight, footprint on a PCB, and price.
All linear regulators require an input voltage at least some minimum amount higher than the desired output voltage. That minimum amount is called the dropout voltage. For example, a common regulator such as the 7805 has an output voltage of 5 V, but can only maintain this if the input voltage remains above about 7 V, before the output voltage begins sagging below the rated output. Its dropout voltage is therefore 7 V − 5 V = 2 V. When the supply voltage is less than about 2 V above the desired output voltage, as is the case in low-voltage microprocessor power supplies, so-called low dropout regulators (LDOs) must be used.
When the output regulated voltage must be higher than the available input voltage, no linear regulator will work (not even a low dropout regulator). In this situation, a boost converter or a charge pump must be used. Most linear regulators will continue to provide some output voltage approximately the dropout voltage below the input voltage for inputs below the nominal output voltage until the input voltage drops significantly.
Linear regulators exist in two basic forms: shunt regulators and series regulators. Most linear regulators have a maximum rated output current. This is generally limited by either power dissipation capability, or by the current carrying capability of the output transistor.

### Shunt regulators

The shunt regulator works by providing a path from the supply voltage to ground through a variable resistance (the main transistor is in the "bottom half" of the voltage divider). The current through the shunt regulator is diverted away from the load and flows directly to ground, making this form usually less efficient than the series regulator. It is, however, simpler, sometimes consisting of just a voltage-reference diode, and is used in very low-powered circuits where the wasted current is too small to be of concern. This form is very common for voltage reference circuits. A shunt regulator can usually only sink (absorb) current.

### Series regulators

Series regulators are the more common form; they are more efficient than shunt designs. The series regulator works by providing a path from the supply voltage to the load through a variable resistance, usually a transistor (in this role it is usually termed the series pass transistor); it is in the "top half" of the voltage divider - the bottom half being the load. The power dissipated by the regulating device is equal to the power supply output current times the voltage drop in the regulating device. For efficiency and reduced stress on the pass transistor, designers try to minimize the voltage drop but not all circuits regulate well once the input (unregulated) voltage comes close to the required output voltage; those that do are termed low dropout regulators, A series regulator can usually only source (supply) current, unlike shunt regulators.

## Simple shunt regulator

The image shows a simple shunt voltage regulator that operates by way of the Zener diode's action of maintaining a constant voltage across itself when the current through it is sufficient to take it into the Zener breakdown region. The resistor R$_1$ supplies the Zener current $I_{\mathrm {Z} }$ as well as the load current I$_{R2}$ (R$_2$ is the load). R$_1$ can be calculated as $R1={\frac {V_{\mathrm {S} }-V_{\mathrm {Z} }}{I_{\mathrm {Z} }+I_{\mathrm {R2} }}}$, where $V_{\mathrm {Z} }$ is the Zener voltage, and I$_{R2}$ is the required load current.
This regulator is used for very simple low-power applications where the currents involved are very small and the load is permanently connected across the Zener diode (such as voltage reference or voltage source circuits). Once R$_1$ has been calculated, removing R$_2$ will allow the full load current (plus the Zener current) through the diode and may exceed the diode's maximum current rating, thereby damaging it. The regulation of this circuit is also not very good because the Zener current (and hence the Zener voltage) will vary depending on $V_{\mathrm {S} }$ and inversely depending on the load current. In some designs, the Zener diode may be replaced with another similarly functioning device, especially in an ultra-low-voltage scenario, like (under forward bias) several normal diodes or LEDs in series.

## Simple series regulator

Adding an emitter follower stage to the simple shunt regulator forms a simple series voltage regulator and substantially improves the regulation of the circuit. Here, the load current I$_{R2}$ is supplied by the transistor whose base is now connected to the Zener diode. Thus the transistor's base current (I$_B$) forms the load current for the Zener diode and is much smaller than the current through R$_2$. This regulator is classified as "series" because the regulating element, viz., the transistor, appears in series with the load. R$_1$ sets the Zener current (I$_Z$) and is determined as $R1={\frac {V_{\mathrm {S} }-V_{\mathrm {Z} }}{I_{\mathrm {Z} }+K\cdot I_{\mathrm {B} }}}$ where, V$_Z$ is the Zener voltage, I$_B$ is the transistor's base current, K = 1.2 to 2 (to ensure that R$_1$ is low enough for adequate I$_B$) and $I_{\mathrm {B} }={\frac {I_{\mathrm {R2} }}{h_{\mathrm {FE(min)} }}}$ where, I$_{R2}$ is the required load current and is also the transistor's emitter current (assumed to be equal to the collector current) and h$_{FE(min)}$ is the minimum acceptable DC current gain for the transistor.
This circuit has much better regulation than the simple shunt regulator, since the base current of the transistor forms a very light load on the Zener, thereby minimising variation in Zener voltage due to variation in the load. Note that the output voltage will always be about 0.65 V less than the Zener due to the transistor's V$_{BE}$ drop. Although this circuit has good regulation, it is still sensitive to the load and supply variation. This can be resolved by incorporating negative feedback circuitry into it. This regulator is often used as a "pre-regulator" in more advanced series voltage regulator circuits.
The circuit is readily made adjustable by adding a potentiometer across the Zener, moving the transistor base connection from the top of the Zener to the pot wiper. It may be made step adjustable by switching in different Zeners. Finally, it is occasionally made microadjustable by adding a low value pot in series with the Zener; this allows a little voltage adjustment, but degrades regulation (see also capacitance multiplier).

## Fixed regulators

Three-terminal linear regulators, used for generating "fixed" voltages, are readily available. They can generate plus or minus 3.3 V, 5 V, 6 V, 9 V, 12 V, or 15 V, with their performance generally peaking around a load of 1.5 Amperes.
The "78xx" series (7805, 7812, etc.) regulate positive voltages while the "79xx" series (7905, 7912, etc.) regulate negative voltages. Often, the last two digits of the device number are the output voltage (e.g., a 7805 is a +5 V regulator, while a 7915 is a −15 V regulator). There are variants on the 78xx series ICs, such as 78L and 78S, some of which can supply up to 2 A.

### Adjusting fixed regulators

By adding another circuit element to a fixed voltage IC regulator, it is possible to adjust the output voltage. Two example methods are:
* A Zener diode or resistor may be added between the IC's ground terminal and ground. Resistors are acceptable where ground current is constant, but are ill-suited to regulators with varying ground current. By switching in different Zener diodes, diodes or resistors, the output voltage can be adjusted in a step-wise fashion.
* A potentiometer can be placed in series with the ground terminal to increase the output voltage variably. However, this method degrades regulation, and is not suitable for regulators with varying ground current.

## Variable regulators

An adjustable regulator generates a fixed low nominal voltage between its output and its adjust terminal (equivalent to the ground terminal in a fixed regulator). This family of devices includes low power devices like LM723 and medium power devices like LM317 and L200. Some of the variable regulators are available in packages with more than three pins, including dual in-line packages. They offer the capability to adjust the output voltage by using external resistors of specific values.
For output voltages not provided by standard fixed regulators and load currents of less than 7 A, commonly available adjustable three-terminal linear regulators may be used. The LM317 series (+1.25 V) regulates positive voltages while the LM337 series (−1.25 V) regulates negative voltages. The adjustment is performed by constructing a potential divider with its ends between the regulator output and ground, and its centre-tap connected to the 'adjust' terminal of the regulator. The ratio of resistances determines the output voltage using the same feedback mechanisms described earlier.

## Dual tracking regulators

Single IC dual tracking adjustable regulators are available for applications such as op-amp circuits needing matched positive and negative DC supplies. Some have selectable current limiting as well. Some regulators require a minimum load.
One example of a single IC dual tracking adjustable regulator is the LM125, which is a precision, dual, tracking, monolithic voltage regulator. It provides separate positive and negative regulated outputs, simplifying dual power supply designs. Operation requires few or no external components, depending on the application. Internal settings provide fixed output voltages at ±15V

## Protection

Linear IC voltage regulators may include a variety of protection methods:
* Current limiting such as constant-current limiting or foldback
* Thermal shutdown
* Safe operating area protection
Sometimes external protection is used, such as crowbar protection.

## Using a linear regulator

Linear regulators can be constructed using discrete components but are usually encountered in integrated circuit forms. The most common linear regulators are three-terminal integrated circuits in the TO-220 package.
Common voltage regulators are the LM78xx-series (for positive voltages) and LM79xx-series (for negative voltages). Robust automotive voltage regulators, such as LM2940 / MIC2940A / AZ2940, can handle reverse battery connections and brief +50/-50V transients too. Some Low-dropout regulator (LDO) alternatives, such as MCP1700 / MCP1711 / TPS7A05 / XC6206, have a very low quiescent current of less than 5 μA (approximately 1,000 times less than the LM78xx series) making them better suited for battery-powered devices.
Common fixed voltages are 1.8 V, 2.5 V, 3.3 V (for low-voltage CMOS logic circuits), 5 V (for transistor-transistor logic circuits) and 12 V (for communications circuits and peripheral devices such as disk drives).
In fixed voltage regulators the reference pin is tied to ground, whereas in variable regulators the reference pin is connected to the centre point of a fixed or variable voltage divider fed by the regulator's output. A variable voltage divider such as a potentiometer allows the user to adjust the regulated voltage.