The LM317T functions as a precision current regulator by configuring its adjust pin to maintain a constant 1.25V reference across a single sense resistor ($R_{set}$). For a standard 350mA power LED load, use a 3.6Ω, 1W sense resistor, which yields a highly stable 347mA output. This linear topology is the definitive pick for low-noise, sub-500mA bench testing, sensor biasing, and audio applications. However, because it burns excess voltage as heat, it requires strict thermal management and headroom calculations when the input-to-output voltage differential exceeds 3V.

Core Math: Headroom, Dropout, and the 1.25V Reference

Unlike its voltage regulator configuration, the LM317T current regulator places the load between the input voltage and the $V_{out}$ pin, while the sense resistor sits between $V_{out}$ and the $V_{adj}$ pin. The IC's internal error amplifier forces the voltage across $R_{set}$ to exactly 1.25V.

The governing equation is simple:

$I_{out} = 1.25V / R_{set}$

The critical failure point in linear current source design is ignoring dropout voltage (headroom). The LM317T requires a minimum input-to-output differential of roughly 2.5V to 3.0V to keep the internal pass transistor in its active region. If you are driving a white power LED with a forward voltage ($V_f$) of 3.2V, your input supply ($V_{in}$) must be at least 6.2V ($3.2V + 3.0V$). If $V_{in}$ sags to 5V, the IC drops out of regulation, and the current will fall below your target, causing visible LED flicker or sensor drift.

Bench Tip: The $V_{adj}$ pin draws a tiny quiescent current (typically 50µA, max 100µA). For loads above 50mA, this error is negligible (<0.2%). For microamp-level current sinks, use a dedicated LM334 or a JFET-based topology instead.

Topology Showdown: Linear LM317T vs. Switching Drivers

Choosing between a linear LM317T and a switching buck LED driver (like the PT4115 or AL8860) comes down to the intersection of thermal budget, EMI tolerance, and BOM cost. Below is a direct comparison for a typical 350mA, 12V-to-3.2V conversion.

Criterion LM317T (Linear) PT4115 / AL8860 (Switching Buck)
Efficiency ~26% (Burns 3.08W as heat) ~88% (Dissipates ~0.3W)
Heat / Thermal High. Requires TO-220 heatsink for >1W dissipation. Low. SOT-89 package handles it natively.
Output Noise / EMI Virtually zero. Ideal for precision analog. High. Switching node creates MHz EMI and current ripple.
BOM Cost & Size $0.40 (IC + 1 resistor + 2 diodes) $1.20 (IC + inductor + Schottky + caps)
Complexity Trivial. 3 pins, no loop compensation needed. Moderate. Requires PCB layout care for switching loops.

The Verdict: Use the LM317T when your current is under 500mA, your input voltage is close to the load voltage (low dropout), or your circuit is highly sensitive to switching noise (e.g., photodiode biasing, audio preamps). Switch to a buck driver when driving high-power LED arrays from 12V/24V rails where linear heat dissipation would melt a plastic enclosure.

Design Example: 350mA Constant Current Source

Let's build a 350mA driver for a Cree XP-G3 power LED ($V_f$ = 3.2V nominal) using a 12V DC wall adapter.

Component Selection and Part Values

  • U1: LM317T (TO-220 package)
  • R1 ($R_{set}$): $1.25V / 0.35A = 3.57\Omega$. Select standard 3.6Ω. Actual current = 347mA.
  • R1 Power Rating: $P = I^2 \times R = 0.35^2 \times 3.6 = 0.44W$. Use a 1W metal film resistor for thermal margin.
  • D1 (Protection): 1N4007 across input/output (cathode to $V_{in}$) to protect against input short-circuits.
  • D2 (Protection): 1N4007 across output/adjust (cathode to $V_{out}$) if using large capacitive loads (rare in current mode, but good practice).

Thermal and Derating Note

With a 12V input and a 3.2V LED, the voltage dropped across the LM317T and sense resistor is $12V - 3.2V = 8.8V$. The power dissipated by the IC is:

$P_d = 8.8V \times 0.347A = 3.05W$

Thermal Hazard: A bare TO-220 package has a junction-to-ambient thermal resistance ($\theta_{JA}$) of roughly 50°C/W. At 3.05W, the junction temperature will rise by 152°C above ambient. In a 25°C room, the silicon hits 177°C, triggering the IC's internal thermal shutdown (typically 165°C) and causing the LED to strobe.

The Fix: You must either lower the input voltage or add a heatsink. Dropping $V_{in}$ to 7V reduces dissipation to $(7V - 3.2V) \times 0.347A = 1.31W$, which a bare TO-220 can survive (65°C rise = 90°C junction). If you must use 12V, attach a heatsink with a thermal resistance of 15°C/W or lower (e.g., Aavid Thermalloy 577202B03300G) and use thermal paste to keep the junction under 100°C.

Input Range, Protection, and Ripple Expectations

When integrating the LM317T into a larger power system, you must account for absolute maximums and AC line artifacts.

Input Range and Headroom

The absolute maximum input-to-output differential is 40V. However, for reliable continuous operation, keep the differential under 30V. If you are driving a 12V LED string from a 24V industrial supply, the 12V differential is safe, provided the power dissipation is managed. Always measure your wall adapter's open-circuit voltage; a "12V" unregulated transformer can output 16V under light loads, which alters your thermal math.

Protection Diodes

If your load has high parallel capacitance (e.g., a long coaxial cable to a remote sensor), a short circuit at the input will cause the output capacitor to dump backward through the IC's internal junctions. D1 (1N4007 or 1N5819 Schottky) provides a safe bypass path. For pure resistive or LED loads with no parallel bypass capacitors, D1 is optional but recommended for bench prototypes where accidental shorting occurs.

Ripple and Noise Expectations

As a linear regulator, the LM317T does not generate its own switching noise. Its output current ripple is entirely dependent on the input supply's ripple and the IC's Power Supply Rejection Ratio (PSRR). The LM317T has excellent low-frequency PSRR (typically 60dB at 120Hz), meaning a 1V, 120Hz ripple on the input from a rectified AC transformer will be attenuated to roughly 1mV at the output. However, PSRR degrades above 10kHz. If your input is a noisy switching wall-wart with 50mV of high-frequency hash, expect some of that to couple into your load. For ultra-low noise requirements, add an LC pi-filter on the input before the LM317T.

Decision Tree: When to Pick the LM317T

Use this decision matrix to finalize your topology choice. Follow the path that matches your load parameters to reach a concrete component recommendation.

Condition / Constraint Path Concrete Component Pick
Load current < 50mA, ultra-low noise required (sensors/audio) Linear (Low Power) LM334Z (2-terminal current source) or REF200
Load current 50mA - 500mA, $V_{in} - V_{load} < 4V$, low EMI Linear (Standard) LM317T (TO-220) with 1% $R_{set}$
Load current 50mA - 500mA, $V_{in} - V_{load} > 5V$, enclosed space Switching (Buck) PT4115 or AL8860 (SOT-89)
Load current 1A - 3A, high power LEDs, thermal limits strict Switching (High Current) TPS92515 or LT3795 (Dedicated LED controllers)
Need programmable/digital current control via MCU DAC Active Linear Op-amp (OPA454) + N-channel MOSFET (IRF540) current sink

Default Recommendation: If your load is under 500mA and you have adequate heatsinking or a low voltage differential, default to the LM317T. It is immune to the inductor whine, EMI shielding requirements, and PCB layout pitfalls of switching converters. Buy a 5-pack of TO-220 LM317Ts, stock 1% tolerance resistors from 1.2Ω to 120Ω, and keep a handful of 1N4007 diodes in your bench kit. When your current demands cross the 700mA threshold, or your input voltage exceeds the load voltage by more than 5V, abandon the linear topology and migrate to an AL8860 switching buck driver.