Shop by category
Shop all componentsPower, batteries & solar
Over 1.5 W the LM317 needs a heatsink (see the linear regulator heat calculator).
R1 = 240 Ω is the usual choice: it keeps at least 5 mA flowing, which the LM317 needs for a stable output.
Vout = 1.25 V × (1 + R2 ÷ R1) + I adj × R2R2 = (Vout − 1.25) ÷ (1.25 ÷ R1 + I adj)I adj ≈ 50 µA, Vin ≥ Vout + 2.5 VR1 = 240 Ω and R2 = 720 Ω: Vout = 1.25 × (1 + 720 ÷ 240) + 50 µA × 720 = 5.0 + 0.036 = 5.04 V. For exactly 5 V with R1 = 240 Ω you need R2 = 713 Ω; the nearest E96 value, 715 Ω, gives 5.01 V.
The LM317 holds 1.25 V between its output and ADJ pins. Two resistors set how much extra voltage appears above that: R1 sets the reference current, and R2 turns that current into the added output voltage.
Because it is a linear regulator, it burns the difference between input and output as heat, so keep the input only a little above Vout plus about 2.5 V. For large step-downs or currents above a few hundred milliamps, a buck converter such as the LM2596 module is far more efficient.
No. The minimum output is about 1.25 V. For lower voltages use a different adjustable regulator or a buck converter.
1.5 A for the LM317 in a TO-220 package with a heatsink; the LM350 gives 3 A.
With R1 = 240 Ω, R2 ≈ 720 Ω gives about 5 V. 750 Ω, the nearest standard value, gives about 5.2 V.
Vout = 1.25 V × (1 + R2 ÷ R1) + I adj × R2; R2 = (Vout − 1.25) ÷ (1.25 ÷ R1 + I adj); I adj ≈ 50 µA, Vin ≥ Vout + 2.5 V.
R1 = 240 Ω and R2 = 720 Ω: Vout = 1.25 × (1 + 720 ÷ 240) + 50 µA × 720 = 5.0 + 0.036 = 5.04 V. For exactly 5 V with R1 = 240 Ω you need R2 = 713 Ω; the nearest E96 value, 715 Ω, gives 5.01 V.
Geekobot builds that use it include LM317 constant-current LED driver and LM317 variable power supply. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators