LED resistor and LED driver
The current an LED string draws and the part that sets it. The Simple view sizes the series resistor from the supply, the LED’s datasheet forward voltage and the current you want. The Advanced view designs the driver over the supply range, the Vf bin and the ambient: a resistor, a current sink (op-amp, MOSFET and sense resistor) or a constant-current regulator, with parallel strings, self-heating, PWM and the light it gives. Group Parts. Search words include led, resistor, series, forward voltage, current limit and indicator.
The window, the Simple and Advanced views, full screen and the place buttons are in The calculator window.
55.1Simple: the series resistor
| Choice | Options | What it does |
|---|---|---|
| LED colour | red, orange, yellow, green, blue, white, uv, ir | Sets the LED model’s emission coefficient N and series resistance Rs, as the LED part does: red, orange and yellow N 1.9 and 2 Ω, green 2.0 and 2 Ω, blue, white and UV 2.6 and 2 Ω, infrared 1.6 and 1 Ω. |
| Resistor series | E12, E24, E96 |
| Field | Unit | Default | What it does |
|---|---|---|---|
| Supply voltage | V | 5 | Across the resistor and the LEDs together. |
| LED forward voltage | V | 2.0 | At the test current below (red about 2, green 2.1, blue and white 3.2). Reads a selected LED’s vf. |
| LED test current | mA, A | 20 mA | The current the datasheet gives the forward voltage at. Reads a selected LED’s if_test. |
| LEDs in series | 1 | 1 to 20 (at most 50 are worked out). | |
| LED current | mA, A | 10 mA | SOLVE. The current you want, or the current a given resistor gives. |
| Resistor | Ω, kΩ | 330 Ω (solved) | SOLVE, solved when the calculator opens: the nearest standard value, or the resistor you have when the current is solved. |
The LED is the simulator’s own: IS is fitted so the Shockley law gives the datasheet Vf at the test current, and Vf(I) = n Vt ln(I/IS + 1) + I Rs. So Vf is taken at the working current, not at the test current. R = (Vs − N·Vf) / I. Solving the current finds the current where N·Vf(I) + I·R = Vs.
| Result | What it is |
|---|---|
| Standard value | The nearest value of the series, nearest in ratio (orange). |
| Exact value, Neighbours in E24 | The exact resistor and the two standard values around it. |
| Current with it | The current the standard value really gives. |
| LED current | When the current is solved (replaces the four above). |
| Vf per LED | At the working current. |
| Resistor power, Resistor rating | I²R, and the first of 0.1, 0.125, 0.25, 0.5, 1, 2, 3 and 5 W that is at least twice it. |
| LED power, Supply power | N·Vf·I and Vs·I. |
The plot LED current against voltage draws the LED curve and the resistor’s load line, with the working point marked.
| Message | When it shows |
|---|---|
| "Supply 1.5 V is below the string voltage 1.95 V at 10 mA. Raise the supply or use fewer LEDs in series." | The string needs more than the supply. The tiles read 0. |
| "Resistor 301 mW is above the 0.25 W of a quarter-watt part. Use a 1 W resistor or lower the supply." | Over 0.25 W. |
| "Resistor … A 1/8 W part runs hot, use 1/4 W or larger." | Over 0.125 W. |
| "Current 30.2 mA is above the 20 to 30 mA of an indicator LED. Check the LED’s absolute maximum current." | Over 30 mA. |
| "Nearest E24 value gives …, … % off target. Use E96 or two resistors in series." | The standard value is more than 10 % off. |
| "The LEDs drop over 90 % of the supply, so the current follows the supply and Vf closely. A current source holds it steadier." | Little headroom. |
| "At most 50 LEDs in one string." | More than 50. |
| Button | What it does |
|---|---|
| Place as circuit | V_LED, R_LED and the LEDs (with the colour, vf and if_test), a probe I LED, in the live view. |
| Apply to the selected resistor | The resistor used, into the selected resistors. |
- Open the LED resistor (type
led): 5 V, red, 2.0 V at 20 mA, one LED, 10 mA, E24. - Press SOLVE on LED current and type Resistor
330.
You should seeStandard value 300 Ω (exact 305 Ω, neighbours 300 Ω and 330 Ω), 10.2 mA with it, Vf 1.95 V at that current, 31.1 mW in the resistor (rating at least 100 mW). With 330 Ω the current is 9.27 mA.
55.2Advanced: the LED driver

| Choice | Options | What it does |
|---|---|---|
| Driver | Resistor, Current sink, CC regulator | Current sink: an op-amp holds a MOSFET’s source at Vref across a sense resistor, I = Vref / Rs. CC regulator: a constant-current regulator with its accuracy and headroom. |
| Tab | Its dot | Cards |
|---|---|---|
| Design | The worst check. | Result, Operating points, Parts, Checks. |
| Corners and spread | Red when the current spread is over 50 %, amber over 30 %. | Corners, Checks, I(LED) vs supply, Monte Carlo spread. |
| Strings | With two strings or more: red over 20 % imbalance, amber over 10 %. | Parallel strings. |
| Driver and parts | Resistor: red over its usable rating. Sink or regulator: red when it drops out at Vs min. | Parts, Resistor derating (or Driver loss vs supply), Checks. |
| PWM and light | Amber with PWM under 1250 Hz. | PWM and light. |
| Verify in simulation | None. | Calculator vs simulation. |
| Field | Unit | Default | What it does |
|---|---|---|---|
| Supply Min / Nominal / Max | V | 4.5 / 5 / 5.5 | Group Supply and target. Min and max follow at ±10 % of the nominal until you type them. |
| Ambient Min / Nominal / Max | °C | 0 / 25 / 60 | |
| Target current | mA | 10 | |
| Resistor, or Sense resistor | Ω | SOLVED | The resistor driver’s resistor, or the sink’s sense resistor (nearest E96 to Vref / I). |
| Resistor sizing | Typ = target, Max ≤ target | Max ≤ target takes the next value up so the highest corner stays at or under the target. | |
| Colour | Red … IR | Group LED (datasheet). A colour loads typical datasheet figures: red, orange, yellow Vf 1.8 / 2.0 / 2.4 V and −2 mV/°C, green 2.8 / 3.1 / 3.5 V and −3 mV/°C, blue 2.8 / 3.0 / 3.4 V, white 2.8 / 3.0 / 3.3 V and −2.5 mV/°C. | |
| Vf min / typ / max | V | 1.8 / 2.0 / 2.4 | The Vf bin of the datasheet. |
| At test current | mA | 20 | |
| Vf tempco | mV/°C | −2 | |
| If abs. max, Tj max | mA, °C | 30, 115 | |
| Rth j-a (board) | °C/W | 250 | For self-heating: Tj = Ta + Rth × I × Vf. |
| LEDs per string, Strings in parallel | 1, 1 | Group Strings (badge 2 × 3). Up to 8 strings. | |
| Ballast | Resistor per string, Shared resistor (Driver per string, Shared driver) | ||
| Series, Tolerance, Tempco | , ±%, ppm | E24, 1, 100 | Group Resistor. |
| Use at most | % | 50 | Of the derated package rating. |
| Package (thick film, rating at 70 °C) | 0402 … 2512, 0805 | 0402 62.5 mW, 0603 0.1 W, 0805 0.125 W, 1206 0.25 W, 1210 0.5 W, 2010 0.75 W, 2512 1 W. The rating falls to 0 at 155 °C. | |
| Reference, Reference tol., Sense R tol., Min Vds, FET θJA | V, ±%, ±%, V, °C/W | 0.5, 1, 1, 0.2, 250 | Current sink. |
| Accuracy, Headroom, θJA | ±%, V, °C/W | 10, 1.8, 200 | CC regulator. |
| DC or PWM, Duty, Frequency | , %, Hz | DC, 50, 1000 | Group PWM and light. |
| Flux at test I, Flux exponent, Flux tempco | lm, , %/°C | 7, 1.0, −0.6 | Light = flux × (I / Itest)exponent × (1 + tempco (Tj − 25)). |
The corners. Each corner puts every limit the same way: Lowest current is Vs min, the Vf max bin, cold and the resistor at +tolerance. Typical is nominal. Highest current is Vs max, the Vf min bin, hot and the resistor at −tolerance. The LED is the simulator’s own with the datasheet tempco added, and its junction temperature is found together with the current. A sink regulates while its headroom is at least Min Vds, else the string is limited by what is left. A regulator scales down in proportion when it lacks headroom. The Monte Carlo draws 700 builds: supply and ambient uniform over their ranges, Vf normal inside the bin (the bin is ±3σ), the tolerances ±3σ.
| Result | What it is |
|---|---|
| Resistor, Sense resistor or CC regulator | The part that sets the current. |
| Current | Typical, and the target. |
| Range | Lowest to highest corner, and the spread as % of typical. Amber over 30 %, red over 50 %. |
| R power or Driver loss | At the worst corner (with the duty in PWM). |
| R package or Headroom | The smallest package whose rating covers the power and voltage, or the sink’s headroom at the lowest corner. |
| LED Tj | At the hot corner. |
| Efficiency | LED power over supply power, typical. |
| Light | From the lowest-current corner to the highest, as % of typical, with Tj. The first number belongs to the lowest-current corner, so a hot corner can read like 96–72 %. |
The Corners table gives supply, Vf bin, ambient, resistor, Vf at the current and Tj, current, Tj, power and brightness for each corner. I(LED) vs supply draws the three corners over the supply range with the other driver dashed. Parallel strings compares a resistor per string with a shared one for each Vf bin, and the hottest string. Parts gives what to order (resistor, its rating at 70 °C, working voltage, how many, the LED’s If max and Tj, and the Vf bin for at least 70 % light), the table Driver options comparing the three drivers, and Copy, Copy BOM line and Find resistors (which closes the calculator and searches the library for the resistor’s value).
| Check | Value and limit | Passes | Marginal | Fails |
|---|---|---|---|---|
| Highest current vs LED rating | I · If max | If max ≥ 1.1 × I | Up to If max | Over |
| Lowest current vs target | I · target | 80 % of target or more | 60 % or more | Less |
| Current spread | % min to max | 30 % or less | 50 % or less | More |
| Headroom across the resistor | % of Vs min | 20 % or more | 10 % or more | Less |
| Resistor power vs derated rating | W · usable rating | Within it | Up to 1.25 × it | More |
| Resistor voltage | V · package maximum | 1.5 × margin | Within it | Over |
| Nearest E24 value | R · % off target | Within 5 % | Within 10 % | More |
| Regulates at Vs min (sink, regulator) | V · Vsat or headroom | 1.5 × what it needs | What it needs | Drops out |
| Driver junction | °C · P × θ | Under 125 °C | Under 150 °C | More |
| LED junction | °C · Tj max | 10 °C under it or more | Under it | Over |
| String current sharing | % · ballast | 10 % or less | 20 % or less | More |
| PWM flicker (IEEE 1789) | frequency | 1.25 kHz or more | 90 Hz or more | Less |
| Message | When it shows |
|---|---|
| "Current spread −31 % / +25 %: the resistor drops 3.06 V of 5 V. Use fewer LEDs per string, a higher supply or a current sink (4 % spread)." | A resistor driver with a spread over 50 %. |
| "Highest-corner current … is above the 30 mA rating. Use R ≥ … (10 % margin) or a current sink." | Over the LED’s rating. |
| "LED Tj … (Rth … °C/W × …) is above the 115 °C limit. Add copper under the LED or lower the current." | LED too hot. |
| "3 LEDs need …, the supply is …. Use fewer LEDs per string or a boost driver." | The string needs more than the supply. |
| "Resistor 72.3 mW at 60 °C. A 0805 allows 62.5 mW at 50 % of its derated rating. Use a 1206 or two resistors in series." | Resistor over its usable rating. |
| "Regulator drops out at 10.8 V with the Vf max bin: current 8.96 mA. Use one LED fewer per string or a lower reference." | Sink or regulator drops out. |
| "Shared resistor: string currents differ by … % and the hot string runs away. Use one resistor per string." | Shared ballast over 20 % imbalance. |
| "PWM 1 kHz at 100 % modulation is above the IEEE 1789 low-risk line. Use ≥ 1.25 kHz (low risk) or ≥ 3 kHz (no observable effect)." | PWM under 1250 Hz. |
| "Nominal supply … is outside the … to … range. Set min and max around it." | Typed range does not hold the nominal. |
Verify in simulation places the driver at a chosen Corner (Lowest current, Typical, Highest current) and compares: LED current (op) within 3 %, Vf each within 30 mV, LED junction (rth_ja) within 3 °C, Resistor power or Driver power within 6 %, and Current from Vs min to max (a DC sweep) within 4 %. Light output is not simulated: the engine has no photometric model. The placed LED carries the band gap eg for the datasheet tempco. From 0.8.1 the engine sets it by itself (LED), and the written value keeps older engines right.
| Button | What it does |
|---|---|
| Place and run | The chosen driver at the chosen corner: V_LED, R_LED and the LEDs with colour, vf, if_test, vf_tol, rth_ja, tamb and eg, or the sink (Q_LED, R_SENSE, U_LED, V_REF), or an ideal current source for the regulator, in the split live view with a probe on the LED current. |
| Run corners | Three circuits side by side (_MIN, _TYP, _MAX), an operating point, and LED current, lowest current corner and the others within ±3 % of the calculator. |
| Sweep supply | A DC sweep of V_LED from 0.9 × Vs min to 1.15 × Vs max, typical corner. |
| Monte Carlo (200 runs) | tol on the supply, the driver parts and the LED bin, a Monte Carlo of the operating point (seed 1). LED current within the 99.73 % limits. |
| Apply to R | Resistor driver with a resistor selected: its value. |
| Simple | Advanced |
|---|---|
| Supply voltage | Supply Nominal |
| LED forward voltage, LED test current | Vf typ, At test current |
| LEDs in series | LEDs per string |
| LED current | Target current |
| LED colour, Resistor series | Colour, Series |
- Open the LED resistor and press Advanced: 5 V ±10 %, red, 10 mA, 0 to 60 °C.
- Open Driver and parts and read the table Driver options.
You should seeThe resistor is 300 Ω. The current runs from 7.07 mA (4.5 V, Vf max bin, 0 °C) to 12.8 mA (5.5 V, Vf min, 60 °C, Tj 65 °C): a 56 % spread, so Current spread fails and the warning suggests a current sink. The table shows the sink at 9.8 to 10 mA (4 %) and the CC regulator at 9 to 11 mA (20 %). Run corners passes at all three corners.