Documentation sections
LM317 Resistor Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug lm317-resistors. Calculate R2 resistor value for LM317/LM338 adjustable voltage regulator output voltage, with actual Vout and resistor power dissipation.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| voutnumber | V | 1.25 … 37 | 5 | Desired output voltage (minimum 1.25V = Vref) |
| r1number | Ω | 1 … 10000 | 240 | R1 from output pin to ADJ pin — typically 240Ω per LM317 datasheet |
| iadjnumber | μA | 0 … 500 | 50 | ADJ pin current — typically 50μA for LM317, 65μA for LM317A |
| eSeriesnumber | none | 0 … 96 | 0 | Rounds every part to the nearest value in the series; the response and the export are the rounded design's. |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| r2headline | Ω | R2 from the ADJ pin to ground: the exact value for R1, or with a part series the nearest value of the series |
| voutActual | V | The output voltage R1 and R2 set, including the ADJ pin current; with a part series, the rounded resistors' voltage |
| powerR1 | mW | Power dissipated in R1 |
| powerR2 | mW | Power dissipated in R2 |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.