Electronic – PNP to NPN Transistor switch

npnpnpswitchestransistors

I'm working on project that requires I switch a 12v power supply on the high side of a circuit, using a 3.3v micro controller. To make this work, I'm thinking a can connect a PNP transistor on the 12v high side, and connect the base to the collector of an NPN. Then connecting the base of the NPN to the 3.3v pin on the microcontroller and the emitter to ground. I found this example online:
enter image description here

This leads to my question…I need to create 8 separate switches on this one circuit…Does this PNP to NPN high-side switch still work if I connect multiple in series?? Here is my current schematic…
enter image description here

The LED represent the load for the 12v supply.
In this configuration, does the transistor still work like if there were only one NPN and one PNP…Or does the current get amplified with each NPN/PNP in the series?

Best Answer

You should put a resistor in series with each LED and eliminate R18. If you are just switching LEDs it's perhaps wasteful to construct a high-side switch- if you can switch the low side it only requires one NPN transistor per LED.

The high-side switch you show (top diagram) will work, however you can only switch a fairly small current due to the 10K base resistor. At 12V you'll get about 1mA base current so most transistor will be well saturated for up to ~20mA load current, but if you want to switch 100mA reliably you should reduce that resistor in most cases.

Also, it's good practice to add a resistor from base to emitter on the PNP. The reason is that the leakage in the NPN can be amplified by the PNP and result in excessive current at the output (particularly at high temperatures). Something like 20K to 100K will work fine (it's not critical). That said, you can guess that the gain of the PNP will be low at low base current and the circuit will typically work fine at moderate temperatures.