MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › LM317 adjustable regulator design and calculation
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

LM317 adjustable regulator design and calculation

The LM317 is the classic adjustable three terminal regulator with a 1.25 V reference and 1.25 to 37 V set by an external divider. This page covers divider math, current setting and stability notes.

1. How it works

Inside the LM317 the voltage between the adjust pin and output is held at 1.25 V. With R1 to ground and R2 from output to adjust, the same current flows in both, so Uout equals 1.25 times (1 plus R2 over R1) plus Iadj times R2. Iadj is tiny, about 50 microamp, so the common form is 1.25 times (1 plus R2 over R1). With R1 at 240 ohm, R2 is 240 times (Uout over 1.25 minus 1); for 12 V R2 is about 2070 ohm.

2. Practice and pitfalls

The LM317 needs a minimum current through R1, about 3.5 to 10 mA, to regulate, so R1 must not be large; 240 ohm gives about 5 mA. With R1 at several kiloohm light load current is insufficient and it loses regulation. A pot on R2 gives adjustability but at zero it floors at 1.25 V, never 0; an open or floating adjust pin lets output spike to maximum.

3. LM317 divider values

OutputR1R2
5 V240 ohmabout 720
9 V240 ohmabout 1490
12 V240 ohmabout 2070
15 V240 ohmabout 2640
24 V240 ohmabout 4350
Refdash1.25 V

4. Notes

LM317 output is set by R2 over R1; keep R1 at 240 ohm for minimum load current and trim R2 to the wanted voltage. Add output capacitance, keep dropout 3 V or more, never float the adjust pin, and put a fixed resistor in series with the pot so an open end cannot spike.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Adjustable regulator per GB/T 5226.1; device to IEC 60747 and GB/T 12350. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① R1 too large starves the minimum current and loses regulation; use 240 ohm.
② Pot with no series fixed R1 at the end opens and output spikes; add a fixed R.
③ A floating or cold adjust pin lets output climb to maximum; solder it well.

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL