14. Handle supply variation

Circuit

Loading simulator…

Design Approach

A fixed LED resistor must be selected for the entire 9–16 V supply range, not a single nominal point. The design must prevent excessive current at 16 V without dropping below 4 mA at 9 V.

How the Circuit Works

  1. Calculate the minimum safe resistance. At the highest supply, the resistor drops approximately 16−2=14V16 - 2 = 14\,\mathrm{V}. To stay at or below 14 mA:R≥14V14mA=1kΩR \ge \frac{14\,\mathrm{V}}{14\,\mathrm{mA}} = 1\,\mathrm{k}\Omega
  2. Calculate the maximum allowable resistance. At 9 V, at least 4 mA must flow, so:R≤(9−2)V4mA=1.75kΩR \le \frac{\left(9 - 2\right)\,\mathrm{V}}{4\,\mathrm{mA}} = 1.75\,\mathrm{k}\Omega
  3. Select a value within the range. The solution adds R1 = 1.2 kΩ in series with LED1 and I_LED1. Approximate currents are 5.8 mA at 9 V, 8.3 mA at 12 V, and 11.7 mA at 16 V.
  4. Recognize the trade-off. The resistor maintains safe bounds, but it does not keep LED current constant: brightness can change as VIN varies.

Verify the Circuit

Change VIN between 9 V, 12 V, and 16 V, checking that I_LED1 remains between 4 mA and 14 mA. Try R1 = 680 Ω to see the high-voltage current exceed the limit.

Key Learnings

  • Design with minimum and maximum input conditions rather than the typical supply.
  • A resistor is simple and inexpensive, but a constant-current driver is preferable when consistent brightness is essential.