Skip to content
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.

Inputs of led-resistor
NameUnitRangeDefaultDescription
vSupplynumberV0.1 … 485Supply Voltage
vForwardnumberV0.5 … 52LED Forward Voltage
iForwardnumbermA0.1 … 100020Desired Current
eSeriesnumbernone0 … 9624Rounds every part to the nearest value in the series; the response and the export are the rounded design's.One of: 0 Ideal values · 12 E12 (10%) · 24 E24 (5%) · 48 E48 (2%) · 96 E96 (1%)

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of led-resistor
FieldUnitDescription
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
iActualmAThe LED current through the series value
powerWPower (exact R)
pNearestWThe 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.