2
\$\begingroup\$

I've read a bit about this but there seems to be much ambiguity. When using common cathode seven segment display LEDs would you use NPN or PNP? Or can you use either?

\$\endgroup\$
3
  • 2
    \$\begingroup\$ NPN when between LEDs and GND, PNP when between LEDs and VCC. \$\endgroup\$ Commented Apr 7, 2018 at 7:43
  • 1
    \$\begingroup\$ You might explain (in your question) what an SSD LED is. \$\endgroup\$
    – Transistor
    Commented Apr 7, 2018 at 7:55
  • \$\begingroup\$ Depends if the transistor is driving the cathode or the anodes. \$\endgroup\$
    – user16324
    Commented Apr 7, 2018 at 10:13

3 Answers 3

3
\$\begingroup\$

There are 2 possible combinations :

schematic

simulate this circuit – Schematic created using CircuitLab

The PNP circuit must be driven with inverted signal and it is a bit less efficient than the other.

\$\endgroup\$
5
  • \$\begingroup\$ Your PNP version circuit won't work the LED will be always OFF. And the NPN version is also a poor example. \$\endgroup\$
    – G36
    Commented Apr 7, 2018 at 9:40
  • \$\begingroup\$ About the PNP version, I forgot a base resistor. About the NPN version, it works fine to me and it has the least component \$\endgroup\$
    – Long Pham
    Commented Apr 7, 2018 at 9:50
  • \$\begingroup\$ The NPN (left circuit) does not need a base resistor in this configuration. \$\endgroup\$ Commented Apr 7, 2018 at 12:02
  • 2
    \$\begingroup\$ Put the PNP resistor in the collector rather than the emitter, then the transistor can be made to saturate and will thus run cooler and will generally provide a better defined LED current. If a relatively low power supply voltage is used, for example 3.3V, with a blue or white or even green display, the NPN version should not be used. \$\endgroup\$ Commented Oct 16, 2018 at 6:33
  • 1
    \$\begingroup\$ @SpehroPefhany Thanks for your suggestion, I've edited. \$\endgroup\$
    – Long Pham
    Commented Oct 19, 2018 at 10:47
0
\$\begingroup\$

When using common cathode 7 segment leds, you need a NPN type to drive the common cathode to GND. The P base must be driven P(ositive) with a series resistor.

Edit: I misunderstood your question. Please see Long Phams answer and drawings. Although he did not mention the common cathode. This must be connected to GND.

\$\endgroup\$
1
  • \$\begingroup\$ Thank you. Are there consequences to using the wrong type of transistor? Will it cause damage or at worst just do nothing? \$\endgroup\$
    – William
    Commented Apr 7, 2018 at 9:22
0
\$\begingroup\$

Actually, it depends on what you want to do. If you want to switch between segments, you should use PNP transistors and if you want to switch between digits then you should use NPN transistors.

In other words, NPN should be at the low side and PNP should be at the high side of the circuit.

For more information about transistors, take a look at this link: https://learn.sparkfun.com/tutorials/transistors/applications-i-switches

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.