• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Build Electronic Circuits

Build Electronic Circuits

Electronics explained in a simple way

  • Start Learning
    • Basic Electronics
    • Digital Electronics
    • Circuits
    • Practical Skills
      • Printed Circuit Boards
    • Microcontrollers
      • Arduino
    • Maker Lifestyle
      • Podcast
  • About Me
  • Blog
  • Products
  • Contact
You are here: Home / Basic Electronics / PNP Transistor – How Does It Work?

PNP Transistor – How Does It Work?

December 19, 2016 By Øyvind Nydal Dahl 70 Comments

A pile of various transistorsThe PNP transistor is a mystery to many. But it doesn’t have to be. If you want to design circuits with transistors, it’s really worth knowing about this type of transistor.

For example: Want to automatically turn on a light when it gets dark? The PNP transistor will make this easy for you.

In my article how transistors work, I explained how a standard NPN transistor works. If you haven’t already, I’d really urge you to read that article first.

If you understand the NPN transistor, it will make it easier to understand the PNP transistor. They work pretty much in the same way, with one major difference: The currents in the PNP transistor flow in the opposite directions of the currents in the NPN transistor.

Note: This topic is much easier with an understanding of current flow and voltages.

How PNP Transistors Work

The PNP transistor has the same leg names as the NPN:

  • Base
  • Emitter
  • Collector

A PNP transistor will “turn on” when you have a small current running from emitter to base of the transistor. When I say “turn on”, I mean that the transistor will open up a channel between emitter and collector. And this channel can carry a much larger current.

pnp-transistor-explanation

To get current running from emitter to base, you need a voltage difference of about 0.7V. Since the current goes from emitter to base, the base needs to be 0.7V lower than the emitter.

By setting the base voltage of a PNP transistor to 0.7V lower than the emitter, you “turn the transistor on” and allow for current to flow from emitter to collector.

I know this can sound a bit confusing, so read on to see how you can design a circuit with the PNP transistor.

Example: PNP Transistor Circuit

Let’s see how to create a simple PNP transistor circuit. With this circuit you can use to turn on an LED when it gets dark.

Step 1: The Emitter

First of all, to turn on the PNP transistor, you need the voltage on the base to be lower than the emitter. For a simple circuit like this, it’s common to connect the emitter to the plus from your power source. This way, you know what voltage you have on the emitter.

PNP transistor circuit design step 1

Step 2: What You Want To Control

When the transistor turns on, the current can flow from the emitter to the collector. So, let’s connect what we want to control: An LED. Since an LED should always have a resistor in series with it, let’s add a resistor too.

pnp-transistor-circuit-step2

You can replace the LED and resistor with whatever you want to control.

Step 3: The Transistor Input

To turn on the LED, you need to turn on the transistor so that the channel from emitter to collector opens. To turn on the transistor you need to get the voltage on the base to be 0.7V lower than the emitter, which is 9V – 0.7V = 8.3V.

For example, you can now make the LED turn on when it gets dark by using a photoresistor and a standard resistor set up as a voltage divider.

The voltage on the base won’t behave exactly as the voltage divider formula tells you. This is because the transistor affects the voltage too.

But in general, when the photoresistor value is large (no light present) the voltage will be close to 8.3V and the transistor is on (which turns on the LED). When the value of the photoresistor is low (a lot of light present) the voltage will be close to 9V and turn off the transistor (which turns off the LED).

simple-pnp-transistor-circuit

What Controls The Base Voltage?

You might wonder: “How did the photoresistor and resistor on the base magically create the correct voltage of 8.3V when it’s dark?”

It’s partly because the emitter and base makes up a diode. And a diode always try to get its diode voltage over itself. This particular diode has a diode-voltage of about 0.7V. And 8.3V is 0.7V less than 9V.

But, it’s also partly because the size of the photoresistor and resistor on the base sets up the voltage to be in the correct range.

Check Out My Circuit

Here’s a video of the circuit in action:

The transistor I used in this video is a BC557 PNP transistor. It’s one of the transistors that James Lewis recommends in his article on the best 4 transistors to keep in your parts kit.

The photoresistor I used has about 10 kΩ when it’s light and 1 MΩ when it’s dark. The resistor on the base of the transistor is a 100 kΩ resistor. The LED is a standard output LED. And the resistor in series with the LED is a 470 Ω.

If you have any questions or comments, let me know in the comment field below!

Filed Under: Basic Electronics

Reader Interactions

Comments


  1. Benjamin Bonsu says

    December 20, 2016

    Thanks very much for sharing this information
    But left an important resistor value.

    What could be the resistance value in series with the LED basically.

    Thank you.

    BB

    Reply

    • admin says

      December 20, 2016

      Hey Benjamin,
      The resistor in series with the LED is 470 Ohm.

      Oyvind

      Reply

  2. M.Salman Shahid says

    December 20, 2016

    Very Good Article.
    Thank you Sir.

    Reply

    • admin says

      December 20, 2016

      Thanks for your comment!
      Oyvind

      Reply

  3. jeotham says

    December 20, 2016

    where do you find the value of a 100k ohms resistor?

    Reply

    • admin says

      December 20, 2016

      Do you mean where to buy one? Here’s a list of places: https://www.build-electronic-circuits.com/buy-electronic-components/

      Or do you mean how to find the value of a resistor? Then this might help: https://www.build-electronic-circuits.com/resistor-color-codes/

      Best,
      Oyvind

      Reply

  4. m.johnwilson says

    December 20, 2016

    Thankyou very much for sharing this articals

    its very useful for my electronic knowledge
    Thankyou

    Reply

    • admin says

      December 20, 2016

      That’s great!
      Oyvind

      Reply

  5. Alex says

    December 20, 2016

    it’s possible only to work in saturation region? the goal is to have fully turn on or off the led.

    Thanks!

    Reply

    • admin says

      December 20, 2016

      Hi Alex,

      It turns fully on and off now. But are you looking for a sharper transition between on and off to avoid the half-on state?

      Best,
      Oyvind

      Reply

      • Alex says

        December 21, 2016

        Thanks for your quick reply!

        Exactly, like a digital output

        BR

        Reply

        • admin says

          December 21, 2016

          You can use a transistor with higher gain. Maybe the TIP120 would work…

          Reply

  6. james mushi says

    December 21, 2016

    we are enjoying so much good artical which you have post

    Reply

    • admin says

      December 22, 2016

      Great =)

      Reply

  7. Alhassan says

    January 2, 2017

    Thanks a lot for such tremendous effort in explaining such a difficult question in an easier way. My question is if we were to place a variable resistor in the circuit, where can we place it and why, because I’m always confuse by the way you place them I use to think that if it were to be placed then it should be placed immediately after the power source. Pls explain.

    Reply

    • admin says

      January 3, 2017

      Well that depends what you want to achieve with the potentiometer…

      Reply

  8. Alhassan says

    January 2, 2017

    Thanks a lot . I also want to ask now for example when the environment is semi dark the led might experience “on” and “off” rapidly due to fluctuation of the LDR and it happened at very high frequency which might damage the LEDs now what is the solution to this problem?

    Reply

    • admin says

      January 3, 2017

      The semi-off would dim the LED, not fluctuate. But if you somehow had a high-frequency signal and you want to fix the signal (instead of the source of the problem) then you can use a low-pass filter.

      Reply

  9. victor kacou says

    January 28, 2017

    thank you sir for the articles

    Reply

  10. SADDIK MOHAMMED says

    January 31, 2017

    Thank you for the knowledge. I would like you to explain saturation region one day.

    Reply

  11. Clayton Benignus says

    March 21, 2017

    I did the Math. There is a problem.

    In the final circuit, we have a voltage divider on the left side consisting of a Photoresistor of two different values (Dark=10K; Light = 1M=1000K) and a normal 100K Resistor feeding the base of the PNP Transistor with the threshold voltage or 8.3 Volts which powers up the LED.

    In Light, the voltage is (100K/(100K+10K))*9 Volts = 900/110 Volts < 8.2 Volts < 8.3 Volt Threshold.

    In Dark, the voltage is (100K/(100K+1000K))*9 Volts = 900/1100 Volts < 0.82 Volts < 8.3 Volt Threshold.

    There is either a problem with my Math or your Circuit. Your circuit works according to your video. What did I do wrong?

    Reply

    • admin says

      March 21, 2017

      Hey Clayton,

      That’s a good observation!

      Actually, the voltage on the base won’t behave exactly as the voltage divider formula tells you. This is because the transistor affects the voltage too.

      The part between the emitter and the base of the transistor behaves as a diode of 0.7V. A diode has internal resistance that varies depending on the current and/or voltage through it.

      Since the photoresistor is in parallel with the emitter-to-base diode, it’s resistance will affect the total resistance of the voltage-divider

      Taking that resistance into account makes the calculations very complex. Here’s an article on that resistance if you’re curious: http://www.learningaboutelectronics.com/Articles/Diode-resistance.php

      So, for this type of circuit – it makes more sense to make a simplified calculation like you did above to make a first guess of the correct resistor value. Then test it in real life and adjust the value according to your needs.

      Best,
      Oyvind

      Reply

      • BUSOBOZI EDMOND says

        November 26, 2020

        Does it mean when you apply a voltage at the emitter you automatically get a voltage less than 0.7V on the base?

        Reply

        • admin says

          November 30, 2020

          No, but if you connect a resistor to the base, and the other end of the resistor to a lower voltage (for example 0V), then you get a voltage on the base 0.7V less than what is on the emitter.

          Reply

  12. Clayton Benignus says

    March 22, 2017

    Just the same, I’d be happier with a 120 Kohm Resistor, which will make the Math work out better, but there is nothing wrong with your pragmatism.

    Reply

  13. Clayton Benignus says

    April 6, 2017

    It occurs to me that if I take your last diagram of the Night light Circuit and replace the LED with the Transistor Blink LED Circuit from https://www.build-electronic-circuits.com/simple-electronic-circuits/#more-909 , that I would have a blinking Night Light.

    This brings about a few problems, i.e, making the Math work out for the flashing lights. Firstly, how much power does the flashing light component need? Second, how much power can the Transistor Switch deliver? Third, how much power does it take to power the circuit? Finally, since I’d like to power it through an Adapter on a Wall Socket, what is the power I need and what interface can I use to deliver that power?

    Reply

    • Clayton Benignus says

      April 10, 2017

      Please ignore. I found an improvement!

      Reply

  14. Hollie A. Rieck says

    April 19, 2017

    I would like to build a circuit similar, but with a thermistor, and different LED lights for various temperatures. I believe this could be accomplished using PNP’s. Have you made a temp controlled LED’s?

    Reply

    • admin says

      April 21, 2017

      I haven’t made that with PNP’s. Only with a microcontroller. Let me know how it goes!

      Best,
      Oyvind

      Reply

  15. Clayton Benignus says

    May 6, 2017

    I tried the Night Light Circuit. I substituted a 2N4401 Transistor for the BC557 and weird things happened! It behaved properly only when the Photo-resistor and the 100K Ohm Resistor switched places and it did not matter if the 2N4401 was in backwards or not. Light turned off the Circuit and Darkness turned it on! If I assembled the circuit as diagrammed, Light turned on the Circuit and Darkness turned it off.

    What’s going on here?

    Reply

    • Clayton Benignus says

      May 6, 2017

      OK, I used the wrong type of Transistor. No wonder it was backwards.

      Reply

  16. Clayton Benignus says

    June 1, 2017

    According to http://alltransistors.com/ , there are at least 91182 transistors. How do I navigate through this maze and fin the one most suited for a given application?

    Reply

    • admin says

      June 16, 2017

      Start with a standard one that you are familiar with. If this for some reason will not work for your circuit, find one that will. For example if you have a problem with the BC546 does not conduct enough current, find one that can handle more current. If it’s too slow, find a faster one. Etc….

      Best,
      Oyvind

      Reply

      • Clayton Benignus says

        July 25, 2017

        Like I said, how??? What am I looking for?

        Reply

        • admin says

          July 28, 2017

          What’s the application?

          Reply

  17. ryan says

    July 21, 2017

    In your circuit, does the transistor will turn on when voltage on the base is exactly 8.3V ?

    Thanks.

    Reply

    • admin says

      August 7, 2017

      Exactly no. But around 8.3V.

      Reply

  18. innocent bernard says

    August 5, 2017

    Acturely, you guys you know much about Electronics .How can I make it to be like you guys, am A-level student in Tanzania taking physics,chemistry,biology and basic applied mathematics.

    Reply

  19. Mike says

    September 6, 2017

    Nice article I will make out time to read this in details. Thanks a lot

    Reply

  20. Avinash Soloman says

    March 28, 2018

    guys I want to to how to create a circuit of by NOT gate using pnp transistor

    Reply

  21. Meghana says

    May 10, 2018

    Hi Base voltage should be 0.7 and 8.3 or its between 0.7 and 8.3V

    Reply

  22. Aundrea Elkayam says

    May 17, 2018

    This site is absolutely fabulous!

    Reply

  23. G. says

    May 24, 2018

    Shouldn’t the symbol be different? I thought the arrow of a PNP transistor was facing towards the base but on the collector terminal

    Reply

    • admin says

      May 25, 2018

      It should be on the emitter terminal :)
      (https://en.wikipedia.org/wiki/Bipolar_junction_transistor)

      Reply

  24. Rezk says

    July 27, 2018

    Hi Oyvind,
    I have a 24vdc tyco smoke detecor & i need to enegize a 24vdc relay when smoke is detected.
    Can you describe the needed circuit & components please.

    Reply

    • admin says

      August 3, 2018

      Hi, sorry I’m not familiar with your smoke detector.

      Reply

  25. girl says

    July 31, 2018

    Hi. for the Photosensor/LED cct, let say the photosensor is not there. Base only has resistor to pull to ground. if I measure the voltage at Base line, I should get 8.3V. Right?

    Reply

    • admin says

      August 3, 2018

      Yes, that should be correct.

      Reply

  26. Al says

    August 4, 2018

    Hello how this circuit can behaves opposite, ie led to be off during darkness?
    Thanks

    Reply

  27. ramesh kumar says

    September 10, 2018

    Thanks for sharing information about transister npn and pnp
    Tanls again

    Reply

  28. sunil says

    October 31, 2018

    hence I am a beginner, ur lessons are very useful to me, I want to know abt fault finding techniq easy way
    thanking u sir,

    Reply

  29. Junk says

    April 24, 2019

    What are some common examples of when you’d want to design a circuit using a PNP BJT instead of choosing a NPN?

    I tried to sift through all the comments to see if anyone hd asked this already but after a while, I decided to just go ahead and ask it myself. That is A LOT of comments.

    Thanks for any insight!

    Reply

    • admin says

      April 27, 2019

      Usually it depends if you want a low-side or high-side configuration. That is – if you want to connect your transistor below or above what you want to turn on and off.

      Here’s an article that explains a bit more:
      https://www.baldengineer.com/low-side-vs-high-side-transistor-switch.html

      Reply

  30. Simon says

    May 20, 2019

    Hi, I am curious as to why a resistor is required between the photo resistor and -9v terminal, as the photo resistor is a resistor ? I understand the need for the one between the LED and the collector.

    Reply

    • admin says

      May 20, 2019

      It makes up a voltage divider with the photoresistor. Without it, you’ll always have 0.7V on the base and the transistor won’t turn on and off.

      Reply

  31. Kozmotronik says

    August 8, 2019

    Hi there!
    This article explaining PNP transistors is one of the bests I have ever read. The explanation is supported with very basic theory and practice, makes the article clear and easily understandable. So the author deserves much thanks.

    Reply

    • admin says

      August 14, 2019

      Glad you liked it!

      Reply

  32. sunil says

    January 21, 2020

    i would like to know the calculations also. how much current we are allowing, current gain etc.
    the way you explained working of transistors is good and easy to understand, the same way Can you please explain the calculations ?

    Reply

    • admin says

      November 3, 2020

      I’ll make an article like that in the future.

      Reply

  33. Shashi Kiran says

    May 20, 2020

    How do you decide on the value of the resistor on the base of the transistor ?

    Reply

    • admin says

      November 3, 2020

      First, find the value of the photoresistor for when you want the transistor to switch between on and off. Then use the voltage divider formula: https://www.build-electronic-circuits.com/voltage-divider/

      Reply

  34. Aremy says

    June 21, 2020

    Thanks for this. You solved an agelong problem for me. However, I need to know the purpose of the resistor below the photoresistor and how it is calculated.

    Aremy

    Reply

    • admin says

      November 3, 2020

      The purpose of the resistor is to create a voltage divider: https://www.build-electronic-circuits.com/voltage-divider/

      Reply

  35. musicman44mag says

    November 3, 2020

    Hi. I passed my extra exam and I am qualified to use all frequency’s allowed by the FCC. Your material that you cover is one of the areas of my exam that I had to know in order to pass the test. They taught me the same mumbo jumbo that you started with in the very beginning and then clarified that is a simple on and off switch that works with voltage on one way and another with voltage off. Thank you for the clarification. The light bulb came on just by hearing that. So nice that you can break it down so laymen can learn. Thank you for being there.
    I want to learn electronics so I can repair linear amps and you are definitely helping with your training material for morons.

    Reply

    • admin says

      November 3, 2020

      Really glad it helped!

      Reply

  36. Arunesh Raj says

    November 16, 2020

    Hello

    Please I need an immediate answer; what about if the voltage at the base is 0.6 lower than the 9V instead of 0.7V? will the channel between the emitter and collector still open?

    Reply

    • admin says

      November 16, 2020

      Yes, it’s not exactly 0.7V. It’s around 0.7V. At 0.6V, it has usually started opening.

      Reply

  37. AA says

    December 4, 2020

    How can I design a circuit that can dimming one LED without using an NPN transistor (2SC1815, etc.).

    Elements that can be used

    • Resistance: 47,75,220,820,2.2k,10k,15k,33k,200k, 4.7MΩ

    • Variable resistance (semi-fixed resistance): 100kΩ

    • Diode: 1S1588

    • PNP transistor: 2SA1015

    • n-MOSFET: 2N7000

    • Capacitor: 0.1,10,33,47μF

    ——————————————

    • Use an arbitrary fixed voltage of DC 18V or less for the power supply. (Use a regulated DC power supply with a fixed voltage)

    • The current flowing through the LED should be less than 20mA .

    Effort goal (as much as possible) • Smoothly adjusts a wide light range. • Reduce loss (power loss).

    It’s homework and I’m stuck with it.

    Reply

  38. Didi says

    January 1, 2021

    There was a resistor after the photo resistor, why is that

    Reply

    • admin says

      January 4, 2021

      To create a voltage divider.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Search:

Footer

Topics

  • Basic Electronics
  • Digital Electronics
  • Circuits
  • Practical Skills
  • Microcontrollers
  • Maker Lifestyle
  • Newsletter Archive

Social:

  • Facebook
  • Twitter
  • YouTube

Copyright © 2021 · Ohmify AS · Terms and Conditions · Privacy Policy