Loading simulator…
When LEDs with different forward voltages need different currents, give each an independent resistor. Two parallel branches let a red LED operate at 10 mA and a green LED at 5 mA from the same 5 V supply.
LED1 drops approximately 1.8 V, leaving 3.2 V across its resistor. For 10 mA:LED2 drops approximately 3.5 V, leaving 1.5 V. For 5 mA:R1 ahead of I_LED1 and LED1, and R2 ahead of I_LED2 and LED2. Both branches connect from VIN to their respective grounds.At VIN = 5 V, check that and . Double only R2: the green LED current decreases while the red branch remains essentially unchanged.