LM317 Resistor Calculator
embedcalc_lm317Calculate LM317 regulator output voltage or required resistor R2. Given target voltage solves R2, or from R1 and R2 computes Vout.
Instructions
LM317 adjustable regulator: Vout = Vref·(1 + R2/R1) + Iadj·R2. Compute R2 for a target Vout, or Vout from R1/R2.
Args: r1_ohm (default 240), and exactly one of target_vout (-> solves R2) or r2_ohm (-> computes Vout). vref default 1.25 V, iadj_ua default 50 µA (datasheet typical). Returns (structured): { vout, r1_ohm, r2_ohm }. Example: target 5.0 V, R1=240, Iadj=0 -> R2=720 Ω. Snap R2 with embedcalc_eseries_nearest afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vref | No | Reference voltage (1.25 V typ) | |
| r1_ohm | No | R1 (Vref across it), datasheet recommends 240 Ω | |
| r2_ohm | No | R2 value (computes Vout) | |
| iadj_ua | No | Adjust pin current in µA (50 typ) | |
| target_vout | No | Desired output voltage (solves R2) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vout | Yes | ||
| r1_ohm | Yes | ||
| r2_ohm | Yes |