Tuesday, September 30, 2008

How Do Transistors Work?

To turn on an NPN transistor, a voltage is applied across the base and emitter terminals. This causes electrons in the Base wire to move away from the transistor itself and flow out towards the power supply. This in turn pulls electrons out of the P-type base region, leaving 'holes' behind, and the 'holes' act like positive charges which are pushed in the opposite direction from the direction of electron current. What SEEMS to happen is that the base wire injects positive charges into the base region. It spews holes. It injects charge.

(Note that I'm describing charge flow here, not positive-charge "conventional current.")

              
____________

COLLECTOR N
_____________ ELECTRONS ARE PULLED FROM THE
-----> BASE REGION AND INTO THE WIRE,
BASE P ______________ WHICH CREATES POSITIVE "HOLES"
_____________ + WHICH SPEW OUT INTO THE BASE
________ REGION.
EMITTER N _____
_____________ _________
_____
_____________________ -

That's part of the conventional explanation. Why is all of this important to transistor operation? ***It's not!*** The base current is not important to transistor operation. It's just a byproduct of the REAL operation, which involves an insulating layer called the Depletion Region. By concentrating on the current in the Base lead, most authors go up a dead end in their explanations. To avoid this fate, we must start out ignoring the base current. Instead we look elsewhere for understanding. See the diagram below.

              
____________
\
COLLECTOR
> full of wandering electrons
n-doped
_____________ /
\
BASE
-- > full of wandering "holes"
p-doped
_____________ /
\
EMITTER
> full of wandering electrons
n-doped
_____________ /


The Depletion Region is an insulating layer existing between the base region and the emitter region. Why is it there? It exists because the Base region is p-doped silicon; it exists because p-type silicon is full of naturally-occurring movable "holes," and because the p-type silicon is touching n-type silicon.
              
____________

COLLECTOR N
_____________

BASE P --
_____________
_____________ <-- insulating "depletion layer"
                       
EMITTER N
___________

Electrons in p-type silicon act like the closely-packed beads of an abacus, and the "holes" are like gaps in the rows of beads. Move one bead, and a hole has moved the other way. Touch the p-type silicon against the n-type, and wandering electrons from the n-type silicon will fall into the holes. Also, holes in the p-type's Base region flow out among the movable electrons from the N-type Emitter region and many are cancelled. Holes swallow electrons, and this leaves a thin region between N and P sections which lacks movable charges.

Remember: a conductor is not a substance which allows charges to pass. (Don't forget #3 above!) Actually a conductor is any substance which contains charges which are movable. Anything that lacks movable charges is an insulator. Inside the depletion layer, all the opposite charges have fallen together and vanished. The gaps in the abacus beads are gone, so no beads can move anymore. Lacking mobile charges, the silicon has turned into an insulator. When there's no voltage applied across the base/emitter terminals, this insulating layer grows fairly thick, and the transistor acts like a switch which has been turned off.

I like to visualize that a transistor's silicon is normally like a shiny silver conductor (sort of like metal) ...except for this insulating layer between the P and N regions which acts more like a layer of insulating glass. Silicon is like a metal which can become glass!

              
____________
\
COLLECTOR N
_____________ > Shiny silver conductive

BASE P -- /
_____________
_____________ <-- Glasslike insulating "depletion layer" \ EMITTER N > Shiny silver conductive
_____________ /


When voltage is applied between base and emitter, this insulating layer changes thickness. If (+)voltage is applied to the p-type, to the base wire, while a (-) voltage polarity is applied to the n-type, to the emitter wire, then electrons in the n-type are pushed towards the holes in the p-type. The insulating layer becomes so thin that the clouds of electrons and holes start meeting and combining. A current therefore exists in the base/emitter circuit. But this current is not important to transistor action. What's important to notice is that the *VOLTAGE* across the base/emitter has caused the insulating Depletion Layer to become so thin that the charges can now flow across it. It's as if the transistor contains a layer of glass whose thickness can be varied when we alter a voltage. The layer becomes thinner when base/emitter voltage is increased. This happens because the voltage pushes the holes and the electrons towards each other, reducing the size of the empty insulating region between the clouds of holes and electrons, and allowing the stragglers to jump across the insulator. The depletion layer is a voltage-controlled switch which "closes" when the right polarity of voltage is applied. It is also a proportional switch, since a small voltage can close it only partially. For silicon material, charges start jumping across when the voltage is around 0.3V. Raise the voltage to 0.7V and the current gets very high. (That's for silicon. Other materials have different turn-on voltages.) The larger the voltage, the thinner the insulating layer, so the higher the current in the entire transistor. By applying the right voltage, we can thicken or thin the depletion layer as desired, creating an open, closed, or partially open switch.

Handy Zener Diode Tester


Here is a handy zener diode tester which tests zener diodes with breakdown voltages extending up to 120 volts. The main advantage of this circuit is that it works with a voltage as low as 6V DC and consumes less than 8 mA current. The circuit can be fitted in a 9V battery box. Two-third of the box may be used for four 1.5V batteries and the remaining one-third is sufficient for accommodating this circuit. In this circuit a commonly available transformer with 230V AC primary to 9-0-9V, 500mA secondary is used in reverse to achieve higher AC voltage across 230V AC terminals. Transistor T1 (BC547) is configured as an oscillator and driver to obtain required AC voltage across transformer’s 230V AC terminals. This AC voltage is converted to DC by diode D1 and filter capacitor C2 and is used to test the zener diodes. R3 is used as a seri- es current limiting resistor. After assembling the circuit, check DC voltage across points A and B without connecting any zener diode. Now switch on S1. The DC voltage across A-B should vary from 10V to 120V by adjusting potmeter VR1 (10k). If every thing is all right, the circuit is ready for use. For testing a zener diode of unknown value, connect it across points A and B with cathode towards A. Adjust potmeter VR1 so as to obtain the maximum DC voltage across A and B. Note down this zener value corresponding to DC voltage reading on the digital multimeter. When testing zener diode of value less than 3.3V, the meter shows less voltage instead of the actual zener value. However, correct reading is obtained for zener diodes of value above 5.8V with a tolerance of ± 10per cent. In case zener diode shorts, the multimeter shows 0 volts

Digital volume control

Circuit of a digital volume control using six discrete ICs, including a 5V regulator, is presented. IC1 (555) is configured to function as astable flip-flop. Its frequency or period may be adjusted by proper choice of resistors R44, R45 and capacitor C6 combination. Here it is for 0.3 second period. IC2 is a presetable up/down counter. In this circuit up-mode is used for increasing and down-mode is used for decreasing the volume. IC3 and IC4 are 16-channel analogue multiplexers which function as analogue switches. Here IC3 is used as level indicator while IC4 is used as a potentiometer. Soon after the power is switched on, switch S1 is to be pressed to reset the whole system. When switch S2 is pressed, IC2 counts up the number of pulses and the result is available in the form of BCD output. IC6 is used as an interface between TTL and CMOS ICs. The BCD output controls the address input lines of IC2 and IC3, and selects/switches one, out of sixteen channels, by turning on the appropriate analogue switch. In the circuit, IC4 is used as a potentiometer by connecting 15 resistors (R9 through R23) between each of its 16 input pins and a resistor/capacitor combination of C2, C3 and R7 at its output. The values of resistors R9 through R23 can, of course, be selected as desired. Here the resistors have been selected for a logarithmic scale. Switch S2 is used for increasing and switch S3 is used for decreasing the volume. Similarly, switches S4 and S5 are provided for second channel (right channel) volume control. Also, pin 14 of IC2 can be connected to IC 74193 pin 14 (clear input) of the right channel volume control circuit. The volume control circuit of right channel will be identical to that of the left channel circuit (shown here) except that IC1, IC5 and push-to-on switches are not to be duplicated. A 1µF electrolytic capacitor (C4) is used to prevent switching noise. Resistors R8 and R6 are used to fix the quiescent operating voltage level at half the supply voltage for avoiding distortion of the audio signal from the preamplifier. Capacitors C2, C3 and resistor R7 are provided for proper filtering of the audio and blocking DC component. An exact logarithmic scale of resistors R9 through R23 produces a pleasing and smooth control.

Electronic scoring Circuit



You can play this game alone or with your friends. The circuit comprises a timer IC, two decade counters and a display driver along with a 7-segment display. The game is simple. As stated above, it is a scoring game and the competitor who scores 100 points rapidly (in short steps) is the winner. For scoring, one has the option of pressing either switch S2 or S3. Switch S2, when pressed, makes the counter count in the forward direction, while switch S3 helps to count downwards. Before starting a fresh game, and for that matter even a fresh move, you must press switch S1 to reset the circuit. Thereafter, press any of the two switches, i.e. S2 or S3. On pressing switch S2 or S3, the counter’s BCD outputs change very rapidly and when you release the switch, the last number remains latched at the output of IC2. The latched BCD number is input to BCD to 7-segment decoder/driver IC3 which drives a common-anode display DIS1. However, you can read this number only when you press switch S4. The sequence of operations for playing the game between, say two players ‘X’ and ‘Y’, is summarised below:

1. Player ‘X’ starts by momentary pressing of reset switch S1 followed by pressing and releasing of either switch S2 or S3. Thereafter he presses switch S4 to read the display (score) and notes down this number (say X1) manually.
2. Player ‘Y’ also starts by momentary pressing of switch S1 followed by pressing of switch S2 or S3 and then notes down his score (say Y1), after pressing switch S4, exactly in the same fashion as done by the first player.
3. Player ‘X’ again presses switch S1 and repeats the steps shown in step 1 above and notes down his new score (say, X2). He adds up this score to his previous score. The same procedure is repeated by player ‘Y’ in his turn.
4. The game carries on until the score attained by one of the two players totals up to or exceeds 100, to be declared as the winner.
Several players can participate in this game, with each getting a chance to score during his own turn. The assembly can be done using a multipurpose board. Fix the display (LEDs and 7-segment display) on top of the cabinet along with the three switches. The supply voltage for the circuit is 5V.