I have an 8 LED driving circuit using a pnp transistor. I stole the design from somewhere, and I don't know what value to use for the base resistor, or even how to figure it out.
I tried to draw it in text but it didn't work out. Let me explain the circuit:
VCC ( 5v ) is connected to the emitter of the PNP transistor. The collector of the PNP is connected to the annodes of the 8 LEDs. The cathodes of the 8 LEDs are connected to the 8 row drive pins of the microcontroller. The base of the transistor is connected to another microcontroller pin via a base reistor.
Both row and column pins are active low.
How do I come up with a good value for the base resistor?
I never did understand transistors, how do I come up with the base resistor value? Is there anything else missing here, or a way to make the circuit better?
I tried to draw it in text but it didn't work out. Let me explain the circuit:
VCC ( 5v ) is connected to the emitter of the PNP transistor. The collector of the PNP is connected to the annodes of the 8 LEDs. The cathodes of the 8 LEDs are connected to the 8 row drive pins of the microcontroller. The base of the transistor is connected to another microcontroller pin via a base reistor.
Both row and column pins are active low.
How do I come up with a good value for the base resistor?
I never did understand transistors, how do I come up with the base resistor value? Is there anything else missing here, or a way to make the circuit better?
Last edited: