Overview

The LM317 (and TO-220 packaged LM317T) is an iconic 3-terminal adjustable positive linear voltage regulator designed by Bob Dobkin for National Semiconductor (now Texas Instruments). Staple of benchtop variable DC power supplies, battery chargers, and DIY electronics projects, it delivers over 1.5 Amperes1.5\text{ Amperes} of output current over an adjustable output range of 1.25V1.25\text{V} to 37.0V37.0\text{V}.

Requiring only two external resistors to set the output voltage, the LM317 features built-in internal current limiting, thermal overload shutdown, and safe-area compensation.

Quick reference

Regulator TypeAdjustable Positive Linear Voltage Regulator
PackageTO-220 (LM317T) / TO-263 / SOT-223
Pinout (TO-220 Front)Pin 1: Adjust (ADJ), Pin 2: Output (OUT), Pin 3: Input (IN)
Output Voltage Range1.25 V1.25\text{ V} to 37.0 V37.0\text{ V} DC
Input-Output Voltage Differential (VINVOUTV_{IN} - V_{OUT})3.0 V3.0\text{ V} min to 40.0 V40.0\text{ V} max
Continuous Output Current (IOUTI_{OUT})>1.5 A> 1.5\text{ A} (with adequate heatsink)
Reference Voltage (VREFV_{REF})1.25 V1.25\text{ V} (between OUT and ADJ pins)
Line / Load Regulation0.01%/V0.01\%/\text{V} line regulation / 0.1%0.1\% load regulation

Pinout (TO-220 Package)

Looking at the front labeled face of the TO-220 package with metal tab at top and leads pointing down:

text
        ┌─────────────┐
        │ [LM317T Tab]│  (Metal Tab connected internally to Pin 2 OUT)
        ├─────────────┤
        │    LM317    │  (Front Face)
        └─┬───┬───┬───┘
          1   2   3
         ADJ OUT IN
PinNameDescription
1ADJVoltage adjustment feedback pin
2OUT / TABRegulated DC output voltage pin (connected to tab)
3INUnregulated DC input voltage pin

Specifications

ParameterSymbolMinTypMaxUnitConditions
Input-Output Voltage DiffVIVOV_I - V_O3.040VIOUT=1.5AI_{OUT} = 1.5\text{A}
Reference VoltageVREFV_{REF}1.201.251.30V3.0VVIVO40V3.0\text{V} \le V_I - V_O \le 40\text{V}
Peak Output CurrentICLI_{CL}1.52.23.4AVIVO15VV_I - V_O \le 15\text{V}
Minimum Load CurrentIL(min)I_{L(min)}3.510.0mATo maintain regulation
Adjust Pin CurrentIADJI_{ADJ}50100µAConstant bias current
Ripple Rejection RatioRRRR6680dBf=120 Hz,CADJ=10 μFf = 120\text{ Hz}, C_{ADJ} = 10\ \mu\text{F}

Voltage Adjustment Math & Basic Circuit

text
       +V_IN Unregulated Input (e.g. 12V - 24V DC)

       [Pin 3: IN]
        LM317T
       [Pin 2: OUT] ──────────────┬─────────────── +V_OUT Regulated DC Output
          │                       │
          ├─── [ R1 = 240Ω ] ─────┤
          │                       │
       [Pin 1: ADJ]          [ C2 = 1µF ]
          │                       │
     [ R2 = Potentiometer ]      GND

         GND

VOUT=VREF×(1+R2R1)+(IADJ×R2)V_{OUT} = V_{REF} \times \left( 1 + \frac{R_2}{R_1} \right) + (I_{ADJ} \times R_2)

Given VREF=1.25VV_{REF} = 1.25\text{V} and R1=240 ΩR_1 = 240\ \Omega (IADJ50 μAI_{ADJ} \approx 50\ \mu\text{A} is negligible):

VOUT1.25V×(1+R2240 Ω)V_{OUT} \approx 1.25\text{V} \times \left( 1 + \frac{R_2}{240\ \Omega} \right)

Example Resistor Calculations

  • 5.0V Output: Set R2=720 ΩR_2 = 720\ \Omega (Standard 750 Ω750\ \Omega).
  • 12.0V Output: Set R2=2064 ΩR_2 = 2064\ \Omega (Standard 2.0 kΩ+68 Ω2.0\text{ k}\Omega + 68\ \Omega).

Common mistakes

  • Operating without a heatsink at high voltage drops: Linear regulators dissipate power as heat: PD=(VINVOUT)×IOUTP_D = (V_{IN} - V_{OUT}) \times I_{OUT}. Dropping 24V to 5V at 1A creates 19 Watts19\text{ Watts} of heat, instantly triggering thermal shutdown without a large TO-220 heatsink.
  • Forgetting minimum 10 mA load current: If R1R_1 is selected higher than 240 Ω240\ \Omega (e.g. 1 kΩ1\text{ k}\Omega) and no load is connected, the output voltage will float up toward VINV_{IN} due to insufficient minimum load current.

Notes

  • LM317 vs LM7805 vs LM2596: LM317 is an adjustable linear regulator; LM7805 is a fixed 5V linear regulator; LM2596 is a high-efficiency buck switching regulator.

Assets & downloads