LM317 Adjustable Regulator

The LM317 is a three-pin regulator whose output voltage you set with two resistors, from 1.25 V up to 37 V at 1.5 A.

LM317 Adjustable Regulator

At a glance

Pins and properties exactly as the circuit editor and simulator define this part. The text below explains how to use them.

Pinout

Pinout of the LM317 Adjustable Regulator, drawn as in the circuit editor. Select a label to see that pin in the table below.

Properties

What you can change in the Property Inspector.

Properties of this part
PropertyRange or choicesDefault
Internal Reference (Vref)1.2 to 1.3 V1.25 V
Dropout Voltage1.5 to 3 V2 V
Cooling / Thermal RatingBare TO-220 (Pmax ≈ 1.5 W), With Heatsink (Pmax ≈ 15.0 W)With Heatsink (Pmax ≈ 15.0 W)
Max Rated Current0.2 to 2.2 A1.5 A

The LM317 is an adjustable positive linear regulator in a TO-220 package. Two resistors set its output voltage anywhere from about 1.2 V to 37 V, at up to 1.5 A. Inside, it keeps a fixed 1.25 V between its OUT and ADJ pins.

Pins

Pins of this part
PinLabelTypeNotes
ADJADJSignal inAdjust: connects to the resistor divider
OUTOUTSignal outRegulated output
ININSignal inInput voltage

Setting the output voltage

Put a resistor R1 (often 240 Ω) between OUT and ADJ, and a resistor R2 from ADJ to GND:

Vout = 1.25 V x (1 + R2 / R1)

For about 5 V with R1 = 240 Ω, R2 is about 720 Ω. A potentiometer in place of R2 gives an adjustable supply.

Things to know

  • Dropout: the input must be at least about 2 V above the output.
  • Heat: (VIN - VOUT) x current is lost as heat. Without a heatsink only a small amount can be dissipated; the part has a cooling property (heatsink by default) and shows an overload when it is pushed too far.
  • Maximum current: 1.5 A by default.

Properties

Reference voltage, dropout voltage, cooling rating and maximum current are set in the Properties panel.

LM317 Adjustable Regulator — OMS Parts