Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Power & Batteries
  4. ›LM317 and LM350 Adjustable Linear Regulators

Component guide · Beginner · 3 min read

LM317 and LM350 Adjustable Linear Regulators

Formula, Wiring and Heat

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the LM317 adjustable regulator isLM317 adjustable regulator pinoutWiring the LM317 adjustable regulatorExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The LM317 is a classic adjustable linear regulator: two resistors set the output from 1.25 V to about 37 V, up to 1.5 A. The LM350 is the 3 A version. They are simple and quiet, with no switching noise, but waste the voltage difference as heat. They also make an easy constant current source for LEDs and battery charging.

Key specs at a glance

Output
1.25 to 37 V
Current
LM317 1.5 A; LM350 3 A
Dropout
About 2 to 3 V
Formula
Vout = 1.25 x (1 + R2/R1)
Package
TO-220 or ready module with trimmer
Protection
Thermal and current limit

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1LM317 Adjustable Regulator Module₹51
  • Option 2Adjustable Voltage Regulator (LM317 / LM350)₹45
01

What the LM317 adjustable regulator is

The LM317 is a three-pin linear voltage regulator whose output is set by two resistors. It holds 1.25 V between its OUT and ADJ pins, and the resistor divider scales that up to the output you want.

Heat is (Vin - Vout) x current. Dropping 12 V to 5 V at 1 A wastes 7 W, which needs a large heatsink. For bigger drops, use a buck converter.

Use R1 = 240 ohm (or 120 ohm) and pick R2 for the voltage you need. A 0.1 uF input and 1 uF output capacitor keep it stable.

02

LM317 adjustable regulator pinout

The pins on the LM317 adjustable regulator and what each one does.

PinFunction
ADJAdjust (to R1/R2 junction)
OUTOutput (centre pin and tab)
INInput
PinFunction
ADJ
Adjust (to R1/R2 junction)
OUT
Output (centre pin and tab)
IN
Input
03

Wiring the LM317 adjustable regulator

Connect the LM317 adjustable regulator like this.

LM317 adjustable regulator pinVoltage regulatorConstant current (I = 1.25/R)
INSupply +Supply +
OUTLoad +, and R1 to ADJThrough R to LED
ADJR2 to groundConnected to LED side of R
IN
Voltage regulator:
Supply +
Constant current (I = 1.25/R):
Supply +
OUT
Voltage regulator:
Load +, and R1 to ADJ
Constant current (I = 1.25/R):
Through R to LED
ADJ
Voltage regulator:
R2 to ground
Constant current (I = 1.25/R):
Connected to LED side of R
04

Example code

A minimal sketch to check the part works.

Calculate R2 · text
Vout = 1.25 * (1 + R2 / R1)
Example: R1 = 240 ohm, want 5 V -> R2 = 720 ohm (use 680 + 39)
Constant current: R = 1.25 / I  (350 mA LED -> 3.6 ohm, 0.5 W)
05

Setup and tuning

Resistors

use R1 = 240 Ω between OUT and ADJ, then pick R2 from Vout = 1.25 × (1 + R2/R1).

Heatsink

fit one whenever it drops several volts at hundreds of milliamps (power = voltage drop × current).

Tab

the tab is connected to OUT, so insulate it from a grounded heatsink or case.

Capacitors

add 0.1 µF at the input and 1 to 10 µF at the output for stability.

Constant current

for an LED driver, put one resistor R = 1.25 / I between OUT and ADJ and take the current from ADJ.

06

What you need

Shop this list4 of 4 found in our store · ₹461

  • LM317 Adjustable Regulator Module: the part this guide coversLM317 Adjustable Regulator Module₹51
  • Adjustable Voltage Regulator (LM317 / LM350): another version this guide coversAdjustable Voltage Regulator (LM317 / LM350)₹45
  • Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
  • DC power adapter (5.5 x 2.1 mm): a wall adapter inputDC Power Adapter (5.5x2.1mm)₹188
07

Alternatives and when to choose them

  • ✓AMS1117: fixed low-dropout.
  • ✓78xx regulators: fixed voltages.
  • ✓LM2596 buck: efficient for big drops.
08

Common mistakes to avoid

  • !Running it without a heatsink at high power.
  • !Bolting the tab to a grounded case, which shorts the output.
  • !Leaving too little input-output difference.
  • !Using the LM317 pinout for an LM337.
09

Frequently asked questions

What is the maximum current of the LM317?

1.5 A with a good heatsink. The LM350 is the 3 A version with the same pinout.

How much headroom does the LM317 need?

The input must be about 2 to 3 V above the output for it to regulate.

Can I use the LM317 as an LED driver?

Yes. A single resistor of 1.25 V divided by the LED current between OUT and ADJ makes a constant current source.

Why does the LM317 get hot?

It turns the extra voltage into heat: dropping 7 V at 0.5 A is 3.5 W, which needs a heatsink.

Is there a negative version?

Yes. The LM337 is the negative adjustable regulator, with a different pinout.

Parts for this guide

  • LM317 Adjustable Regulator Module
    ₹51View
  • Adjustable Voltage Regulator (LM317 / LM350)
    ₹45View
  • Digital Multimeter
    ₹177View
  • DC Power Adapter (5.5x2.1mm)
    ₹188View
Shop DC-DC ConvertersShop Voltage Regulators

Projects that use it

Put this into practice: 2 step-by-step builds in our project library use parts from this guide.

Intermediate · 1–2 hoursLM317 variable power supplyView projectIntermediate · 1 hourLM317 constant-current LED driverView project
Browse all 2 projects

Keep learning

ComparisonBeginnerVoltage RegulatorsA voltage regulator holds its output steady, such as 5 V or 3.3 V, while the input varies.4 min read · Power & BatteriesComponent guideBeginnerAMS1117 regulatorThe AMS1117 is a small linear (LDO) regulator that turns 4.5 to 12 V into a fixed 3.3 V or 5 V at up to about 800 mA.3 min read · Power & BatteriesComponent guideBeginnerLM2596 buck converterThe LM2596 module steps a higher DC voltage down to any voltage between about 1.25 V and 35 V, for example 12 V down to 5 V.4 min read · Power & Batteries

Sources

  • TI LM317 datasheet
  • ON Semi LM350 datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the LM317 adjustable regulator isLM317 adjustable regulator pinoutWiring the LM317 adjustable regulatorExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide3 items · ₹416

LM317 Adjustable Regulator Module · Digital Multimeter · DC Power Adapter (5.5x2.1mm)

Ask the Community

Ask a question