Types of Transistor
Types of Transistor
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
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.
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: o IB = 0 RCE = infinity transistor off o IB small RCE reduced transistor partly on o 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
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 (B, C and E) which are equivalent to the leads of a standard individual transistor. Touch switch circuit 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 100k resistor protects the transistors if the contacts are linked with a piece of wire.
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 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 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.
Relays
Photographs Rapid Electronics
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.
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:
6. Then choose the nearest standard value for the base resistor. 7. 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 100 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.
Choosing a suitable PNP transistor The circuit diagram shows how to connect a PNP PNP transistor switch transistor, this will switch on the load when the IC (load is on when IC output is low) 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.
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 10k 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 1k . 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.
LED lights when the LDR is dark
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 = 100 , Rmax = 1M , so Rv = square root of (100 1M) = 10k .
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.
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 = 10k and RC = 1k , then the inverter output can be connected to a device with an input impedance (resistance) of at least 10k 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 100k and RC to 10k , this will reduce the current used by the inverter.
Ohm's Law
There are 2 base formulae which will help you to understand the relationship between current , voltage, resistance and power. If you have any two of the parameters, you can calculate the other two parameters. OHM'S LAW P=I*E E=P/I I=P/E P=I*E R=E 2 /P
BASE FORMULAS TO FIND VOLTAGE TO FIND CURRENT TO FIND POWER TO FIND RESISTANCE P = Power in Watts E = Electromotive Force in Volts I = Electrical Current in Amps R = Electrical Resistance in Ohms SQR = Square Root
Note: I use 'E' to represent voltage most of the time but sometimes you'll see 'V' used for voltage. Don't let it confuse you.
being equal, if there is an increase in resistance, the current flow will be reduced. You can see that the current flow in the rightmost wire is half of the current flow in the leftmost wire. This is because the rightmost wire has half of the area for the electrons to pass through.
*Please note that the size of the 'opening' is is analogous to resistance. There is no physical restriction in a
real piece of wire.
With the formula: I = E/R You can see that the current flow is inversely proportional to the resistance in the circuit. More Resistance = Less Current And for those who are more graphically inclined...
Change of Voltage: In the following diagram, you can see that the resistance in all of the systems is equal. This time we made a change in the voltage/pressure. You can see that the increased voltage
causes an increase in current even though the resistance in both the left and right systems is equal.
With the formula: I = E/R You can see that the current flow is directly proportional to the voltage applied to the resistance. More Voltage = More Current
Well, now that that's been explained to death, onto the math! Mathematical Example: In the following example, we know that we have 12 volts applied to a 10 ohm resistor. If you want to know how much power dissipation there is in the 10 ohm resistor, use the formula: P = E2/R
P = 122/10 P = 144/10. P = 14.4 watts The power dissipation in the resistor is 14.4 watts. If you wanted to know how much current was flowing through the resistor, you would use the formula: I = E/R I = 12/10 I = 1.2 amps The current through the resistor is 1.2 amps. If you want more examples, the resistor page has more fun than a barrel of monkeys.
If you want to try a few for yourself, the calculators below will allow you to check your math. Find: Power dissipation and Current flow from Resistance and applied Voltage.
Data Input:
Ohms Volts
Watts Amps
Data Input:
Volts Amps
Resistor Value =
Ohms
Find: Applied Voltage and Current Flow from Power Dissipation and Circuit Resistance.
Data Input:
Watts Ohms
Volts Amps
Note: In the following demo, you can adjust the voltage and the resistance of the circuit.
Changing either one will change the current flow and power dissipation in the circuit. You should realize that an amplifier produces a voltage into a given load. The combination of the two will result in power dissipation (in the speaker's voice coil in the case of audio). Since an amplifier can produce a limited amount of voltage (limited by the internal power supply's design), the power output is limited when driving a given load (i.e. a 4 ohm load). To be able to produce more power, you can drive a lower impedance (resistance) load (within reason). This means that if you go from a 4 ohm load to a 2 ohm load, the power will double (assuming that the power supply is regulated). If we use the example of a 100 watt mono amplifier (100 watts into a 4 ohm load), we know it can produce no more than 20 volts across the speaker. If you set the voltage slider below to 20 volts, and the resistance slider to 4, you can see that the power is 100 watts. If you move the resistance slider to 2 ohms, you can see that the power is doubled (to 200 watts). Now, I know that I'm showing a battery as the voltage source (instead of an amplifier) but the concept is the same.
Click HERE to make this applet fill this window.
Historical Information
Georg Simon Ohm: Georg Simon Ohm was a German physicist that lived from 1789 to 1854. He discovered the relationship between voltage, current and resistance in a conductor of a constant temperature (constant temperature is important because resistance changes with temperature and Ohm's law doesn't deal with the changing temperature/resistance). He found that, with a constant resistance, voltage and current were directly proportional (as we showed in a graph above). This relationship can be expressed as V=IR where V is the voltage applied to the resistance, I is the current flow through the resistance and R is the resistance in ohms. James Watt: James Watt was a Scottish inventor that lived from 1736 to 1819. The unit of measure for power, the watt, was named in his honor. James Prescott Joule: James Prescott Joule was an English physicist that lived from 1818 to 1889. He discovered the relationship between the power dissipated in a resistor and the current flow through the resistor. This relationship can be represented by the formula P=IR where P is the power dissipation in watts, I is the current flow in amps R is the resistance in ohms. Ohm is generally given credit for the formulas which express the relationship between Power, Current, Resistance and Voltage but the credit probably should go to Joule. The 'Joule' as a unit of measure: A 'Joule' represents the amount of energy used when 1 watt is dissipated for 1 second (or 1 watt-second).