The usual schematic for the LM317 as per the datasheet is as follows.
"Basically" the output voltage (Vout) is determined by the ratio of the feedback resistors R1 and R2, using the following formula:
V
out = 1.25 x (
R2
/
R1
)
The actual internal operation of the LM317 (and linear voltage regulators in general) is given in detail by an Analog Devices publication (2). Such detail/knowledge is likely of importance to assess the exact interaction of the LM317 with external circuitry. However, for the typical DIY scenario, the LM317 can be largely considered a "black box" that converts an input voltage to a regulated output voltage. Nevertheless, some knowledge of the device is required to enable appropriate incorporation into the desired circuit. The lab notes from this reference (3) provide what I consider is a good compromise, and since internet references can often be ephemeral, the following excerpts/paraphasing is reproduced.
Linear Voltage Regulator Operation [from (3)]
The LM317 internals can be simplified as comprising the following "block" components in terms of considering voltage regulation.
A 1.25V reference voltage (from the zener diode) is input into the non-inverting input of the op-amp. The action of the op-amp then produces an output, via the pass transistor, to produce a matching 1.25V voltage that is feedback to the inverting input of the op-amp (the "op-amp action" is to produce an output that makes the inputs of the op-amp equal).
The LM317 therefore internally "makes" the voltage difference between the LM317 output and adjust pins equal to 1.25V. From the diagram this 1.25V is across R1, 125 ohm in this example, and therefore from Ohm's Law 10mA of current. This 10mA current also flows through R2 (ignoring the minute current that flows from the adjust pin, 100uA from the datasheet), which in this example is 375 ohm, and therefore again from Ohm's Law R2 must drop 3.75V. Therefore, 1.25V + 3.75V = 5V across the LM317 output pin and ground. Therefore, by altering the value of R2 (or more accurately the ratio of R2/R1) the output voltage can be set.
In addition to the basic operation of the LM317 to produce a regulated voltage output, it is instructive to know the function/action/consequence of the associated external circuit components (capacitors C1, C2 for example) and the range of appropriate values for these components. This is discussed in the following sections.
Values for Resistors R1 and R2
From the LM317 datasheet, the IC requires a minimum load current to operate, which is stated to be typically 3.5mA (max 10mA). While it can be usually expected that the load (i.e. the remaining circuit the LM317 is supplying) will be greater than this minimum, R1 can also act as a dummy load to ensure operation of the LM317 (ie voltage regulation) even if the real load is not connected.
Since the LM317 will "ensure" 1.25V across R1 (see above operation section) with a 3.5mA typical minimum current, this calculates to a required value of 357ohm for R1. With a minimum current of 10mA, the value of R1 is 125ohm. The lower the value of R1 the more current is wasted, while the higher the value of R1 the more the regulator becomes sensitive to oscillation (and noise). Therefore, using 220ohm for R1 (which seems to be widely recommended) gives a current of 5.7mA, well within the minimum current requirements for the LM317 and appears to be a good compromise.
Taking a value of 220ohm for R1, and taking into account the datasheet specifies a maximum input voltage differential of 40V, this then limits the useful range for R2 (using the equation for Vout given above) to ~6800ohm (hence the usual value of 5K ohm for the potentiometer in the standard LM317 schematics). The following table gives the calculate output voltage for various combinations of values for R1 and R2, using standard E series resistor values (the highlighted column is for the recommended 220ohm value for R1).
Calculated Vout of LM317 with R1, R2 combinations |
|
R1 ohms |
R2 ohms |
150 |
180 |
220 |
240 |
270 |
68 | 1.82 | 1.72 | 1.64 | 1.60 | 1.56 |
82 | 1.93 | 1.82 | 1.72 | 1.68 | 1.63 |
100 | 2.08 | 1.94 | 1.82 | 1.77 | 1.71 |
120 | 2.25 | 2.08 | 1.93 | 1.88 | 1.81 |
150 | 2.5 | 2.29 | 2.10 | 2.03 | 1.94 |
180 | 2.75 | 2.5 | 2.27 | 2.19 | 2.08 |
220 | 3.08 | 2.78 | 2.5 | 2.40 | 2.27 |
240 | 3.25 | 2.92 | 2.61 | 2.5 | 2.36 |
270 | 3.5 | 3.13 | 2.78 | 2.66 | 2.5 |
330 | 4 | 3.54 | 3.13 | 2.97 | 2.78 |
370 | 4.33 | 3.82 | 3.35 | 3.18 | 2.96 |
390 | 4.5 | 3.96 | 3.47 | 3.28 | 3.06 |
470 | 5.17 | 4.51 | 3.92 | 3.70 | 3.43 |
560 | 5.92 | 5.14 | 4.43 | 4.17 | 3.84 |
680 | 6.92 | 5.97 | 5.11 | 4.79 | 4.40 |
820 | 8.08 | 6.94 | 5.91 | 5.52 | 5.04 |
1000 | 9.58 | 8.19 | 6.93 | 6.46 | 5.88 |
1200 | 11.25 | 9.58 | 8.07 | 7.5 | 6.81 |
1500 | 13.75 | 11.67 | 9.77 | 9.06 | 8.19 |
1800 | 16.25 | 13.75 | 11.48 | 10.63 | 9.58 |
2200 | 19.58 | 16.53 | 13.75 | 12.71 | 11.43 |
2700 | 23.75 | 20 | 16.59 | 15.32 | 13.75 |
3300 | 28.75 | 24.17 | 20 | 18.44 | 16.53 |
3900 | 33.75 | 28.33 | 23.41 | 21.57 | 19.31 |
4700 | 40.42 | 33.89 | 27.96 | 25.73 | 23.00 |
5600 | 47.92 | 40.14 | 33.07 | 30.42 | 27.18 |
6800 | 57.92 | 48.47 | 39.89 | 36.67 | 32.73 |
R1 = 220 ohm recommended |
Values for External Capacitors
From the datasheet, "An input bypass capacitor (C1) is recommended. A 0.1μF disc or 1μF solid tantalum on the input is suitable input bypassing for almost all applications. The device is more sensitive to the absence of input bypassing when adjustment or output capacitors are used but the above values will eliminate the possibility of problems".
Again from the datasheet, the inclusion of C2 is optional, but improves transient response (i.e., protecting against sudden changes in mains or load conditions e.g., surges), with values in the range of 1uF to 1000uF of aluminium or tantalum electrolytic being commonly used (for output capacitors of 25uF or less, there is no need for a protection diode).
The following circuit shows the addition of capacitor C3. This bypass capacitor prevents ripple from being amplified as the output voltage is increased. The datasheet advises a 10uF value is sufficient generally. If values of output voltage less than 25V are used with a 10uF value for C3, no protection diode is required (otherwise, should be included).
Dropout Voltage
The dropout voltage is the minimum difference between the input and output voltages that must be maintained in order for the regulator to perform the voltage regulation. Therefore, this means that the input voltage must be always greater than the output voltage. The dropout voltage varies both the load current and temperature. From the LM317 datasheet, the minimum dropout voltage is approximately 2V, and obviously this should be "de-rated" to give some margin.
Another consequence of the input voltage needing to be greater than the output voltage (and allowing for the dropout voltage) is that the greated the difference between the input and output voltage (assuming the same load current), the more power that will need to be dissipated by the LM317 and therefore the hotter it will get. See the Testing/Experimental Results section for practical examples.
Heat Sinking the LM317
From the testing done (refer to the graphs in the Testing/Experimental Results section), heat sinking of the LM317T is very important in enabling a regulated voltage at higher load current. The LM317 regulators have internal thermal shutdown to protect the device from over-heating. The datasheet advises under all possible operating conditions, the junction temperature of the LM317 must be within the range 0oC to 125oC. A thermal evaluation of a circuit, particularly when dealing with increased current, should be done to check if components will remain within thermal tolerances stated on datasheets. The thermal equivalent of an electronic circuit has an analogous relationship with Ohm's Law which are explained by these sites, which also include online calculators (4), (5). If you want further more detailed information about thermal metrics, a Texas Instruments application report is available (6).
LM317 High Current Circuits
http://www.reuk.co.uk/LM317-High-Current-Voltage-Regulator.htm
LM317 improving regulation
Big thread http://www.diyaudio.com/forums/power-supplies/248335-lm317-tl431-really-8.html
http://preamp.org/diyaudio/lm317-regulator-under-test
https://www.youtube.com/watch?v=ICQXqVy3Hpc (eevblog LM317 regulator tutorial).
http://www.tnt-audio.com/clinica/regulators2_impedance1_e.html - output impedance testing of LM317, noice etc
about improving LM317 to reduce noice, ripple etc
blah
LM317 switching regulator
http://e2e.ti.com/support/power_management/linear_regulators/f/321/t/141861
blah
Only Logged-In Members can add comments