18. Design LED branches

Two LEDs operate from VIN = 5 V:

  • Red LED1 with forward voltage 1.8 V.
  • Green LED2 with forward voltage 3.5 V.

Design separate LED branches with individual current-limiting resistors so that I_LED1 measures 10 mA and I_LED2 measures 5 mA.

Example test cases:

VINExpected I_LED1Expected I_LED2
5 Vā‰ˆ10 mAā‰ˆ5 mA