LM317 Adjustable Voltage Regulator IC
₵5.00
The LM317 Adjustable Voltage Regulator delivers an adjustable positive DC output from 1.25V to 37V with up to 1.5A current capability. Featuring a TO-220 package, thermal protection and simple resistor-based voltage adjustment, it is ideal for variable power supplies, electronics testing, LED current regulation and DIY circuits.
The LM317 Adjustable Voltage Regulator is a versatile three-terminal positive linear regulator capable of delivering an adjustable DC output from approximately 1.25V to 37V. Unlike fixed-voltage regulators such as the L7805 or L7812, the LM317 allows users to select the required output voltage using two external resistors.
With an output current capability of up to 1.5A, a TO-220 package and built-in protection features, the LM317 is widely used in adjustable bench power supplies, electronic testing equipment, voltage regulation circuits and DIY electronics projects.
Its ability to generate different regulated voltages from a single IC makes it a practical choice for electronics development, experimentation and equipment repairs.
Key Features of the LM317 Adjustable Voltage Regulator
- Adjustable Output Voltage: Provides approximately 1.25V to 37V DC.
- Up to 1.5A Output Current: Supports suitable loads with adequate heatsinking.
- Simple Voltage Adjustment: Requires only two external resistors to set the desired output.
- Positive Voltage Regulation: Produces a regulated positive DC output from a higher input voltage.
- Built-in Thermal Protection: Helps protect the IC against excessive operating temperatures.
- Short-Circuit Protection: Internal current limiting reduces the risk of damage during output faults.
- Good Line and Load Regulation: Helps maintain a stable output despite input and load variations.
- TO-220 Package: Suitable for through-hole PCB mounting and external heatsink installation.
Technical Specifications
| Specification | Details |
|---|---|
| Product Type | Adjustable Linear Voltage Regulator IC |
| Model | LM317 |
| Regulator Type | Positive Adjustable |
| Output Voltage Range | 1.25V to 37V DC |
| Maximum Output Current | Up to 1.5A |
| Maximum Input-Output Differential | 40V DC |
| Typical Dropout Voltage | Approximately 2V |
| Voltage Adjustment | External Resistor Divider |
| Reference Voltage | Approximately 1.25V |
| Package | TO-220 |
| Number of Pins | 3 |
| Mounting Type | Through-Hole |
| Output Polarity | Positive |
| Thermal Protection | Built-in |
| Short-Circuit Protection | Built-in |
Applications of the LM317 Voltage Regulator
1. Adjustable DC Power Supplies
Construct variable-voltage power supplies for powering and testing electronic circuits. By selecting suitable external resistors or incorporating a potentiometer, the output can be adjusted to the required voltage.
2. Electronics Testing and Troubleshooting
Generate regulated test voltages for electronic boards, sensors, analogue circuits and other components during development or repair.
3. Battery Charging and Current Regulation Circuits
The LM317 can be configured as a constant-current regulator using an appropriate external resistor. It can also be incorporated into specialised charging circuits with suitable battery-specific control and protection.
4. LED Current Regulation
Create regulated current-source circuits for compatible LED loads by configuring the regulator with an appropriate current-setting resistor.
5. Electronic Instrumentation
Provide adjustable or fixed positive supply voltages for compatible analogue circuits, laboratory instruments and signal-conditioning equipment.
LM317 Pin Configuration
When viewing the front marked surface of the standard TO-220 package with the pins pointing downward:
| Pin | Terminal | Function |
|---|---|---|
| 1 – Left | ADJ | Output Voltage Adjustment |
| 2 – Centre | OUTPUT | Regulated Positive DC Output |
| 3 – Right | INPUT | Positive DC Input |
Important: The metal mounting tab is electrically connected to the OUTPUT terminal.
If the regulator is mounted on a grounded or shared metal heatsink, appropriate electrical insulation may be required.
How to Adjust the LM317 Output Voltage
The LM317 uses a resistor divider connected between OUTPUT, ADJ and ground to establish its output voltage.
The approximate output voltage is calculated using:
Vout = 1.25 × (1 + R2/R1)
Where:
- Vout: Required output voltage
- R1: Resistor connected between OUTPUT and ADJ
- R2: Resistor connected between ADJ and GND
- 1.25V: Internal reference voltage
This simplified equation neglects the small adjustment-pin current.
Example: Setting Approximately 5V
Using:
- R1 = 220Ω
- R2 = 680Ω
The calculated output is:
Vout = 1.25 × (1 + 680/220)
Vout ≈ 5.11V
The actual voltage should be measured and verified before connecting sensitive equipment.
DIYGH stocks 1/4W Carbon Film Resistors with selectable resistance values for constructing voltage adjustment networks.
Basic LM317 Connection Circuit
A typical adjustable regulator circuit requires:
- 1 x LM317 Voltage Regulator IC
- 2 x Voltage-Setting Resistors
- 1 x Input Bypass Capacitor, typically 0.1µF
- 1 x Output Capacitor, typically 1µF, where improved transient response is required
- Suitable DC Input Supply
- Heatsink when necessary
Connection Procedure:
- Connect the positive DC supply to the INPUT terminal.
- Connect R1 between OUTPUT and ADJ.
- Connect R2 between ADJ and ground.
- Connect the negative supply terminal to the circuit ground.
- Install the input bypass capacitor close to the regulator.
- Connect the load between OUTPUT and ground.
- Apply power and measure the output voltage.
The input voltage must remain sufficiently above the selected output voltage to maintain regulation, typically allowing approximately 3V of headroom under practical operating conditions.
The regulator also requires sufficient minimum load current to maintain proper output regulation.
For permanent circuit construction, consider DIYGH’s Solderable Prototype PCB Board 9x15cm.
LM317 vs Fixed Voltage Regulators
| Feature | LM317 | L7805 |
|---|---|---|
| Output Voltage | Adjustable | Fixed 5V |
| Voltage Selection | External Resistors | No Adjustment Required |
| Current Capability | Up to 1.5A | Up to 1.5A |
| Regulator Type | Positive Linear | Positive Linear |
| Ideal Use | Variable Power Supplies | Fixed 5V Circuits |
Choose the LM317 when flexibility is required. For circuits that only need a fixed 5V supply, the L7805 5V Linear Voltage Regulator offers a simpler alternative.
Heat Dissipation and Cooling
The LM317 is a linear voltage regulator. Unlike switching converters, it dissipates excess voltage primarily as heat.
The approximate power dissipation is:
P = (Vin – Vout) × Iout
For example, when converting 12V DC to 5V DC at 0.5A:
P = (12 – 5) × 0.5 = 3.5W
The regulator dissipates approximately 3.5W as heat, excluding its own operating consumption.
A suitable heatsink is necessary when power dissipation becomes significant.
For higher-efficiency adjustable voltage conversion, the LM2596 DC-DC Buck Converter Module offers a switching-regulator alternative.
Testing the LM317 Voltage Regulator
- Confirm the INPUT, OUTPUT and ADJ terminal connections.
- Check the voltage-setting resistor values.
- Apply an appropriate DC input supply.
- Set a multimeter to DC voltage measurement.
- Measure the voltage between OUTPUT and ground.
- Verify that the output matches the calculated voltage.
- Connect the intended load and observe voltage stability and regulator temperature.
Use the ANENG XL830L Digital Multimeter to check output voltage and resistor values during circuit assembly.
Important Usage Information
- Requires a suitable positive DC input supply.
- The output voltage is determined by external resistor values.
- The regulator cannot increase a lower input voltage to a higher output voltage.
- Maintain sufficient input-to-output voltage difference for regulation.
- Do not exceed the manufacturer’s maximum input-to-output differential rating.
- Use adequate heatsinking at higher output currents.
- The metal mounting tab is connected to OUTPUT.
- The maximum output current depends on operating temperature, voltage difference and thermal management.
- Do not connect directly to AC mains.
- The LM317 IC alone is not a complete adjustable power supply or battery charging system.
Package Includes
- 1 x LM317 Adjustable Voltage Regulator IC (TO-220)
External resistors, capacitors, heatsink and PCB are not included.
Related products
2S 13A 18650 Lithium Battery BMS
3S 40A 18650 Lithium Battery BMS Protection Board
BC547 NPN Transistor
IRF520 MOSFET Driver Module (0-24V) | PWM Motor & LED Controller
The easiest way to drive 12V/24V loads. This breakout board allows your Arduino to control high-voltage devices like LED strips, DC motors, and solenoid valves using the IRF520 MOSFET. It features screw terminals for easy wiring—no soldering required!
-
Max Load: 24V DC / < 5A.
-
Control Voltage: 3.3V or 5V (PWM Compatible).
-
Output: Pulse Width Modulation (Speed/Dimming control).
-
Best For: LED Strips, Small DC Fans, and Solenoids.
L7815 15V Linear Voltage Regulator IC
The L7815 15V Linear Voltage Regulator provides a fixed +15V DC output from a higher input voltage. Featuring a TO-220 package, thermal protection and up to 1.5A current capability with adequate cooling, it is suitable for audio preamplifiers, operational amplifier circuits, regulated power supplies and electronics repairs.
L7905 -5V Negative Linear Voltage Regulator IC
The L7905 -5V Negative Linear Voltage Regulator provides a stable, fixed -5V DC output from a negative input supply. Featuring a TO-220 package, thermal and short-circuit protection, and up to 1.5A output capability with adequate cooling, it is ideal for dual-polarity power supplies, operational amplifier circuits, audio electronics and equipment repairs.
NE555 Timer IC (NE555P, NE555N Precision Timer DIP-8)
The legendary chip for timing and pulses. The NE555 / NE555P / NE555N Timer IC (DIP-8) is a must-have for every electronics hobbyist. It can be used to blink LEDs, create delays, generate sound, or control servo motors. It is simple, robust, and works with 5V to 15V.
-
Type: Precision Timer / Oscillator.
-
Package: DIP-8 (Fits standard breadboards).
-
Voltage: 4.5V - 16V DC.
-
Best For: LED Flashers, PWM Motor Control, and Tone Generation.
PAM8403 5V 2×3W Stereo Class-D Audio Amplifier Module
The PAM8403 5V 2×3W Stereo Amplifier Module is a compact and efficient Class-D audio amplifier capable of driving two 4Ω to 8Ω speakers. Ideal for DIY speakers, MP3 players, Bluetooth audio projects, portable electronics and embedded sound applications.
- 2×3W Stereo Output
- 5V Powered
- Class-D Efficiency
- Compact Design
Best For: Mini speakers, DIY audio, MP3 players and portable projects

Reviews
There are no reviews yet.