I am using a typical 16F628A chip to power 2 LEDs among other things.
Let's just say space is something that's scares in this project and I have am using DIP Components.
One of the Pin will drive two LEDs.
I know that the "safest" approach is to put the resistor between the pin and the respective LED's anode.
The configuration is:
Pin->Resistor->Anode of LED.
This single pattern is repeated with the other LED [there are only two LEDs].
Could I get that one pin to drive the two LEDs like this ?
Pin->Anode of LED :: Cathode of LED to -> Resistor ->Ground.
The other LED will have its anode to the Pin and Cathode to the same resistor shared by the First LED. [resulting in one pin driving two LEDs with a SINGLE resistor]
Could I get that one pin to drive the two LEDs like this ?
Pin->Anode of LED :: Cathode of LED to -> Resistor ->Ground.
The other LED will have its anode to the Pin and Cathode to the same resistor shared by the First LED. [resulting in one pin driving two LEDs with a SINGLE resistor]
That could be a problem, as there is no guarantee that the current will be the same in both LEDs. It is best to use one resistor for each LED, or to put the LEDs in series if there is enough voltage.
When both LEDs are lit they will be dimmer than when one LED is lit. Apart from that it will work fine.
Edit, as Diver pointed out, when both are lit they may be different brightnesses. To avoid this probems you could time splice the two pins. I.E alternate each mS which pin is on.
When both LEDs are lit they will be dimmer than when one LED is lit. Apart from that it will work fine.
Edit, as Diver pointed out, when both are lit they may be different brightnesses. To avoid this probems you could time splice the two pins. I.E alternate each mS which pin is on.