Dies ist eine alte Version des Dokuments!
Exercise 2.1.5 two LEDs on one digital output
For a circuit you need to control two LEDs, but unfortunately only one digital output is free. The supply voltage of the microcontroller and the board is 5V. LED1 should have a forward voltage $U_{f,1}=2.3V$ (red), LED2 should have a forward voltage $U_{f,2}=2.1V$ (green).
- Design a circuit from the existing voltage levels so that both LEDs can be driven.
Existing voltage levels:- Supply: $5V$
- Digital output: $5V$, $0V$ or high impedance
- Calculate the values for the other necessary components
\ \ \ \ \ \ \ \ \ \ \ \.