Documentation sections
LED Current Limiting Resistor Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug led-resistor. Calculate the correct current limiting resistor for an LED. Shows exact value, nearest E24 standard, actual current, and 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 |
|---|---|---|---|---|
| vSupplynumber | V | 0.1 … 48 | 5 | Supply Voltage |
| vForwardnumber | V | 0.5 … 5 | 2 | LED Forward Voltage |
| iForwardnumber | mA | 0.1 … 1000 | 20 | Desired Current |
| eSeriesnumber | none | 0 … 96 | 24 | 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 |
|---|---|---|
| rExactheadline | Ω | Exact Resistance |
| rNearest | Ω | The exact resistance rounded to the nearest value of the part series (E24 unless another is chosen); the exact value with ideal values |
| iActual | mA | The LED current through the series value |
| power | W | Power (exact R) |
| pNearest | W | The power the series value dissipates |
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.