In Depth Guide: LM317 3-Terminal Adjustable voltage Regulator

LM317 is a positive-voltage regulator with an adjustable voltage range from 1.25 V to 37 V.  It can supply greater than 1.5 A at the output. In most of the applications, due to irregular loads, the output voltage produced has fluctuations in it which can lead to damaging loads. Therefore, voltage regulators are used. The main function of the LM317 IC is to maintain the constant and stable voltage at the output. It is used for linear regulation. its load and line regulation are better as compared to other fixed regulators.

LM317 Pinout Diagram

This adjustable voltage regulator is available in different pin layouts such as LM317L, LM317K, and LM317T. These diagrams show the pinout of all types. However, the functionality of all pins is the same for each type.

LM317L

LM317L pinout diagram

LM317T

LM317T pinout diagram

LM317K

LM317K pinout diagram

Pin Configuration Description

It is 3 terminal device used for linear regulation of the output. The details of pins are as under:

  • Pin1 is an adjustable pin which is used to adjust the output voltage.
  • Pin2 is an output pin and gives a regulated voltage.
  • An unregulated input voltage is applied at pin 3.

This picture shows a functional block diagram of the adjustable voltage regulator. As you can see from the block diagram that it has built-in over temperature and over current protection circuits.

LM317 internal block diagram

LM317 Voltage Regulator Features

  • An adjustable positive voltage regulator
  • The output voltage can be set through an adjustable input in a range of 1.25V to 37V
  • Output current is 1.5A
  • Internal short-circuit protection to limit the current
  • Safe area compensation for transistor output
  • Operating temperature is 125°C
  • Ripple rejection is 80dB
  • Load regulation is typically 0.1%
  • Line Regulation is typically 0.01%/V

Where to use it?

This IC is intended for use in a regulation of variable voltages. It can be used for multiple purposes. It can be used as a fixed voltage regulator, AC voltage regulator, current limiter, Battery charger, local and on-card regulation. Furthermore,  it can be used as a current regulator by connecting a resistor between the output and adjustment pin. It has one drawback that during regulation its voltage drop to about 2.5V.

How to use LM317 3-Terminal Adjustable Regulator?

The LM317 IC develops and maintains 1.25V between its output and adjustment pin. Its output can be adjusted by connecting a network of two resistors externally between the output pin and adjust the input pin. The two decoupling capacitors are connected in a circuit. They are used to remove the undesired coupling and avoid the effect of noise. A capacitor of 1µF is connected at the output to improve transient response. To use it is a variable regulator, we have connected a potentiometer at the adjustable pin. By changing the value of a potentiometer, you can obtain the desired voltage at the output.

Simple Application circuit LM317

This is a simple example circuit using an LM317 voltage regulator. We need only two external resistors. However, we can also use capacitors to avoid voltage variations at the input and output terminals. These capacitors help to remove ripples from output voltage.

LM317 simple example circuit

 

The output voltage of this circuit depends on resistor R1 and R2. The equation for calculating output voltage will be:

VOUT = 1.25 × (1 + (R2/R1))
  • If R1 and R2 are minimum, the output will be equal to 1.25 volts.
  • Also, if R1=R2, the output voltage will be 2.5 volts.

How to add protection Circuits?

The components can overheat due to more power dissipation. For this reason, a heat sink is used to protect the IC from overheating. The external capacitors can discharge due to the low current of the regulator. Therefore, in some applications, protection diodes are added which prevent the capacitors from discharging.

LM317 application circuit with protection circuit

The Diode D1 protects the capacitor from discharging during an input short circuit while Diode D2 is used to protect CAdj by providing a low-impedance discharge path during an output short circuit. To achieve high ripple rejection ratios, bypass the ADJUST terminal.

Proteus Simulation Circuit Example

In this example, we use the R2 variable resistor of 10k ohm and R1=1000 ohm. The output voltage is 7.75 volts. You can also verify the results by putting resistors values in the formula given above.

LM317 Proteus simulation Circuit Example

We design simulation in proteus using the library. This simulation shows the variation in output voltage according to a change in R2 resistor value.

LM317 voltage regulator Proteus simulation Circuit Example

Alternative & Equivalent Options

LT1086, LM1117, PB137, LM337

  • LM7805
  • LM7806
  • LM7809
  • LM7812
  • LM7905
  • LM7912
  • LM117V33
  • XC6206P332MR.

LM317 Applications

The applications of LM317 includes:

  • It is a positive voltage regulator and hence used in the regulation of positive voltages.
  • It is used in designing current-limiter circuits which keeps the output current in limits.

LM317 current limiter circuit example

  • Battery charger circuits, reverse polarity circuits, variable power supply, motor control circuits are designed using LM317 IC.
  • By using two LM317 IC’s, you can regulate both the positive and negative swings of a sinusoidal AC input. Hence, AC Voltage-Regulator Circuits can be designed.

2D Diagram

It is available in three packages which are To-220, SOT223, and TO263. The dimensions of the 3 pin T0-220 package are given below.

2D Diagram

Datasheet

LM317 3 Terminal Adjustable Voltage Regulator Datasheet

5 thoughts on “In Depth Guide: LM317 3-Terminal Adjustable voltage Regulator”

  1. The equation in your diagram titled “Adjustable Voltage Regulator using LM317” is wrong – you have R2/R2. I think it’s supposed to be:

    VOUT = 1.25 × (1 + (R2/R1))

    Reply
  2. Your TO3 case as oriented = pinout is incorrect. The TO3 case (or 3) as illustrated shows output = correct. The Upper pin is incorrectly labeled. It is actually Pin 2 Input. The bottom pin is incorrectly labeled. It should show Pin 1 = Adjust, LM317k TO3 case pinouts are Pin 3 = output Pin 2 = Input Pin 1 = Adjust. The case pin offset is incorrect it seems. Thank you.

    Reply

Leave a Comment