fastback86
Member
I need help calculating the correct resistor values in the circuit shown. Basically the circuit is connected to a micro and is used to drive a 50mA load (LEDs) that run on 12V. When the micro output is high the LEDs are off and when the micro output is low the LEDs are on (0 to 5v signal). With a bit of experimenting I found values for R1 and R2 of 390 ohms and 4.7K respectively make the circuit work. My question is how do I calculate that without doing experimental guesswork? I tried watching videos on transistor biasing but I can't get a grip on it, most likely because of the multiple voltage sources involved.
Any help is appreciated.
Any help is appreciated.