Friday, April 19, 2019

TRANSISTOR AS A SWITCH

When used as an AC signal amplifier, the transistors Base biasing voltage is applied in such a way that it always operates within its “active” region, that is the linear part of the output characteristics curves are used.
However, both the NPN & PNP type bipolar transistors can be made to operate as “ON/OFF” type solid state switch by biasing the transistors Base terminal differently to that for a signal amplifier.
Solid state switches are one of the main applications for the use of transistor to switch a DC output “ON” or “OFF”. Some output devices, such as LED’s only require a few milliamps at logic level DC voltages and can therefore be driven directly by the output of a logic gate. However, high power devices such as motors, solenoids or lamps, often require more power than that supplied by an ordinary logic gate so transistor switches are used.
If the circuit uses the Bipolar Transistor as a Switch, then the biasing of the transistor, either NPN or PNP is arranged to operate the transistor at both sides of the “ I-V ” characteristics curves we have seen previously.
The areas of operation for a transistor switch are known as the Saturation Region and the Cut-off Region. This means then that we can ignore the operating Q-point biasing and voltage divider circuitry required for amplification, and use the transistor as a switch by driving it back and forth between its “fully-OFF” (cut-off) and “fully-ON” (saturation) regions as shown below.

Operating Regions

transistor switch operating region
The pink shaded area at the bottom of the curves represents the “Cut-off” region while the blue area to the left represents the “Saturation” region of the transistor. Both these transistor regions are defined as:

1. Cut-off Region

Here the operating conditions of the transistor are zero input base current ( IB ), zero output collector current ( IC ) and maximum collector voltage ( VCE ) which results in a large depletion layer and no current flowing through the device. Therefore the transistor is switched “Fully-OFF”.

Cut-off Characteristics

transistor switch in cut-off
  • • The input and Base are grounded ( 0v )
  • • Base-Emitter voltage VBE < 0.7v
  • • Base-Emitter junction is reverse biased
  • • Base-Collector junction is reverse biased
  • • Transistor is “fully-OFF” ( Cut-off region )
  • • No Collector current flows ( IC = 0 )
  • • VOUT = VCE = VCC = ”1″
  • • Transistor operates as an “open switch”
Then we can define the “cut-off region” or “OFF mode” when using a bipolar transistor as a switch as being, both junctions reverse biased, VB < 0.7v and IC = 0. For a PNP transistor, the Emitter potential must be negative with respect to the Base.

2. Saturation Region

Here the transistor will be biased so that the maximum amount of base current is applied, resulting in maximum collector current resulting in the minimum collector emitter voltage drop which results in the depletion layer being as small as possible and maximum current flowing through the transistor. Therefore the transistor is switched “Fully-ON”.

Saturation Characteristics

transistor switch in saturation
  • • The input and Base are connected to VCC
  • • Base-Emitter voltage VBE > 0.7v
  • • Base-Emitter junction is forward biased
  • • Base-Collector junction is forward biased
  • • Transistor is “fully-ON” ( saturation region )
  • • Max Collector current flows ( IC = Vcc/RL )
  • • VCE = 0 ( ideal saturation )
  • • VOUT = VCE = ”0″
  • • Transistor operates as a “closed switch”
Then we can define the “saturation region” or “ON mode” when using a bipolar transistor as a switch as being, both junctions forward biased, VB > 0.7v and IC = Maximum. For a PNP transistor, the Emitter potential must be positive with respect to the Base.
Then the transistor operates as a “single-pole single-throw” (SPST) solid state switch. With a zero signal applied to the Base of the transistor it turns “OFF” acting like an open switch and zero collector current flows. With a positive signal applied to the Base of the transistor it turns “ON” acting like a closed switch and maximum circuit current flows through the device.
The simplest way to switch moderate to high amounts of power is to use the transistor with an open-collector output and the transistors Emitter terminal connected directly to ground. When used in this way, the transistors open collector output can thus “sink” an externally supplied voltage to ground thereby controlling any connected load.
An example of an NPN Transistor as a switch being used to operate a relay is given below. With inductive loads such as relays or solenoids a flywheel diode is placed across the load to dissipate the back EMF generated by the inductive load when the transistor switches “OFF” and so protect the transistor from damage. If the load is of a very high current or voltage nature, such as motors, heaters etc, then the load current can be controlled via a suitable relay as shown.

Basic NPN Transistor Switching Circuit

npn transistor as a switch
The circuit resembles that of the Common Emitter circuit we looked at in the previous tutorials. The difference this time is that to operate the transistor as a switch the transistor needs to be turned either fully “OFF” (cut-off) or fully “ON” (saturated). An ideal transistor switch would have infinite circuit resistance between the Collector and Emitter when turned “fully-OFF” resulting in zero current flowing through it and zero resistance between the Collector and Emitter when turned “fully-ON”, resulting in maximum current flow.
In practice when the transistor is turned “OFF”, small leakage currents flow through the transistor and when fully “ON” the device has a low resistance value causing a small saturation voltage ( VCE ) across it. Even though the transistor is not a perfect switch, in both the cut-off and saturation regions the power dissipated by the transistor is at its minimum.
In order for the Base current to flow, the Base input terminal must be made more positive than the Emitter by increasing it above the 0.7 volts needed for a silicon device. By varying this Base-Emitter voltage VBE, the Base current is also altered and which in turn controls the amount of Collector current flowing through the transistor as previously discussed.
When maximum Collector current flows the transistor is said to be Saturated. The value of the Base resistor determines how much input voltage is required and corresponding Base current to switch the transistor fully “ON”.

Transistor as a Switch Example No1

Using the transistor values from the previous tutorials of: β = 200, Ic = 4mA and Ib = 20uA, find the value of the Base resistor (Rb) required to switch the load fully “ON” when the input terminal voltage exceeds 2.5v.
transistor Switch Base Resistance
The next lowest preferred value is: 82kΩ, this guarantees the transistor switch is always saturated.

Astable Multivibrator

Basic Astable Multivibrator Circuit

astable multivibrator circuit
 
Assume that transistor, TR1 has just switched “OFF” (cut-off) and its collector voltage is rising towards Vcc, meanwhile transistor TR2 has just turned “ON”. Plate “A” of capacitor C1 is also rising towards the +6 volts supply rail of Vcc as it is connected to the collector of TR1 which is now cut-off. Since TR1 is in cut-off, it conducts no current so there is no volt drop across load resistor R1.
The other side of capacitor, C1, plate “B”, is connected to the base terminal of transistor TR2 and at 0.6v because transistor TR2 is conducting (saturation). Therefore, capacitor C1has a potential difference of +5.4 volts across its plates, (6.0 – 0.6v) from point A to point B.
Since TR2 is fully-on, capacitor C2 starts to charge up through resistor R2 towards Vcc. When the voltage across capacitor C2 rises to more than 0.6v, it biases transistor TR1 into conduction and into saturation.
The instant that transistor, TR1 switches “ON”, plate “A” of the capacitor which was originally at Vcc potential, immediately falls to 0.6 volts. This rapid fall of voltage on plate “A” causes an equal and instantaneous fall in voltage on plate “B” therefore plate “B” of C1is pulled down to -5.4v (a reverse charge) and this negative voltage swing is applied the base of TR2 turning it hard “OFF”. One unstable state.
Transistor TR2 is driven into cut-off so capacitor C1 now begins to charge in the opposite direction via resistor R3 which is also connected to the +6 volts supply rail, Vcc. Thus the base of transistor TR2 is now moving upwards in a positive direction towards Vcc with a time constant equal to the C1 x R3 combination.
However, it never reaches the value of Vcc because as soon as it gets to 0.6 volts positive, transistor TR2 turns fully “ON” into saturation. This action starts the whole process over again but now with capacitor C2 taking the base of transistor TR1 to -5.4v while charging up via resistor R2 and entering the second unstable state.
Then we can see that the circuit alternates between one unstable state in which transistor TR1 is “OFF” and transistor TR2 is “ON”, and a second unstable in which TR1 is “ON” and TR2 is “OFF” at a rate determined by the RC values. This process will repeat itself over and over again as long as the supply voltage is present.
The amplitude of the output waveform is approximately the same as the supply voltage, Vcc with the time period of each switching state determined by the time constant of the RC networks connected across the base terminals of the transistors. As the transistors are switching both “ON” and “OFF”, the output at either collector will be a square wave with slightly rounded corners because of the current which charges the capacitors. This could be corrected by using more components as we will discuss later.
If the two time constants produced by C2 x R2 and C1 x R3 in the base circuits are the same, the mark-to-space ratio ( t1/t2 ) will be equal to one-to-one making the output waveform symmetrical in shape. By varying the capacitors, C1, C2 or the resistors, R2, R3the mark-to-space ratio and therefore the frequency can be altered.
We saw in the RC Discharging tutorial that the time taken for the voltage across a capacitor to fall to half the supply voltage, 0.5Vcc is equal to 0.69 time constants of the capacitor and resistor combination. Then taking one side of the astable multivibrator, the length of time that transistor TR2 is “OFF” will be equal to 0.69T or 0.69 times the time constant of C1 x R3. Likewise, the length of time that transistor TR1 is “OFF” will be equal to 0.69T or 0.69 times the time constant of C2 x R2 and this is defined as.

Astable Multivibrators Periodic Time

astable multivibrator periodic time
Where, R is in Ω’s and C in Farads.
By altering the time constant of just one RC network the mark-to-space ratio and frequency of the output waveform can be changed but normally by changing both RC time constants together at the same time, the output frequency will be altered keeping the mark-to-space ratios the same at one-to-one.
If the value of the capacitor C1 equals the value of the capacitor, C2C1 = C2 and also the value of the base resistor R2 equals the value of the base resistor, R3R2 = R3 then the total length of time of the Multivibrators cycle is given below for a symmetrical output waveform.

Frequency of Oscillation

astable multivibrator equation
Where, R is in Ω’s, C is in Farads, T is in seconds and ƒ is in Hertz.
and this is known as the “Pulse Repetition Frequency”. So Astable Multivibrators can produce TWO very short square wave output waveforms from each transistor or a much longer rectangular shaped output either symmetrical or non-symmetrical depending upon the time constant of the RC network as shown below.

RC Integrator

RC Integrator
rc integrator
 
For an RC integrator circuit, the input signal is applied to the resistance with the output taken across the capacitor, then VOUT equals VC. As the capacitor is a frequency dependant element, the amount of charge that is established across the plates is equal to the time domain integral of the current. That is it takes a certain amount of time for the capacitor to fully charge as the capacitor can not charge instantaneously only charge exponentially.
Therefore the capacitor current can be written as:
capacitor current
 
This basic equation above of iC = C(dVc/dt) can also be expressed as the instantaneous rate of change of charge, Q with respect to time giving us the following standard equation of: iC = dQ/dt where the charge Q = C x Vc, that is capacitance times voltage.
The rate at which the capacitor charges (or discharges) is directly proportional to the amount of the resistance and capacitance giving the time constant of the circuit. Thus the time constant of a RC integrator circuit is the time interval that equals the product of R and C.
Since capacitance is equal to Q/Vc where electrical charge, Q is the flow of a current (i) over time (t), that is the product of i x t in coulombs, and from Ohms law we know that voltage (V) is equal to i x R, substituting these into the equation for the RC time constant gives:

RC Time Constant

rc time constant