Transistor Circuits

Types of transistor

NPN and PNP transistor symbols
Transistor circuit symbols
There are two types of standard transistors, NPN and PNP, with different circuit symbols. The letters refer to the layers of semiconductor material used to make the transistor. Most transistors used today are NPN because this is the easiest type to make from silicon. This page is mostly about NPN transistors and if you are new to electronics it is best to start by learning how to use these first. The leads are labelled base (B), collector (C) and emitter (E).
These terms refer to the internal operation of a transistor but they are not much help in understanding how a transistor is used, so just treat them as labels!
A Darlington pair is two transistors connected together to give a very high current gain.
In addition to standard (bipolar junction) transistors, there are field-effect transistors which are usually referred to as FETs. They have different circuit symbols and properties and they are not (yet) covered by this page.


Transistor currents

transistor currents The diagram shows the two current paths through a transistor. You can build this circuit with two standard 5mm red LEDs and any general purpose low power NPN transistor (BC108, BC182 or BC548 for example). The small base current controls the larger collector current.
When the switch is closed a small current flows into the base (B) of the transistor. It is just enough to make LED B glow dimly. The transistor amplifies this small current to allow a larger current to flow through from its collector (C) to its emitter (E). This collector current is large enough to make LED C light brightly.
When the switch is open no base current flows, so the transistor switches off the collector current. Both LEDs are off.
A transistor amplifies current and can be used as a switch.
This arrangement where the emitter (E) is in the controlling circuit (base current) and in the controlled circuit (collector current) is called common emitter mode. It is the most widely used arrangement for transistors so it is the one to learn first.


Functional model of an NPN transistor

Functional model of NPN transistor The operation of a transistor is difficult to explain and understand in terms of its internal structure. It is more helpful to use this functional model:
  • The base-emitter junction behaves like a diode.
  • A base current IB flows only when the voltage VBE across the base-emitter junction is 0.7V or more.
  • The small base current IB controls the large collector current Ic.
  • Ic = hFE × IB   (unless the transistor is full on and saturated)
    hFE is the current gain (strictly the DC current gain), a typical value for hFE is 100 (it has no units because it is a ratio)
  • The collector-emitter resistance RCE is controlled by the base current IB:
    • IB = 0   RCE = infinity   transistor off
    • IB small   RCE reduced   transistor partly on
    • IB increased   RCE = 0   transistor full on ('saturated')
Additional notes:
  • A resistor is often needed in series with the base connection to limit the base current IB and prevent the transistor being damaged.
  • Transistors have a maximum collector current Ic rating.
  • The current gain hFE can vary widely, even for transistors of the same type!
  • A transistor that is full on (with RCE = 0) is said to be 'saturated'.
  • When a transistor is saturated the collector-emitter voltage VCE is reduced to almost 0V.
  • When a transistor is saturated the collector current Ic is determined by the supply voltage and the external resistance in the collector circuit, not by the transistor's current gain. As a result the ratio Ic/IB for a saturated transistor is less than the current gain hFE.
  • The emitter current IE = Ic + IB, but Ic is much larger than IB, so roughly IE = Ic.
There is a table showing technical data for some popular transistors on the transistors page.

Darlington pair
touch switch circuit
Touch switch circuit

Darlington pair

This is two transistors connected together so that the current amplified by the first is amplified further by the second transistor. The overall current gain is equal to the two individual gains multiplied together: Darlington pair current gain, hFE = hFE1 × hFE2
(hFE1 and hFE2 are the gains of the individual transistors)
This gives the Darlington pair a very high current gain, such as 10000, so that only a tiny base current is required to make the pair switch on.
A Darlington pair behaves like a single transistor with a very high current gain. It has three leads (BC and E) which are equivalent to the leads of a standard individual transistor. To turn on there must be 0.7V across both the base-emitter junctions which are connected in series inside the Darlington pair, therefore it requires 1.4V to turn on.
Darlington pairs are available as complete packages but you can make up your own from two transistors; TR1 can be a low power type, but normally TR2 will need to be high power. The maximum collector current Ic(max) for the pair is the same as Ic(max) for TR2.
A Darlington pair is sufficiently sensitive to respond to the small current passed by your skin and it can be used to make a touch-switch as shown in the diagram. For this circuit which just lights an LED the two transistors can be any general purpose low power transistors. The 100kohm resistor protects the transistors if the contacts are linked with a piece of wire.


Using a transistor as a switch

transistor and load When a transistor is used as a switch it must be either OFF or fully ON. In the fully ON state the voltage VCE across the transistor is almost zero and the transistor is said to be saturated because it cannot pass any more collector current Ic. The output device switched by the transistor is usually called the 'load'. The power developed in a switching transistor is very small:
  • In the OFF state: power = Ic × VCE, but Ic = 0, so the power is zero.
  • In the full ON state: power = Ic × VCE, but VCE = 0 (almost), so the power is very small.
This means that the transistor should not become hot in use and you do not need to consider its maximum power rating. The important ratings in switching circuits are the maximum collector current Ic(max) and the minimum current gain hFE(min). The transistor's voltage ratings may be ignored unless you are using a supply voltage of more than about 15V. There is a table showing technical data for some popular transistors on the transistors page. For information about the operation of a transistor please see the functional model above.

Protection diode for a relay

Protection diode

If the load is a motor, relay or solenoid (or any other device with a coil) a diode must be connected across the load to protect the transistor from the brief high voltage produced when the load is switched off. The diagram shows how a protection diode is connected 'backwards' across the load, in this case a relay coil. Current flowing through a coil creates a magnetic field which collapses suddenly when the current is switched off. The sudden collapse of the magnetic field induces a brief high voltage across the coil which is very likely to damage transistors and ICs. The protection diode allows the induced voltage to drive a brief current through the coil (and diode) so the magnetic field dies away quickly rather than instantly. This prevents the induced voltage becoming high enough to cause damage to transistors and ICs.


When to use a relay

Relay, photograph © Rapid Electronics
Relay, photograph © Rapid Electronics
Relays Photographs © Rapid Electronics 
Transistors cannot switch AC or high voltages (such as mains electricity) and they are not usually a good choice for switching large currents (> 5A). In these cases a relay will be needed, but note that a low power transistor may still be needed to switch the current for the relay's coil! Advantages of relays:
  • Relays can switch AC and DC, transistors can only switch DC.
  • Relays can switch high voltages, transistors cannot.
  • Relays are a better choice for switching large currents (> 5A).
  • Relays can switch many contacts at once.
Disadvantages of relays:
  • Relays are bulkier than transistors for switching small currents.
  • Relays cannot switch rapidly, transistors can switch many times per second.
  • Relays use more power due to the current flowing through their coil.
  • Relays require more current than many ICs can provide, so a low power transistor may be needed to switch the current for the relay's coil.


Connecting a transistor to the output from an IC

Most ICs cannot supply large output currents so it may be necessary to use a transistor to switch the larger current required for output devices such as lamps, motors and relays. The 555 timer IC is unusual because it can supply a relatively large current of up to 200mA which is sufficient for some output devices such as low current lamps, buzzers and many relay coils without needing to use a transistor. A transistor can also be used to enable an IC connected to a low voltage supply (such as 5V) to switch the current for an output device with a separate higher voltage supply (such as 12V). The two power supplies must be linked, normally this is done by linking their 0V connections. In this case you should use an NPN transistor.
A resistor RB is required to limit the current flowing into the base of the transistor and prevent it being damaged. However, RB must be sufficiently low to ensure that the transistor is thoroughly saturated to prevent it overheating, this is particularly important if the transistor is switching a large current (> 100mA). A safe rule is to make the base current IB about five times larger than the value which should just saturate the transistor.

Choosing a suitable NPN transistor

The circuit diagram shows how to connect an NPN transistor, this will switch on the load when the IC output is high. If you need the opposite action, with the load switched on when the IC output is low (0V) please see the circuit for a PNP transistor below. The procedure below explains how to choose a suitable switching transistor.
NPN transistor switch
NPN transistor switch
(load is on when IC output is high)
Using units in calculations
Remember to use V, A and ohm or
V, mA and kohm. For more details
please see the Ohm's Law page.
  1. The transistor's maximum collector current Ic(max) must be greater than the load current Ic.
    load current Ic =   supply voltage Vs
    load resistance RL
  2. The transistor's minimum current gain hFE(min) must be at least five times the load current Ic divided by the maximum output current from the IC.
    hFE(min)  >   5 ×     load current Ic  
    max. IC current
  3. Choose a transistor which meets these requirements and make a note of its properties: Ic(max) and hFE(min).
    There is a table showing technical data for some popular transistors on the transistors page.
  4. Calculate an approximate value for the base resistor:
    RB =   Vc × hFE    where Vc = IC supply voltage
      (in a simple circuit with one supply this is Vs)
    5 × Ic
    For a simple circuit where the IC and the load share the same power supply (Vc = Vs) you may prefer to use: RB = 0.2 × RL × hFE
    Then choose the nearest standard value for the base resistor.
  5. Finally, remember that if the load is a motor or relay coil a protection diode is required.
Example
The output from a 4000 series CMOS IC is required to operate a relay with a 100ohm coil.
The supply voltage is 6V for both the IC and load. The IC can supply a maximum current of 5mA.

  1. Load current = Vs/RL = 6/100 = 0.06A = 60mA, so transistor must have Ic(max) > 60mA.
  2. The maximum current from the IC is 5mA, so transistor must have hFE(min) > 60 (5 × 60mA/5mA).
  3. Choose general purpose low power transistor BC182 with Ic(max) = 100mA and hFE(min) = 100.
  4. RB = 0.2 × RL × hFE = 0.2 × 100 × 100 = 2000ohm. so choose RB = 1k8 or 2k2.
  5. The relay coil requires a protection diode.

PNP transistor switch
PNP transistor switch
(load is on when IC output is low)

Choosing a suitable PNP transistor

The circuit diagram shows how to connect a PNP transistor, this will switch on the load when the IC output is low (0V). If you need the opposite action, with the load switched on when the IC output is high please see the circuit for an NPN transistor above. The procedure for choosing a suitable PNP transistor is exactly the same as that for an NPN transistor described above.


Using a transistor switch with sensors

transistor and LDR circuit 1
LED lights when the LDR is dark
transistor and LDR circuit 2
LED lights when the LDR is bright
 
The top circuit diagram shows an LDR (light sensor) connected so that the LED lights when the LDR is in darkness. The variable resistor adjusts the brightness at which the transistor switches on and off. Any general purpose low power transistor can be used in this circuit. The 10kohm fixed resistor protects the transistor from excessive base current (which will destroy it) when the variable resistor is reduced to zero. To make this circuit switch at a suitable brightness you may need to experiment with different values for the fixed resistor, but it must not be less than 1kohm.
If the transistor is switching a load with a coil, such as a motor or relay, remember to add a protection diode across the load.
The switching action can be inverted, so the LED lights when the LDR is brightly lit, by swapping the LDR and variable resistor. In this case the fixed resistor can be omitted because the LDR resistance cannot be reduced to zero.
Note that the switching action of this circuit is not particularly good because there will be an intermediate brightness when the transistor will be partly on (not saturated). In this state the transistor is in danger of overheating unless it is switching a small current. There is no problem with the small LED current, but the larger current for a lamp, motor or relay is likely to cause overheating.
Other sensors, such as a thermistor, can be used with this circuit, but they may require a different variable resistor. You can calculate an approximate value for the variable resistor (Rv) by using a multimeter to find the minimum and maximum values of the sensor's resistance (Rmin and Rmax):
Variable resistor, Rv = square root of (Rmin × Rmax)
For example an LDR: Rmin = 100ohm, Rmax = 1Mohm, so Rv = square root of (100 × 1M) = 10kohm.
You can make a much better switching circuit with sensors connected to a suitable IC (chip). The switching action will be much sharper with no partly on state.


A transistor inverter (NOT gate)

transistor inverter circuit Inverters (NOT gates) are available on logic ICs but if you only require one inverter it is usually better to use this circuit. The output signal (voltage) is the inverse of the input signal:
  • When the input is high (+Vs) the output is low (0V).
  • When the input is low (0V) the output is high (+Vs).
Any general purpose low power NPN transistor can be used. For general use RB = 10kohm and RC = 1kohm, then the inverter output can be connected to a device with an input impedance (resistance) of at least 10kohm such as a logic IC or a 555 timer (trigger and reset inputs). If you are connecting the inverter to a CMOS logic IC input (very high impedance) you can increase RB to 100kohm and RC to 10kohm, this will reduce the current used by the inverter.

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Hi. I'm wondering if you may be interested in doing a website link exchange? I see your website: http://www.blogger.com/comment.g?blogID=86324850310242427&postID=4424320160731036159 and my website are based around the same topic. I'd love to swap
    links or perhaps guest author a article for you.
    Here is my personal contact: merlewentz@gmail.com. You
    should contact me if you're even remotely interested. Thanks for your time.

    My blog post: extended stays in Tucson

    ReplyDelete
  3. My programmer is trying to convince me to move to .
    net from PHP. I have always disliked the idea because of the costs.

    But he's tryiong none the less. I've been using WordPress on various websites for about a year and
    am worried about switching to another platform.
    I have heard fantastic things about blogengine.net. Is there a
    way I can import all my wordpress posts into it? Any help
    would be greatly appreciated!

    Check out my weblog ... goodman gas furnace
    Also see my website > furnace troubleshooting flowchart

    ReplyDelete
  4. Greetings from Colorado! I'm bored at work so I decided to check out your blog on my iphone during lunch break. I enjoy the information you present here and can't wait
    to take a look when I get home. I'm shocked at how fast your blog loaded on my cell phone .. I'm not even using
    WIFI, just 3G .. Anyhow, excellent blog!

    Feel free to visit my web site; do it yourself home improvements
    My web page - home repair program

    ReplyDelete
  5. Hi! Someone in my Facebook group shared this site with us so I came to check it out.
    I'm definitely enjoying the information. I'm bookmarking and will
    be tweeting this to my followers! Exceptional blog and great design and style.


    Look at my webpage; reebok fitness gloves
    Also see my web site > power mosfet tutorial

    ReplyDelete
  6. Hi! This post couldn't be written any better! Reading this post reminds me of my good old room mate! He always kept talking about this. I will forward this page to him. Pretty sure he will have a good read. Many thanks for sharing!

    my website: joomla.ancris.mind-business.at

    ReplyDelete
  7. Today, while I was at work, my sister stole my iPad and tested
    to see if it can survive a twenty five foot drop, just so she can be a youtube sensation.
    My iPad is now destroyed and she has 83 views.
    I know this is completely off topic but I had to share it
    with someone!

    My web site - gym bags women uk

    ReplyDelete
  8. Do you have a spam issue on this blog; I also
    am a blogger, and I was wondering your situation; many of us have developed
    some nice methods and we are looking to swap techniques with other folks,
    please shoot me an email if interested.

    Here is my webpage ... women's workout shorts and fitness clothing
    My web page > women's activewear sets pants

    ReplyDelete
  9. Gday. I was considering adding a website link back to your site since both of our web sites are
    based around the same subject. Would you prefer I link to you using your website address: http://www.

    blogger.com/comment.g?blogID=86324850310242427&postID=4424320160731036159 or website title:
    Blogger: Tayyab Siddiqui. Be sure to let me know at your earliest convenience.
    Thankyou

    My blog post ... zumba gold video
    my web site > zumba core fitness

    ReplyDelete
  10. Hi there! I'm at work browsing your blog from my new iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the fantastic work!

    Look into my site :: www.blurty.com

    ReplyDelete
  11. Good day! I could have sworn I've been to this site before but after reading through some of the post I realized it's new to me.

    Anyways, I'm definitely glad I found it and I'll be bookmarking and
    checking back often!

    Here is my webpage; sports bras for large breasts oprah
    Also see my webpage > pictures of 80's gym clothes

    ReplyDelete
  12. Greetings! Very helpful advice in this particular article!

    It is the little changes which will make the biggest
    changes. Thanks for sharing!

    Also visit my blog post Residential LED Lighting

    ReplyDelete
  13. Way cool! Some extremely valid points! I appreciate you penning this
    article plus the rest of the site is also really good.

    Also visit my blog post - cheapest car insurance in uk

    ReplyDelete
  14. Thanks a bunch for sharing this with all of us you really
    understand what you're speaking approximately! Bookmarked. Please additionally consult with my web site =). We will have a link change arrangement between us

    my page: beijing china

    ReplyDelete
  15. Hello! I simply wish to offer you a huge thumbs up for your great info you have here on
    this post. I am returning to your website for more soon.

    My web blog top 10

    ReplyDelete
  16. It is important for you to have a basic knowledge of the
    SEO so that you do not miss out on any aspect that can be profitable for you.
    Search engine marketing, or SEO Sydney, allows you to easily gauge the effectiveness of your
    online campaign through detailed reporting and analytics
    software like Google Analytics. Understand that you'll have many ways of carrying out your SEO.

    Feel free to visit my site; Online Marketing

    ReplyDelete
  17. There is a problem with your web site in internet explorer, would test this… IE still is the


    market leader and a good portion of people will

    miss your magnificent writing due

    to this problem

    My blog post: Super Simple SEO

    ReplyDelete
  18. You really make it seem really easy along with your presentation however I to
    find this topic to be really

    one thing that I feel I would by no means understand

    Look into my blog ... Online Marketing

    ReplyDelete
  19. I must spend some time

    learning much more or

    understanding more

    Look into my blog Online Marketing

    ReplyDelete
  20. Does your site have a contact page? I'm having a tough

    time locating it but, I'd like to shoot you an

    e-mail. I've got some recommendations for your blog you might be interested in hearing.

    Either way, great blog and I look forward to seeing it

    grow over time.

    My blog post ... web page

    ReplyDelete
  21. The clownfish are hermaphrodites, which means they develop into males
    first, and when they mature, they tend to change as females.
    Drop some pieces into the aquarium and give the clownfish time to
    eat the food before offering more. The remote control flying clownfish is very
    durable when it comes to the materials used to create this
    toy.

    Stop by my homepage http://www.designerclownfish.com

    ReplyDelete
  22. This will help in keeping your home warm by preventing the hot air from escaping
    through the windows. Hence youwill not be able to access the file.
    So, what do you do when the mercury starts to climb and so does the temperature in your home.


    my blog post - HVAC Repair

    ReplyDelete
  23. great submit, very informative. I ponder why the other
    specialists of this sector don't

    notice this. You must continue

    your writing. I'm sure, you have a huge readers' base already!

    Feel free to surf to my blog ... site

    ReplyDelete
  24. Any suggestions?
    Hey there! Do you know

    if they make any plugins to assist with Search
    Engine

    Optimization? I'm trying to get my blog to rank for some targeted

    keywords but I'm not seeing very good success

    Feel free to surf to my weblog - More Material

    ReplyDelete
  25. If it sounds like a lot to handle, that's because it is, so when you need a professional plumbing service for your commercial or industrial enterprise, it's a
    sure thing that you want only the best- but how do you find them.
    " flooded homes, clogged bathrooms, overflowing kitchen sinks and even toilet bowls that flush the wrong side. However, many people do not really take care of their house''.

    my homepage; site

    ReplyDelete
  26. I'm going to

    bookmark your web site and keep

    checking for new information

    my web blog http://www.kwoff.com/story.php?title=mobile-recharge-business

    ReplyDelete
  27. These reports contain the SEO strategies that are implemented during
    that time period. They named such interest as 'dark tourism',
    and suggested other locations included the Nazi-extermination camp of Auschwitz; Cambodia's 'killing fields' and Hiroshima in Japan, site of the atomic bomb of 1945. They should be unique from your overall site description and relate specifically to this article.

    Look into my web page - Search Marketing Company

    ReplyDelete
  28. Howdy I

    am so excited I found your website, I really found you
    by

    error, while I was browsing on Bing for something else,

    Anyways I am here now and would just like

    to say cheers for a

    fantastic post and a all

    round thrilling blog (I also

    love the theme/design), I don’t have time to read through it all at the moment but I
    have book-

    marked it and also added in your RSS

    feeds, so when I have time I will be back to read a
    great deal more, Please do keep up the superb b.

    Here is my site - webpage

    ReplyDelete
  29. Great post. I was checking constantly this

    blog and I'm impressed! Extremely useful

    info specially the last part :)

    I care for such information much. I was looking

    for this certain information for a very

    long time. Thank you and best of luck.

    my weblog: internet marketing company

    ReplyDelete
  30. It's actually a cool and useful piece of

    information. I am happy that you

    simply shared this useful information with

    us. Please stay us up to date like this.

    Thanks for sharing.

    Have a look at my webpage Options For Simple social media Products

    ReplyDelete

Post a Comment

Popular Posts