A small current source can feed approximately the same current through several different resistive loads. Eventually the load needs more voltage than the source can provide, and regulation is no longer supported. Build that boundary deliberately with one exact LM317LZ/NOPB, a 124 Ω set resistor and a few low-power loads. The useful lesson is finding the voltage budget, not expecting a perfect horizontal current line forever.
This low-voltage design has calculations and executed host-side software checks, but it has not been physically tested here. No firmware is required. A calculator result describes an assumed regulated operating point; an unsupported budget is not a prediction of actual dropout current, heating or an observed waveform.
A voltage regulator can also set a current
A current source tries to hold a chosen current while allowing the load voltage to change. The LM317L-N is normally called an adjustable voltage regulator. In this connection, it maintains a reference voltage between its output and adjustment pins. A resistor between those two pins converts that voltage into a current. The load connects below the adjustment pin, so the resistor current and adjustment-pin current both flow into the load.
Compliance voltage is the range of load voltages over which a current source can keep regulating. This experiment needs room for three things: the load voltage, the approximately 1.25 V across the set resistor, and the regulator’s input-to-output headroom. Headroom means voltage available across the regulator itself. The load cannot use that same voltage a second time.
At a high enough load resistance, a fixed current would demand too much voltage. The real circuit then leaves the stated regulation conditions. It does not boost its input or obtain energy from the adjustment pin. A realistic result may change with component, temperature and supply behavior; measure that region rather than inventing a universal dropout curve.
The suffix and the pin drawing matter
Use Texas Instruments LM317LZ/NOPB from the LM317L-N family, LP package, a three-lead Transistor Outline (TO-92) through-hole body. The plastic package resembles a small transistor, but its leads are regulator terminals. Use the manufacturer drawing for this exact family. The similarly named LM317L without the -N family designation has a different current document and must not be assumed to share every package connection or specification.
For the named LM317LZ/NOPB, the datasheet’s TO-92 bottom-view pin table gives pin 1 ADJ, pin 2 VOUT and pin 3 VIN. A bottom view looks at the lead side; turning the body over mirrors the apparent order. Trace the notch/flat and lead numbers from the actual drawing. “Left lead” without stating a viewing direction is not a sufficient connection instruction.
| Part | Specification for this experiment | Job |
|---|---|---|
| Regulator | TI LM317LZ/NOPB, LM317L-N, LP / TO-92 | Holds reference between OUT and ADJ |
| Set resistor | 124 Ω, 1%, at least 0.25 W | Sets approximately 10 mA resistor current |
| Input bypass | 100 nF ceramic, at least 25 V | Local supply bypass from VIN to source return |
| Loads | 100 Ω, 330 Ω, 680 Ω, 1 kΩ, at least 0.25 W | Change required load voltage without a diode’s changing forward drop |
| Supply and meter | Regulated 3–12 V source, 20 mA current limit; voltage meter | Controlled energy and measured voltage drops |
Ω denotes ohm, kΩ means one thousand ohms, W denotes watt, mA means milliampere, µA means microampere, and nF means nanofarad. Begin at 9 V with a 100 Ω load. This is a tabletop resistive-load experiment, not a battery charger or a supply for an unknown electronic device. Disconnect power before changing wiring or load resistors.
Keep the adjustment node above the load

tricky-circuit-batch007-campaigns63-68/images/lm317l-current-compliance.svg) · Open full-size diagram.- Connect supply positive to VIN pin 3. Connect the 100 nF capacitor from pin 3 to supply negative, as close to the regulator as practical.
- Connect VOUT pin 2 to one end of the 124 Ω resistor. Connect the other end to ADJ pin 1 and the top of the selected load resistor.
- Connect the load’s lower end to supply negative. ADJ is not grounded directly; grounding it would bypass the intended load.
- Measure VSET across the 124 Ω resistor and VLOAD across the load. Measure regulator VOUT relative to supply negative separately.
The regulator itself has no ground terminal. Its “output voltage” is not the same as the load voltage: VOUT = VLOAD + VSET. The set resistor belongs directly between the regulator’s OUT and ADJ nodes, using short wires. Do not move its lower connection to the supply return or mistake a resistor in the input lead for the current-setting element.
The drawing shows a voltmeter across the set resistor. A meter in current mode has a very low resistance and must not be connected across the supply or set resistor like a voltmeter. This experiment can infer resistor current from voltage, avoiding that instrument-mode trap. The actual load current is slightly higher because adjustment current joins it.
Calculate current first, then check available voltage
The nominal resistor current is ISET = VREF/RSET = 1.25/124 ≈ 10.081 mA. Load current is ILOAD = ISET + IADJ. With a typical 50 µA adjustment current, ILOAD ≈ 10.131 mA. The difference is small but explainable; it is not an excuse to call the circuit an exact 10.000 mA standard. The set resistor dissipates VREF²/RSET, nominally about 12.6 mW, well below a 0.25 W part’s rating in this example.
For a selected load, VLOAD = ILOAD × RLOAD. With 100 Ω, nominal VLOAD is about 1.013 V; regulator OUT is about 2.263 V. At VIN=9 V, that leaves approximately 6.737 V across the regulator. For a 330 Ω load, VLOAD is about 3.343 V and OUT about 4.593 V, leaving about 4.407 V.
Use 3 V input-to-output headroom as the conservative electrical-table condition for this lesson, rather than a typical dropout value. At 9 V, the nominal load budget is therefore 9−3−1.25 = 4.75 V. Dividing by 10.131 mA gives a nominal maximum load resistance near 469 Ω. A 680 Ω load would need about 6.889 V for the load alone, so it cannot meet this headroom budget at 9 V. The code reports it unsupported and leaves actual current unknown.
The named datasheet gives a 1.2–1.3 V reference range under its stated conditions and adjustment current up to 100 µA. Combine those with a 124 Ω resistor’s ±1% tolerance. The calculator explicitly examines eight endpoint combinations, including a zero adjustment-current lower bound because no positive minimum is specified. Conditional current ranges from about 9.582 to 10.690 mA. With the highest reference/current corner, the 9 V all-corner load boundary is only about 440 Ω. This is a budget over these chosen bounds, not a complete uncertainty or thermal model.

tricky-circuit-batch007-campaigns63-68/images/lm317l-current-compliance-compliance.svg) · Open full-size plot.The roughly 10 mA resistor branch exceeds the family’s 5 mA maximum minimum-load requirement. A large set resistor selected for a tiny current could fail that condition even if its voltage budget looked adequate. The 100 mA family headline is not a promise of any current at any voltage or in any thermal environment. This experiment limits its design domain to 20 mA and 12 V, and does not use an absolute voltage maximum as a working target.
Sweep load, supply and elapsed time separately
- With power removed, measure the set resistor’s actual resistance and inspect the pin orientation. Begin with the 100 Ω load.
- Set the source to 9 V and its current limit to 20 mA. Power up, then record actual VIN, VSET, VLOAD and regulator VOUT. Confirm VOUT−VLOAD agrees with VSET.
- Calculate resistor current as measured VSET divided by measured RSET. Keep the adjustment-current uncertainty separate; do not invent its actual value from the typical table entry.
- Power off and repeat with 330 Ω, 680 Ω and 1 kΩ. Identify which measurements meet the selected 3 V headroom condition. Record the unsupported cases as measurements without calling them guaranteed regulated points.
- Return to 330 Ω. With wiring untouched, compare 6, 9 and 12 V input. Measure the actual source voltage at the regulator, since a source in current limit may not deliver its selected voltage.
- For supported points, compare readings shortly after power-up and after 60 seconds, recording ambient temperature and elapsed time. A change may involve warming, supply drift or meter behavior; one experiment does not separate all causes.
Use the blank observation sheet (ZIP; file: tricky-circuit-batch007-campaigns63-68/code/lm317l-current-compliance-observations-blank.csv). For a first power estimate, input power minus useful load power and set-resistor power gives regulator dissipation. The supplied calculator includes the adjustment branch in that bookkeeping, but it does not predict case temperature. Datasheet thermal resistance depends on package mounting; a breadboard is not the specified printed circuit board (PCB) fixture. Keep the current-limited setup supervised and investigate unexpected heating or supply-limit operation.
Full nominal and corner calculator
This complete Python 3.11 program runs under CPython, the desktop Python implementation. It evaluates the assumed regulated point, headroom, resistor power and all eight corners. It rejects invalid inputs and does not produce a fabricated dropout current. Run python3 lm317l-current-compliance.py; the printed structured records retain the word “assumed” on conditional quantities.
"""LM317LZ/NOPB current-source budget. No dropout or thermal silicon model."""
import math
from itertools import product
def finite(value, name, low=0, strict=True):
if isinstance(value, bool) or not isinstance(value, (int, float)):
raise ValueError(name + " must be numeric")
if not math.isfinite(value) or (value <= low if strict else value < low):
raise ValueError(name + " outside calculation domain")
return value
def budget(vin, load_ohms, rset=124.0, vref=1.25, iadj=50e-6, headroom=3.0):
"""Returns an assumed regulated operating point and its eligibility only."""
finite(vin, "VIN"); finite(load_ohms, "load", strict=False)
finite(rset, "set resistance"); finite(vref, "reference")
finite(iadj, "adjust current", strict=False); finite(headroom, "headroom")
resistor_current = vref / rset
load_current = resistor_current + iadj
load_voltage = load_current * load_ohms
output_voltage = load_voltage + vref # regulator OUT is ABOVE the load
differential = vin - output_voltage
in_scope = 3 <= vin <= 12 and 0 <= load_ohms <= 1000
eligible = (in_scope and differential >= headroom
and resistor_current >= 0.005 and load_current <= 0.020)
# Do not manufacture a post-dropout current. Budget numbers remain conditional.
return {"in_lesson_scope": in_scope, "regulation_budget_supported": eligible,
"assumed_load_current_a": load_current,
"assumed_load_voltage_v": load_voltage,
"assumed_regulator_out_v": output_voltage,
"headroom_margin_v": differential - headroom,
"set_resistor_power_w": vref * resistor_current,
"estimated_ic_power_w": (differential * resistor_current +
(vin - load_voltage) * iadj) if eligible else None,
"predicted_actual_current_a": None,
"reason": "conditional regulation budget; measure actual current"}
def corners(vin, load_ohms):
"""Bounds use exact -N family table and set resistor +/-1%, not typical-only."""
finite(vin, "VIN"); finite(load_ohms, "load", strict=False)
rows = [budget(vin, load_ohms, rset=r, vref=v, iadj=a)
for r, v, a in product((124 * .99, 124 * 1.01),
(1.2, 1.3), (0.0, 100e-6))]
return {"conditional_current_min_a": min(x["assumed_load_current_a"] for x in rows),
"conditional_current_max_a": max(x["assumed_load_current_a"] for x in rows),
"worst_headroom_margin_v": min(x["headroom_margin_v"] for x in rows),
"all_corners_budget_supported": all(x["regulation_budget_supported"] for x in rows),
"corners": rows}
def observed_current(set_resistor_voltage, measured_rset=124):
"""Current in Rset only. IADJ adds to the actual load branch separately."""
finite(set_resistor_voltage, "resistor voltage", strict=False)
finite(measured_rset, "measured resistance")
return set_resistor_voltage / measured_rset
if __name__ == "__main__":
import json
for load in (100, 330, 680, 1000):
print(json.dumps({"load_ohms": load, "nominal": budget(9, load),
"bounds": corners(9, load)}, indent=2))
Recognise an incomplete current path
An open load breaks the current path; the simple regulation equations no longer describe a completed loop. Switch off before reconnecting it. A shorted load is a distinct low-load-voltage condition: although the nominal current-source budget may fit, it puts more of the source voltage across the regulator. Do not confuse a supported mathematical short-load budget with a performed short-circuit test.
If VSET is far below its expected reference in a low-resistance supported fixture, check the exact chip family, pin reversal, wiring and source current limit. If VSET is plausible but VLOAD is zero, look for a bypass or short across the load. If source voltage collapses, record the actual voltage rather than treating the front-panel setting as fact. Thermal shutdown and internal current limiting are protective behavior, not recommended normal operating modes.
Executed host checks cover the actual calculator’s current bookkeeping, minimum-load and scope decisions, headroom failures, all eight corners, resistor power and rejection of invalid quantities. They do not verify a reference voltage, adjustment current, dropout curve or measured temperature on hardware. A physical test needs its own observations and exact part marking.
Challenge: does a lower set resistor restore headroom?
A 680 Ω load fails the 9 V headroom budget. Would replacing the 124 Ω set resistor with 100 Ω solve it?
Answer
No. The smaller set resistor raises current, so the same load needs even more voltage. Approximately 1.25/100 + 50 µA = 12.55 mA would demand about 8.534 V across 680 Ω before adding reference voltage and regulator headroom. A lower current, a smaller load resistance or an appropriately higher input within the actual design limits changes the budget in the useful direction.
Exact primary documentation
- TI LM317L-N SNVS775L, revision L, January 2018: exact bottom-view pins, electrical-table conditions, reference/current bounds and current-source application.
- Exact LM317LZ/NOPB orderable part and current family documentation, checked October 20, 2026. No separate applicable errata document surfaced in that check. The current LM317L without -N datasheet is not used for this part’s pin map.
- Python 3.11 mathematical functions.
Continue with the electronics course. A controlled current-source experiment is a useful instrument lesson; it does not qualify this breadboard as a battery charger or precision calibration standard.



