Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Not really.For the circuit in post #21 or #23 the two resistors could be combined into a trimpot
Wow! colin55 & misterT, good thinking, good circuits with fewer components but a bit complex analysis required.
Yeah... It really is a shame...Sorry for the poor schematics, I didn't have a good symbol for bicolor led.
If you don't have a copyright on that solution, it will end up directly in my project !!![]()
It's not complex.. I just had some time to kill and made it look complex![]()
Hi,
From what i have read it appears that you want to drive a two leaded bicolor red/green LED with two uC port pins. The problem is that with the selection of any single resistor the red LED draws more current than the green LED.
The simplest solution is probably to use two resistors and three uC port pins. You can then direct current as needed and also switch resistor values.
Another idea might be to use two resistors and two diodes, directing the diodes to conduct through the appropriate resistors for each color LED.
Another idea is to scrap the current two lead LED and use a three lead LED. You can then use the right size resistors for each LED and still only two port pins. I did this with a project with a tri color LED and it works perfectly. These LEDs are not expensive these days either.
A really cheap idea is to use two different LEDs one green and one red which can be wired up each with their own resistor.