Loading simulator…
An LED cannot be connected directly to a supply without controlling its current. The design uses one series resistor to drop the supply voltage that the LED does not consume, setting I_LED1 to approximately 10 mA.
LED1 has a nominal 2 V forward drop. With VIN = 5 V, the resistor must drop .Choose the resistance. For the 10 mA target:
The solution adds R1 = 300 Ω in series with the existing I_LED1 ammeter and LED1 between VIN and GND.
R1, I_LED1, and LED1. The resistor dissipates about , which also matters when selecting a real resistor.Set VIN = 5 V and check . As an experiment, increase R1 to 600 Ω: current should decrease toward 5 mA, assuming a similar LED forward voltage.