Book Read Free

Make: Electronics

Page 11

by Charles Platt


  Fingertip Switching

  Now here’s something more remarkable. Remove R2 and the pushbutton, and insert two short pieces of of wire as shown in Figure 2-87. The upper piece of wire connects with the positive voltage supply; the lower piece connects with the middle pin of the transistor (its base). Now touch the tip of your finger to the two wires. Once again, the LED should glow, although not as brightly as before. Lick the tip of your finger, try again, and the LED should glow more brightly.

  Never Use Two Hands

  The fingertip switching demo is safe if the electricity passes just through your finger. You won’t even feel it, because it’s 12 volts DC from a power supply of 1 amp or less. But it’s not a good idea to put the finger of one hand on one wire, and the finger of your other hand on the other wire. This would allow the electricity to pass through your body. Although the chance of hurting yourself this way is extremely small, you should never allow electricity to run through you from one hand to the other. Also, when touching the wires, don’t allow them to penetrate your skin.

  Your finger is conducting positive voltage to the base of the transistor. Even though your skin has a high resistance, the transistor still responds. It isn’t just switching the LED on and off; it is amplifying the current applied to its base. This is an essential concept: a transistor amplifies any changes in current that you apply to its base.

  Check Figure 2-88 to see more clearly what’s happening.

  If you studied the section “Background: Positive and negative” in Chapter 1, you learned that there is really no such thing as positive voltage. All we really have is negative voltage (created by the pressure of free electrons) and an absence of negative voltage (where there are fewer free electrons). But because the idea of a flow of electricity from positive to negative was so widely believed before the electron was discovered, and because the inner workings of a transistor involve “holes” which are an absence of electrons and can be thought of as positive, we can still pretend that electricity flows from positive to negative. See the following section, “Essentials: All about NPN and PNP transistors,” for more details.

  Figure 2-87.

  Figure 2-88. These two diagrams show the same components as before, with a fingertip substituted for R2. Although only a trickle of voltage now reaches the base of the transistor, it’s enough to make the transistor respond.

  Essentials

  All about NPN and PNP transistors

  A transistor is a semiconductor, meaning that sometimes it conducts electricity, and sometimes it doesn’t. Its internal resistance varies, depending on the power that you apply to its base.

  NPN and PNP transistors are bipolar semiconductors. They contain two slightly different variants of silicon, and conduct using both polarities of carriers—holes and electrons.

  The NPN type is a sandwich with P-type silicon in the middle, and the PNP type is a sandwich with N-type silicon in the middle. If you want to know more about this terminology, and the behavior of electrons when they try to cross an NP junction or a PN junction, you’ll have to read a separate source on this subject. It’s too technical for this book. All you need to remember is:

  All bipolar transistors have three connections: Collector, Base, and Emitter, abbreviated as C, B, and E on the manufacturer’s data sheet, which will identify the pins for you.

  NPN transistors are activated by positive voltage on the base relative to the emitter.

  PNP transistors are activated by negative voltage on the base relative to the emitter.

  In their passive state, both types block the flow of electricity between the collector and emitter, just like an SPST relay in which the contacts are normally open. (Actually a transistor allows a tiny bit of current known as “leakage.”)

  You can think of a bipolar transistor as if it contains a little button inside, as shown in Figures 2-89 and 2-90. When the button is pressed, it allows a large current to flow. To press the button, you inject a much smaller current into the base by applying a small voltage to the base. In an NPN transistor, the control voltage is positive. In a PNP transistor, the control voltage is negative.

  Figure 2-89. You can think of a bipolar transistor as if it contains a button that can connect the collector and the emitter. In an NPN transistor, a small positive potential presses the button.

  Figure 2-90. In a PNP transistor, a small negative potential has the same effect. The arrows point in the direction of “positive current flow.”

  NPN transistor basics

  To start the flow of current from collector to emitter, apply a relatively positive voltage to the base.

  In the schematic symbol, the arrow points from base to emitter and shows the direction of positive current.

  The base must be at least 0.6 volts “more positive” than the emitter, to start the flow.

  The collector must be “more positive” than the emitter.

  PNP transistor basics

  To start the flow of current from emitter to collector, apply a relatively negative voltage to the base.

  In the schematic symbol, the arrow points from emitter to base and shows the direction of positive current.

  The base must be at least 0.6 volts “more negative” than the emitter, to start the flow.

  The emitter must be “more positive” than the collector.

  Essentials

  All about NPN and PNP transistors (continued)

  All-transistor basics

  Never apply a power supply directly across a transistor. You can burn it out with too much current.

  Protect a transistor with a resistor, in the same way you would protect an LED.

  Avoid reversing the connection of a transistor between positive and negative voltages.

  Sometimes an NPN transistor is more convenient in a circuit; sometimes a PNP happens to fit more easily. They both function as switches and amplifiers, the only difference being that you apply a relatively positive voltage to the base of an NPN transistor, and a relatively negative voltage to the base of a PNP transistor.

  PNP transistors are used relatively seldom, mainly because they were more difficult to manufacture in the early days of semiconductors. People got into the habit of designing circuits around NPN transistors.

  Remember that bipolar transistors amplify current, not voltage. A small fluctuation of current through the base enables a large change in current between emitter and collector.

  Schematics sometimes show transistors with circles around them, and sometimes don’t. In this book, I’ll use circles to draw attention to them. See Figures 2-91 and 2-92.

  Schematics may show the emitter at the top and the collector at the bottom, or vice versa. The base may be on the left, or on the right, depending on what was most convenient for the person drawing the schematic. Be careful to look carefully at the arrow in the transistor to see which way up it is, and whether it is NPN or PNP. You can damage a transistor by connecting it incorrectly.

  Transistors come in various different sizes and configurations. In many of them, there is no way to tell which wires connect to the emitter, the collector, or the base, and some transistors have no part numbers on them. Before you throw away the packaging that came with a transistor, check to see whether it identifies the terminals.

  If you forget which wire is which, some multimeters have a function that will identify emitter, collector, and base for you. Check your multimeter instruction booklet for more details.

  Figure 2-91. The symbol for an NPN transistor always has an arrow pointing from its base to its emitter. Some people include a circle around the transistor; others don’t bother. The style of the arrow may vary. But the meaning is always the same. The top-left version
is the one I use in this book.

  Figure 2-92. The symbol for a PNP transistor always has an arrow pointing from its emitter to its base. Some people include a circle around the transistor; others don’t bother. The style of the arrow may vary. But the meaning is always the same. The top-left version is the one I use in this book.

  Background

  Transistor origins

  Though some historians trace the origins of the transistor back to the invention of diodes (which allow electricity to flow in one direction while preventing reversal of the flow), there’s no dispute that the first working transistor was developed at Bell Laboratories in 1948 by John Bardeen, William Shockley, and Walter Brattain (Figure 2-93).

  Shockley was the leader of the team, who had the foresight to see how potentially important a solid-state switch could be. Bardeen was the theorist, and Brattain actually made it work. This was a hugely productive collaboration—until it succeeded. At that point, Shockley started maneuvering to have the transistor patented exclusively under his own name. When he notified his collaborators, they were—naturally—unhappy about this idea.

  A widely circulated publicity photograph didn’t help, in that it showed Shockley sitting at the center in front of a microscope, as if he had done the hands-on work, while the other two stood behind him, implying that they had played a lesser role. In fact Shockley, as the supervisor, was seldom present in the laboratory where the real work was done.

  The productive collaboration quickly disintegrated. Brattain asked to be transferred to a different lab at AT&T. Bardeen moved to the University of Illinois to pursue theoretical physics. Shockley eventually left Bell Labs and founded Shockley Semiconductor in what was later to become Silicon Valley, but his ambitions outstripped the capabilities of the technology of his time. His company never manufactured a profitable product.

  Eight of Shockley’s coworkers in his company eventually betrayed him by quitting and establishing their own business, Fairchild Semiconductor, which became hugely successful as a manufacturer of transistors and, later, integrated circuit chips.

  Figure 2-93. Photographs provided by the Nobel Foundation show, left to right, John Bardeen, William Shockley, and Walter Brattain. For their collaboration in development of the world’s first working transistor in 1948, they shared a Nobel prize in 1956.

  Essentials

  Transistors and relays

  One limitation of NPN and PNP transistors is that they are naturally “off” until you turn them “on.” They behave like a normally open pushbutton, which conducts electricity only for as long as you hold it down. They don’t normally behave like a normal on switch, which stays on until you apply a signal to turn it off.

  A relay offers more switching options. It can be normally open, normally closed, or it can contain a double-throw switch, which gives you a choice of two “on” positions. It can also contain a double-pole switch, which makes (or breaks) two entirely separate connections when you energize it. Single-transistor devices cannot provide the double-throw or double-pole features, although you can design more complex circuits that emulate this behavior.

  Here’s a list of transistor and relay characteristics.

  Transistor

  Relay

  Long-term reliability

  Excellent

  Limited

  Configurable for DP and DT switching

  No

  Yes

  Ability to switch large currents

  Limited

  Good

  Able to switch alternating current (AC)

  Usually not

  Yes

  Can be triggered by alternating current (AC)

  Usually not

  Optional

  Suitability for miniaturization

  Excellent

  Very limited

  Sensitive to heat

  High

  Moderate

  Ability to switch at high speed

  Excellent

  Limited

  Price advantage for low-voltage low-current

  Yes

  No

  Price advantage for high-voltage high-current

  No

  Yes

  Current leakage when “off”

  Yes

  No

  The choice between relays or transistors will depend on each particular application.

  Theory

  See the current

  If you want to get a more precise understanding of how a transistor works, you should try this little test. It shows the precise behavior and limits of the 2N2222 transistor that you used in the previous experiment.

  I’ve said that in an NPN transistor, the collector should always be more positive than the emitter and that the base should have a potential somewhere between those two voltages. Figure 2-94 shows this rather vague relationship. Now I want to substitute some numbers for these general statements.

  Figure 2-94. The proper functioning of an NPN transistor requires you to maintain these voltage relationships.

  Take a look at the schematic in Figure 2-95, and check the component values. Notice that the total resistance above the transistor, from R1 + R2, is the same as the total resistance below it, from R3 + R4. Therefore the potential on the base of the transistor should be halfway between the two extremes—until you use potentiometer P1 to adjust the voltage of the base of the transistor up and down.

  The two 180Ω resistors, R1 and R3, protect the transistor from passing excessive current. The two 10K resistors, R2 and R4, protect the base when the potentiometer is turned all the way up or all the way down.

  I would like you to see what the transistor is doing by measuring the amperage flowing into the base at the position marked A1, and the total amperage flowing out through the emitter at the position marked A2. To do this, it would be really helpful if you had two meters. As that may be impractical, the breadboard diagrams in Figures 2-96 and 2-97 show how you can swap one meter between the two locations.

  Remember that to measure milliamps, you have to pass electricity through the meter. This means that the meter must be inserted into the circuit, and whenever you remove the meter, you have to remake the connection where the meter was. The breadboard diagram shows how you can do this. Fortunately, it’s very easy to remove and replace wires in a breadboard. Where wires are connected to the potentiometer, you may need to revert to using alligator clips.

  Begin with the potentiometer turned about halfway through its range. Measure at A1 and A2. Turn the potentiometer up a bit, and measure current at the two locations again. Following is a table showing some actual readings I obtained at those two locations, using two digital meters simultaneously.

  Milliamps passing through location A1

  Milliamps passing through location A2

  0.01

  1.9

 
0.02

  4.9

  0.03

  7.1

  0.04

  9.9

  0.05

  12.9

  0.06

  15.5

  0.07

  17.9

  0.08

  19.8

  0.09

  22.1

  0.10

  24.9

  0.11

  26.0

  0.12

  28.3

  There’s a very obvious relationship. The current emerging from the emitter of the transistor, through location A2, is about 240 times the current passing through location A1, into the base. The ratio of current coming out from the emitter of an NPN transistor to current going into the base is known as the beta value for a transistor. The beta value expresses the transistor’s amplifying power.

  It’s a very constant ratio, until you push it a little too far. Above 0.12 mA, this particular transistor becomes “saturated,” meaning that its internal resistance cannot go any lower.

 

‹ Prev