Sunday, 13 August 2017

transistors - NPN or PNP for multiplex seven segment display?


I want to put three multiplexed seven segment displays on a pcb module which then will be connected to another board through a 1x12 Pin header housing an ATMega (so assume in the following that Pin 11 is GND).


I created two circuit designs one using PNP transistors for multiplexing (as seen in most tutorials): PNP


and one with NPNs:



NPN


Wouldn't there be a benefit of using NPNs as we can avoid the 0.6V drop? How is the recommendation in this use case?



Answer



Either one will work.


There are two differences. With the PNP transistors, as you noted, you get a one-Vbe drop. This may or may not be significant, depending on your supply voltage and the type of LED display (blue or white LED displays will obviously be worse than red, green or yellow displays).


The NPN transistors avoid some of the drop (it will be more like 100mV with the transistors driven properly) but you will need to add a resistor in series with each base to control the base current. A suitable current (for most transistors) is the maximum collector current- with all segments on- divided by about 20.


The resistor is unnecessary for the emitter-follower PNP transistors- the base will just draw as much current as it requires, and usually the GPIO will provide enough resistance that the transistor won't decide to 'sing' at VHF frequencies.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...