Electronic devices and systems have changed people’s lives more in the past century than all prior inventions and events did, going back to prehistoric times. If you don’t believe me, wait until you have to live through a long power outage in the wake of a hurricane, earthquake, or wildfire! Sooner or later you’ll start to wonder if the Stone Age might be about to come back for good. What’s behind all these marvels that present such a tenuous barrier between comfort and chaos? Let’s find out what makes them work.
All matter comprises countless tiny particles called atoms. Individual atoms are made up of smaller particles known as protons, neutrons, and electrons.
Protons and neutrons are smaller than any ordinary microscope can “see,” and they have phenomenal density. A pebble-sized lump of compacted protons or neutrons would weigh so much that it would fall through the floors of your house and bore into the earth as if rock were butter.
In an atom, the protons and neutrons always exist in a “clump” called the nucleus. (Hydrogen in its most abundant form serves as the lone exception; its whole nucleus is only one proton, all alone.)
Electrons are much less dense than protons or neutrons, and they move a lot more. Electrons can “orbit” around a single nucleus, wander among many different nuclei, or hurtle freely through space.
An excess or deficiency of electrons on an object gives that object a static electric charge, also called an electrostatic charge. If an object contains more total electrons than total protons, then that object has a net negative charge. If an object contains fewer total electrons than total protons, then that object has a net positive charge.
When charged particles move, you observe an electric current. Usually the current-carrying particles, known as charge carriers, are electrons. However, any moving charged object, such as a proton, an atomic nucleus, or an electrified dust grain, can give rise to an electric current. In direct current (DC), the charge carriers always travel in the same general direction.
An electrical conductor is a substance in which the electrons can move easily, so you don’t have any trouble producing an electric current. Silver is the best-known everyday electrical conductor. Copper and aluminum are also excellent electrical conductors. Iron, steel, and most other metals constitute fair to good conductors of electricity. An electrical insulator is a substance in which electrons won’t pass from atom to atom under ordinary circumstances.
Current can flow only if charge carriers are “pushed” or otherwise forced to move. The “push” can result from a buildup of electrostatic charge, or from a steady charge difference between two objects. When you have a positive charge pole (relatively fewer electrons) in one place and a negative charge pole (relatively more electrons) in another place not far away, an electromotive force (EMF) exists between the two charge poles. Electricians and engineers express this force, also known as voltage or electrical potential, in units called volts (symbolized V). You can say that a potential difference exists between the two charge poles. Once in a while, lay people refer to voltage as “electrical pressure.”
Fact or Myth?
Has anyone ever told you that it’s the current, not the voltage that makes an electrical system dangerous? This statement holds true in a literal sense, but it oversimplifies the real situation. In theory, high voltage all by itself can’t harm anybody. However, deadly current can flow only when sufficient voltage exists to drive it. The current is directly responsible for electrocution, but a dangerous current can’t flow without enough voltage to propel a lot of charge carriers through your body. If someone says that high voltage won’t harm you but high current will, it’s sort of like saying that if you jump off a cliff, the fall won’t kill you but the impact will! It’s just stupid semantics.
Warning! Even a moderate voltage can pose a deadly danger under some conditions. When you’re working around anything that carries more than about 12 V (the voltage from a common automotive battery), you’d better give that thing the same respect as you would do if it were a campfire, a chain saw, a big dog, or anything else that would put a reasonable person on a state of alert.
When you work with DC, the current through an electrical component varies in direct proportion to the voltage across it, as long as the characteristics of the component don’t change. If you double the voltage, the current doubles. If the voltage falls to 1/10 of its original value, so does the current. Figure 1-1 shows how the current varies as a function of the voltage through a component whose electrical conductance always stays the same. This simple linear (straight-line) relationship holds true only as long as the conductance remains constant. In some components, the conductance changes as the current varies. An electric light bulb is a good example. The conductance is lower when the filament carries a lot of current and glows white hot, as compared to when it carries only little current and hardly glows at all.
FIGURE 1-1 When the voltage across a component increases but nothing else changes, the current increases in direct proportion to the voltage. If we graph the current versus the voltage, we get a straight line.
Warning! Before you work on any electrical appliance or system, unplug the appliance from the utility outlet and shut off the outlet’s supply of electricity at the fuse or breaker box. These two precautions will minimize the danger to you in case something unexpected happens.
Nothing conducts electricity perfectly. Even the best conductors have a little bit of resistance, which you can define as an impediment to the flow of current (the opposite of conductance). Silver, copper, aluminum, and most other metals have excellent conductance, so they have low resistance. Some materials, such as carbon and silicon, have moderate resistance. Electrical insulators exhibit high resistance. Resistance and conductance vary in inverse proportion with respect to each other.
Engineers express and measure electrical resistance in units called ohms. In some texts, you’ll find the word “ohm” or “ohms” symbolized by the uppercase Greek letter omega (Ω). As a component’s resistance in ohms gets greater and greater, current has more and more trouble flowing through it, given a constant voltage across it. Conversely, as you reduce a component’s resistance in ohms while applying a constant voltage across it, you get more current through it.
In an everyday electrical system with common appliances, such as lamps, television sets, computers, refrigerators, and the like, you’ll always want to keep the resistance as low as possible. Resistance converts electrical energy into thermal energy (heat). This phenomenon is called resistance loss or ohmic loss. Except in devices such as space heaters or ovens whose primary purpose is to generate heat, ohmic loss represents energy going to waste.
The charge carriers (usually electrons) in alternating current (AC) don’t keep moving in the same direction all the time. They reverse direction at regular intervals. In a household electric circuit, that time interval is 1/120 of a second (in the United States and some other countries) or 1/100 of a second (in most of the remaining countries). The current reverses twice, coming back to its original starting point, at intervals of 1/60 or 1/50 of a second, respectively. Therefore, you can say that the current goes through one complete cycle every 1/60 or 1/50 of a second.
You can portray an AC wave as a graph of voltage versus time, with voltage on the vertical axis and time on the horizontal axis. When you do that, you get a wave as shown in Fig. 1-2. You can portray a single AC cycle as any portion of the wave that lies between a fixed point and the corresponding point on the next repetition of the wave. Figure 1-2 shows two successive wave crests at which the wave reaches its maximum positive voltage. The time required for a single cycle to take place corresponds to the distance in the graph between any two adjacent crests. Figure 1-2 also shows two successive wave troughs at which the wave attains its maximum negative voltage. As with crests, the time period for one cycle corresponds to the distance between any two successive troughs.
FIGURE 1-2 Successive crests or successive troughs can define a wave cycle.
You can express one cycle of a wave by determining the time interval between any two adjacent points where the wave crosses the time axis (the horizontal axis) going up, or between any two adjacent points where the wave crosses the time axis going down. Because any point on the time axis indicates a voltage of zero at that instant, scientists call it a zero point. The zero points correspond to a momentary absence of voltage. Figure 1-3 shows two successive positive-going zero points and two successive negative-going zero points.
FIGURE 1-3 Successive positive-going or negative-going zero points can define a wave cycle.
The instantaneous voltage of an AC wave is the voltage at some precise moment, or instant, in time. The instantaneous voltage of the AC from a utility outlet constantly varies, in contrast to the instantaneous voltage of the electricity from a battery, which remains constant as time passes (as long as the battery holds its charge).
When plotted as a graph with time on the horizontal axis and voltage on the vertical axis, a conventional AC utility wave always resembles the undulating curves that you see in Figs. 1-2 and 1-3. All of the electrical energy exists at a single, constant frequency. Any AC energy that exists entirely at a single frequency produces a characteristic graph called a sine wave. These days, electricians and engineers talk about units called hertz instead of cycles per second. They abbreviate hertz as Hz. The word “hertz” means the same thing as the expression “cycles per second.”
Let’s define the positive peak voltage of an AC wave as the maximum positive instantaneous voltage that the wave attains. Similarly, the negative peak voltage equals the maximum negative instantaneous voltage. In household AC waves, the positive and negative peak voltages are equal and opposite as shown in Fig. 1-4.
FIGURE 1-4 Positive peak and negative peak voltages for an AC wave.
The peak-to-peak voltage of an AC wave equals the mathematical difference between the positive peak voltage and the negative peak voltage, taking polarity into account. If the positive and negative peak voltages have identical extent but opposite polarity (always the case in utility AC), then the peak-to-peak voltage equals twice the positive peak voltage, or −2 times the negative peak voltage. Figure 1-5 shows the peak-to-peak voltage in the graph of an AC sine wave. Peak-to-peak voltage doesn’t need to have any polarity defined. In fact, polarity is irrelevant; the peak-to-peak voltage is simply a “plain old number.”
FIGURE 1-5 Peak-to-peak voltage for an AC wave.
In real-world AC systems, you won’t have to worry about peak or peak-to-peak voltages very often. You’ll be more concerned about the effective voltage. For an AC wave that is the voltage that a pure DC source (such as a battery) would have to generate to produce the same effect as the AC wave does in a component with a certain resistance. The most common way to express effective AC voltage is the root-mean-square (RMS) method. A computer could closely approximate the RMS value of a wave by squaring all of the instantaneous values at microsecond (or even nanosecond!) intervals, then averaging them, and finally taking the square root of the result. The calculation involves taking the square root of the mean of the squares; that’s where the term “root-mean-square” comes from.
If anybody ever tells you that the RMS voltage of an AC wave is the same thing as its average voltage, don’t believe it! The average voltage of a normal utility wave equals zero! That’s because the wave goes positive and negative in exact “mirror images” from zero volts. You can see this fact by looking at any of the graphs in Figs. 1-2 through 1-5. Over time, the instantaneous voltages all average out to zero volts. But that’s a whole lot different from having no electricity at all, as you know if you’ve ever gotten a shock from a household AC appliance carrying “zero average volts.” The effective or RMS voltage is defined in an entirely different way than the average voltage, and the resulting quantities are almost always different—sometimes vastly different.
The electrochemical cells sold in stores, and used in common devices, such as flashlights and portable headsets, produce about 1.5 V. You’ll find them in sizes called AAA (very small), AA (small), C (medium), and D (large). When you combine two or more cells to increase the current or voltage (or both), you get a battery. Batteries produce voltages from about 1.5 V up to a few dozen volts.
In a zinc-carbon cell, the outer case is a thick foil made of zinc. It acts as the negative electrode. A carbon rod serves as the positive electrode. An internal chemical called the electrolyte, which gives the cell its energy, comprises a paste of manganese dioxide and carbon. Zinc-carbon cells are fairly cheap to produce, so they won’t cost you much at the store. They work well at moderate temperatures, and in applications where the current drain ranges from moderate to high. They “lose their juice” if the temperature falls very far below the freezing point of water.
Alkaline cells contain granular zinc as the negative electrode, potassium hydroxide as the electrolyte, and a substance called a polarizer as the positive electrode. An alkaline cell can work at lower temperatures than a zinc-carbon cell can. You can expect an alkaline cell or battery to last a long time in a low-current electronic device, such as a portable calculator or electronic clock. Alkaline cells and batteries last longer in most situations than zinc-carbon cells or batteries do, but they cost more.
Silver-oxide cells are usually molded into button- or pill-like shapes. For this reason, they’re often called button cells (although some other types of cells also have this shape, and are also called button cells). Silver-oxide cells can fit inside wristwatches and digital cameras. They come in various sizes and thicknesses, supply 1.5 V, and offer excellent energy storage capacity for their size and weight. Button cells can be stacked to make compact batteries that provide several volts as shown in Fig. 1-6.
FIGURE 1-6 You can stack up silver-oxide button cells to make a battery with higher voltage than the individual cells have.
Mercury cells, also called mercuric oxide cells, have advantages similar to silver-oxide cells. They’re manufactured in the same button-like shape. The main difference, often not of significance, is a somewhat lower voltage per cell: approximately 1.35 V instead of 1.5 V. In recent years, mercury cells and batteries have fallen from favor because mercury has been recognized as a toxic heavy metal that tends to accumulate in the environment (and in the vital organs of living things, like us). When you discard a mercury cell or battery, you must observe special precautions. In some locations, strict laws govern the disposal process.
Lithium cells supply 1.5 V to 3.5 V, depending on the process used in their manufacture. These cells, like their silver-oxide cousins, can be stacked to make batteries. Lithium cells and batteries have superior shelf life, and they can last for years in very low-current applications. They have exceptional energy capacity per unit volume. Some engineers believe that lithium batteries will play a key role in the future of electric motorized personal transportation (electric bicycles, motorcycles, all-terrain vehicles, cars, boats, and snowmobiles) in the years and decades to come.
A lead-acid cell contains a liquid electrolyte of sulfuric acid, along with a lead negative electrode and a lead-dioxide positive electrode. You can connect several such cells in series (negative-to-positive at each connection) to get a battery that will provide you with useful power for several hours. Some lead-acid batteries contain an electrolyte thickened into a paste to reduce the danger of leakage. These components do a good job in consumer devices that require moderate current, such as notebook computers, tablet computers, electronic-book readers, and cell phones. They’re also used in uninterruptible power supplies (UPSs) that can provide short-term emergency backup power for desktop computers.
Transistor batteries are miniature box-shaped things, roughly the size of a small pack of chewing gum, equipped with clamp-on terminals. They produce 9 V and contain six tiny zinc-carbon or alkaline cells in series. Transistor batteries are used in very-low-current electronic devices that operate on an intermittent (as opposed to continuous-duty) basis, such as wireless garage-door openers, appliance remotes, smoke detectors, carbon-monoxide detectors, and electronic calculators.
Lantern batteries are rather bulky and heavy, and they can deliver a fair amount of current. This type of battery usually contains multiple zinc-carbon or alkaline cells in a series-parallel combination, producing a net output of 6 V DC. One type of lantern battery has spring contacts on the top. The other type has thumbscrew terminals. A single lantern battery can keep a small, low-voltage DC incandescent bulb lit for quite a while, and a set of light-emitting-diode (LED) lamps aglow for days. A pair of them in series can deliver enough power to operate a citizens band (CB) radio set or a low-power ham radio set for several hours.
Nickel-cadmium (NICAD) batteries are sometimes found in older portable electronic devices. They come in box-shaped packages that insert directly into the equipment to form part of the case. An example is the battery pack for a handheld communications transceiver for amateur, CB, police, or military use. In recent years, nickel-metal-hydride (NiMH) batteries have supplanted NICAD batteries. The NiMH chemistry doesn’t contain cadmium, which, like mercury, acts as a toxin when it gets into the environment.
Have you heard that nickel-based batteries exhibit a bothersome characteristic called memory or memory drain? According to popular wisdom, if you use such a device repeatedly, and if you discharge it to approximately the same extent with every cycle, it will lose its ability to hold a charge for as long as it should. Some engineers say that this phenomenon hardly ever occurs, but I’ve seen it happen with NICADs. You can sometimes “cure” a nickel-based cell or battery of this problem by discharging it almost completely, recharging it, discharging it almost completely again, and repeating the cycle numerous times. But hopefully you’ll never have to bother with that process. These days, most devices use lithium batteries instead of nickel-based ones, and lithium batteries don’t get the “memory drain disease.”
All rechargeable cells and batteries work best if you charge them with trickle-charge or slow-charge devices. Some of these devices plug into the Universal Serial Bus (USB) ports of computers, but smaller computers such as notebooks might not provide enough power to fully charge the battery. You’ll always get the best results if you use a charger that plugs into an AC wall outlet. Always use a charger designed specifically for the type of cell or battery that you want to charge. So-called quick chargers are available, but some of them force excessive current through a cell or battery, causing permanent damage. You should allow several hours for the battery recharging process. My tablet computers take four to six hours to go from 10 percent to 95 percent of full charge.
An electrical power supply changes utility AC to pure DC, serving as an alternative to batteries for electronic devices. Figure 1-7 illustrates the major components of a power supply that converts 117 V RMS AC to constant-voltage DC.
FIGURE 1-7 Block diagram showing the major components of a well-engineered power supply for converting utility AC to DC that an electronic device can use.
The fuse or breaker protects the power supply, and the equipment connected to it, from damage in case of a malfunction such as a short circuit. Fuses are available in two types: quick-break and slow-blow. A quick-break fuse contains a straight length of wire or a metal strip. A slow-blow fuse contains a spring along with the wire or strip. You should always replace blown-out fuses with new ones of the same type. Quick-break fuses in slow-blow situations might burn out needlessly. Slow-blow fuses in quick-break situations might not adequately protect the equipment.
A breaker performs the same function as a fuse, but it’s easier to reset. Instead of physically removing the fuse, finding a new one, and making sure that it’s the right type and then installing it, you have only to switch off the power supply, wait a moment, and then press a button or flip a switch. Some breakers reset automatically when the equipment has remained powered down (switched off) for a few minutes.
Warning! Never replace a fuse with a larger-capacity unit to overcome the inconvenience of repeated blowing-out. Find the cause of the trouble, and repair the equipment as needed. The “penny in the fuse box” scheme can endanger you and your equipment, and it increases the risk of fire in the event of a short circuit.
The AC on the utility line is supposed to be a sine wave at 60 Hz, without any flaws or distortions whatsoever. But in fact, it’s far from “pure.” If you look at the AC waveform on a high-quality laboratory oscilloscope, you’ll occasionally see voltage spikes, known as transients that greatly exceed the positive or negative peak waveform voltage. Transients can result from sudden changes in the load (the amount of power demanded by all the appliances combined) in a utility circuit. Lightning is notorious for causing destructive transients. A single thundershower can produce transients throughout a neighborhood or small town. Unless you take measures to suppress them, transients can destroy some components in a power supply. Transients can also interfere with the operation of sensitive electronic equipment, such as computers or microcomputer-controlled appliances.
You can find commercially made transient suppressors in most hardware stores and large department stores. These devices, often mistakenly called “surge protectors,” use specialized semiconductor-based components to prevent sudden voltage spikes from reaching levels where they can cause problems. These devices are sometimes rated in joules, indicating the severity of the transients they can protect against. The higher the “joule rating,” the better.
A transformer converts, or transforms, an AC sine wave with a given voltage to another AC wave with the same frequency but a different voltage. A typical transformer contains wires wound on a special form called a core made of laminated iron (thin slabs of iron glued together). The wires wrap around the core to make windings called the primary and the secondary. The primary is the winding to which you apply the electricity whose voltage you want to change. The secondary is the winding from which you take the electricity after its voltage has changed.
• In a step-down transformer, the secondary has fewer turns than the primary has. The voltage across the secondary (the output voltage) is, therefore, lower than the voltage across the primary (the input voltage).
• In a step-up transformer, the secondary has more turns than the primary has. The output voltage is, therefore, higher than the input voltage.
Small step-down transformers are used in simple power supplies and battery chargers for things like computers and radios. Medium-sized transformers find application in high-current or high-voltage power supplies for things like amateur (“ham”) radio amplifiers and those big, old-fashioned, picture-tube-type television sets. Large step-down transformers provide the utility power that people consume in homes and businesses. The most massive transformers can get as big as a house; they serve power-generating plants and transmission stations. Some of these electrical behemoths step the voltage down; others step it up.
A rectifier converts AC to pulsating DC, usually by means of one or more heavy-duty semiconductor diodes following a power transformer. The simplest type, called a half-wave rectifier, uses one diode to cut off half of the AC cycle (either the positive half or the negative half). Half-wave rectification works okay in a power supply that never has to deliver much current, or when the voltage can vary without affecting the behavior of the equipment connected to it.
A more sophisticated rectifier circuit takes advantage of both halves of the AC cycle, rather than only the positive half or the negative half, to obtain pulsating DC. In most applications, the full-wave rectifier offers the best method for converting AC to DC. This type of rectifier uses four diodes. The increased circuit complexity rarely amounts to much in terms of cost (most rectifier diodes are cheap), but it makes a big difference when a power supply must deliver a lot of current.
Most electronic equipment requires something better than the pulsating DC that comes straight out of a rectifier circuit. A filter can minimize the roughness called ripple that always appears in the DC from a rectifier. The simplest power-supply filter comprises a large-value capacitor, connected in parallel with (that is, across) the rectifier output, between the positive and negative terminals. An electrolytic capacitor works well in this role. It’s a polarized component, meaning that you must connect it in a certain direction, just as you would do with a battery.
Fact or Myth?
Has anyone ever told you that an electrolytic capacitor can “blow up” if you put too much voltage across it, or if you connect it with the polarity reversed? Did you think they were joking? Well, they weren’t! If you mistreat an electrolytic capacitor, it can explode like a firecracker. I’ve seen it happen, and it’s dangerous. Always double-check the polarities and voltage ratings of all your filter capacitors as you build a power supply (if you decide to do that), and check everything again before you apply power to the system for the first time. The capacitors should be rated at several times the actual power supply output voltage.
Whatever else a power supply does, it won’t serve your needs if its voltage varies significantly when the load changes. You’ll want your electronic devices to “see” the power supply exactly as they’d “see” a heavy-duty battery that provides pure DC at a constant voltage. That’s why any good power supply must include a voltage regulator.
If you connect a specialized device called a Zener diode along with another component called a resistor in the output of a power supply, the combination will limit the output voltage to whatever value you choose. The Zener diode must have an adequate power rating to prevent it from burning out. The limiting voltage depends on the particular Zener diode that you use. You can find Zener diodes to fit any reasonable power-supply voltage. When you need a power supply to deliver high current, you can use a power transistor along with a Zener diode to regulate the voltage.
You can find prepackaged voltage regulators in integrated-circuit (IC) form. Such an IC, sometimes along with some external components, should be installed in the power-supply circuit at the output of the filter.
The best electrical ground for a power supply is the “third wire” ground provided in up-to-date AC utility circuits. The “third hole” (the bottom hole in an AC outlet, shaped like an uppercase English letter D turned on its side) should connect directly to a wire that runs to a ground rod driven into the earth at the point where the electrical wiring enters the building.
In old buildings, two-wire AC systems are common. They have only two slots in the utility outlets. Some of these systems employ reasonable grounding by means of polarization, where one slot is longer than the other, and the longer slot goes to electrical ground. But that method never works as well as a true three-wire AC system, in which the ground connection remains independent of both outlet slots.
Warning! All metal chassis and exposed metal surfaces of AC power supplies should be connected to the grounded wire of a three-wire electrical cord. Never defeat or cut off the “third prong” of the plug. As mentioned before (but it bears repeating), you should find out whether or not the electrical system in the building was properly installed so that you don’t labor under the illusion that your system has a good ground when it really does not. If you have any doubts about this issue, hire a professional electrician to perform a complete inspection of the system. Then, if the system fails to “meet code,” get the work done as necessary to make it good. Don’t wait for disaster to strike!
To prevent power “glitches” from causing trouble such as computer data loss, you can use an uninterruptible power supply (UPS) such as the one diagrammed in Fig. 1-8. Under normal conditions, the equipment gets its power through the transient suppressor, the transformer, and the AC regulator. The transient suppressor gets rid of potentially destructive voltage “spikes.” The AC regulator eliminates surges and dips in the utility power. A small current through the rectifier and filter maintains the battery (usually a lead-acid type) in a fully charged state.
FIGURE 1-8 Block diagram of an uninterruptible power supply (UPS).
If a particularly drawn-out dip or power failure occurs, the UPS takes care of it for a few minutes. An interrupt signal causes the switch to disconnect the equipment from the regulator and connect it to the power inverter, which converts the battery DC output to AC at the normal utility voltage. Then the battery starts to discharge. Its capacity should be sufficient to last long enough to allow for proper system shutdown. Once you have shut down all of the equipment connected to the UPS, you can switch off the UPS. Hopefully, if the power outage lasts for a long time, you’ll have some sort of emergency system in place, such as a gasoline-powered or propane-powered generator (or, if you’re into high-tech stuff, a solar-powered backup). When utility power returns to normal, the battery starts to charge up again, whether the UPS is switched on or not.
Warning! All power supplies (even the smallest ones, such as the little things that charge your tablet computer’s battery) can pose a deadly danger whenever they’re plugged into a wall outlet. Usually you’re safe as soon as you unplug the power supply. But don’t bet your life on that assumption! Some power supplies, and the circuits connected to them, can retain lethal voltages at exposed terminal points as a result of filter capacitors holding their charge, even after the entire system has been switched off, unplugged, and left unattended for quite a while. If you have any doubt about your ability to safely build, modify, repair, or otherwise work with the internal circuits of a power supply, leave the task to a professional technician.
As children, we discovered that magnets “stick” to certain metals. Iron, nickel, a few other elements, and alloys or solid mixtures containing any of them constitute ferromagnetic materials. Magnets exert force on these metals. Magnets do not exert force on other metals unless those metals carry electric currents. Electrically insulating substances never “attract magnets” under normal conditions.
When you bring a magnet near a piece of ferromagnetic material, the atoms in the material line up to some extent, temporarily magnetizing the sample. This alignment produces a magnetic force between the atoms of the sample and the atoms in the magnet. Every atom acts as a tiny magnet; when they act in concert with one another, the whole sample behaves as a single large magnet. Magnets always “stick” to samples of ferromagnetic material.
If you place two magnets near each other, you observe a stronger magnetic force than you see when you bring either magnet near a sample of unmagnetized ferromagnetic material (an iron nail, say). The mutual force between two rod-shaped or bar-shaped magnets manifests as attraction if you bring two opposite poles close together (north-near-south or south-near-north) and repulsion if you bring two like poles into proximity (north-near-north or south-near-south). Either way, the force increases as the distance between the ends of the magnets decreases.
Whenever the atoms in a sample of ferromagnetic material align to any extent rather than existing in a random orientation, a “region of influence” called a magnetic field surrounds the sample. A magnetic field can also result from the motion of electric charge carriers. In a wire, electrons move in incremental “hops” along the conductor from atom to atom. In a permanent magnet, the movement of orbiting electrons occurs in such a manner that an effective current arises.
Physicists and engineers describe magnetic fields in terms of flux lines, also called lines of flux. The intensity of the field depends on the number of flux lines passing at right angles through a region having a certain cross-sectional area, such as a square centimeter or a square meter. The flux lines aren’t material things, of course, but you can see their effects by doing a simple experiment.
Have you seen the classical demonstration in which iron filings lie on a sheet of paper, and then the experimenter holds a permanent magnet underneath the sheet? The filings arrange themselves in a pattern that shows, roughly, the “shape” of the magnetic field in the vicinity of the magnet. A bar magnet has a field whose lines of flux exhibit a characteristic pattern, as shown in Fig. 1-9.
FIGURE 1-9 Magnetic flux around a bar magnet.
Another experiment involves passing a current-carrying wire vertically through a sheet of paper oriented horizontally. The iron filings bunch up in circles centered at the point where the wire passes through the paper. This experiment shows that the lines of flux around a straight, current-carrying wire form concentric circles in any plane passing through the wire at a right angle. The center of every “flux circle” lies on the wire, which serves as the path along which the charge carriers move (Fig. 1-10). A magnetic field has a specific orientation at any point near a current-carrying wire or a permanent magnet. At any point, the magnetic flux lines always run parallel with the direction of the magnetic field’s “flow.”
FIGURE 1-10 Magnetic flux produced by an electric current traveling in a straight line.
You might suppose that the magnetic field around a current-carrying wire, such as the one shown in Fig. 1-10, arises from a single, isolated magnetic pole. Or, you might imagine that no magnetic poles exist at all! The concentric flux circles don’t seem to originate or terminate anywhere. You can get around this problem by means of a mind game. You can “invent” an originating point and a terminating point anywhere you want on one of the flux circles, thereby defining a pair of opposite magnetic poles in close proximity.
In a magnetic field, the lines of flux always connect the two magnetic poles. Some flux lines appear straight in a local sense, but in the larger sense, they always form curves. The greatest magnetic field strength around a bar magnet occurs near the poles, where the flux lines converge or diverge. As you move away from the poles, the magnetic field grows less intense. Around a current-carrying wire, the greatest field strength exists near the wire, and the intensity diminishes as you move away from the wire.
In theory, the flux field around any magnet, or around any current-carrying wire, extends into space indefinitely. In practice, the effects “wear off” at a certain distance from any magnet or wire because the field simply gets too weak to influence anything in the real world.
Fact or Myth?
We’ve all heard news reports from time to time, warning us that an eruption has taken place on the sun, and that we should prepare for possible disruptions to our communications or utility infrastructures. Are these warnings exaggerated? To some extent, maybe so; but when a solar flare occurs, the sun ejects far more charged particles than usual. As these particles approach the earth, their magnetic fields, working together, disrupt our planet’s magnetic field, spawning a geomagnetic storm. Such an event can temporarily wipe out “shortwave radio” communications. In addition, people who live at high latitudes witness aurora borealis (“northern lights”) and aurora australis (“southern lights”) at night. If a big enough geomagnetic storm occurs, it can interfere with wire communications and electric power transmission at the surface. No one really knows (as of this writing, anyway) whether or not a massive solar flare will ever cause a worldwide power blackout lasting for years. But people have already witnessed dramatic effects. All the way back in the year 1859, a geomagnetic storm produced a so-called electromagnetic pulse (EMP) strong enough to generate currents in telegraph wires that set some stations on fire.
The motion of electrical charge carriers always produces a magnetic field. This field can reach considerable intensity in a tightly coiled wire having a lot of turns and carrying a lot of current. When you place a ferromagnetic rod called a core inside a wire coil, as shown in Fig. 1-11, the magnetic lines of flux concentrate in the core, making the core sample into a powerful temporary magnet: an electromagnet.
FIGURE 1-11 A simple electromagnet.
Most electromagnets have rod-shaped cores. When you wind a wire into a coil around a rod-shaped object, you get a solenoid. A solenoid’s length-to-diameter ratio can vary from extremely low (like a fat pellet) to extremely high (like a thin stick). Regardless of the length-to-diameter ratio, however, the flux produced by current in the solenoid’s coil temporarily magnetizes the core that runs through it.
You can build a DC electromagnet by wrapping insulated wire around a large iron bolt. You can find these items in any good hardware store. You should test the bolt for ferromagnetic properties while you’re still in the store, if possible. (If a permanent magnet “sticks” to the bolt, then the bolt is ferromagnetic.) Ideally, the bolt should measure at least 3/8 inch (approximately 1 centimeter) in diameter and at least 6 inches (roughly 15 centimeters) in length. You must use insulated wire, preferably made of solid, soft copper. Don’t use bare wire!
Wind the wire at least 100 times around the bolt. You can layer two or more windings if you like, as long as the wire always keeps going around in the same direction. Secure the wire in place with electrical or duct tape. A large “lantern battery” can provide plenty of DC to operate the electromagnet. You can connect two or more such batteries in parallel to increase the current delivery. Never leave the coil connected to the battery for more than a few seconds at a time.
Warning! Don’t even think about using an automotive battery for the above-described experiment! The near short-circuit produced by an electromagnet can cause the acid from this type of battery to boil out, resulting in serious injury to you, not to mention possible damage to objects in the vicinity.
All DC electromagnets have well-defined north and south poles, exactly as permanent magnets have. However, an electromagnet can, at least in theory, get much stronger than any permanent magnet. The magnetic field exists only as long as the coil carries current. When you remove the power source, the magnetic field nearly vanishes. A small amount of residual magnetism remains in the core after current stops flowing in the coil, but this field is usually weak.
Some commercially manufactured electromagnets operate from 60-Hz utility AC. These magnets “stick” to ferromagnetic objects. The polarity of the field reverses every time the current reverses, producing 120 magnetic-field “pulses” every second, assuming a 60-Hz AC line frequency. The instantaneous intensity of the magnetic field varies along with the AC cycle, reaching alternating-polarity peaks at 1/120-second intervals and nulls of zero intensity at 1/120-second intervals.
Some electromagnets produce fields so powerful that no human can pull them apart if they get “stuck” together, and no human can push them all the way together against their mutual repulsive force. Industrial workers sometimes use huge electromagnets to carry heavy pieces of scrap iron or steel from place to place. Other electromagnets can provide sufficient repulsion to suspend one object above another, an effect known as magnetic levitation.
Warning! Do you think you can make an electromagnet “super powerful” if you plug the ends of the coil directly into an AC utility outlet? In theory, you can, but don’t try it! You’ll short out your house wiring, expose yourself to the risk of electrocution, expose your house to the risk of fire, and probably cause a fuse to blow or a circuit breaker to open, cutting power to the device anyway. Some buildings lack proper fuses or breakers, and shorting out one of those systems can lead quickly to disaster. If you want to build a safe AC electromagnet, my book Electricity Experiments You Can Do at Home (McGraw-Hill, 2010) offers instructions for doing it.
Electrical relays, bell ringers, electric hammers, and other mechanical devices make use of solenoids. Sophisticated electromagnets, sometimes in conjunction with permanent magnets, allow engineers to construct motors, meters, generators, and other electromechanical devices. Let’s look at a few examples.
Figure 1-12 illustrates a bell ringer, also called a chime. The ferromagnetic core has a hollow region in the center along its axis, through which a steel rod, called the hammer, passes. The coil has many turns of wire, so the electromagnet produces a strong field if high current passes through the coil. When no current flows in the coil, gravity holds the rod down so that it rests on the base plate. When a pulse of current passes through the coil, the rod jumps up and hits the ringer plate.
FIGURE 1-12 A bell ringer, also known as a chime.
You can’t always locate switches near the devices they control. For example, imagine that you want to switch a communications system between two different antennas from a control point a few hundred meters away. Wireless antenna systems carry high-frequency AC (the radio signals) that must remain within certain parts of the circuit. You can’t let those signals follow control wires that go to a simple switch; doing that would interfere with the workings of the antenna system. A relay makes use of a solenoid to allow remote-control switching in a situation of that sort.
Figure 1-13 illustrates a simple relay. A movable lever, called the armature, is held to one side (upward in this diagram) by a flexible, “springy strip” of metal or plastic when no current flows through the coil. Under these conditions, terminal X connects to terminal Y, but X does not contact terminal Z. When a sufficient current flows in the coil, the armature moves to the other side (downward in this illustration), disconnecting X from Y, and connecting X to Z.
FIGURE 1-13 Simplified drawing of a relay.
A normally closed relay completes the circuit when no current flows in the coil, and breaks the circuit when coil current flows. (“Normal” in this sense means the absence of coil current.) A normally open relay does the opposite, completing the circuit when coil current flows, and breaking the circuit when coil current does not flow. The relay shown in Fig. 1-13 can function as a normally open or normally closed switch, depending on which contacts you select. It can also switch a single line between two different circuits.
In a DC motor, you connect a source of electricity to a set of coils that produce small-scale, but nevertheless powerful, magnetic fields. The attraction of opposite poles, and the repulsion of like poles, is manipulated so that a constant torque (rotational force) results inside the device. As the coil current increases, so does the torque that the motor can produce, and so does the energy it takes to operate the motor at a constant speed.
Figure 1-14 illustrates the functional aspects of a DC motor. The armature coil rotates along with the motor shaft. A pair of field coils remains stationary. The field coils function as electromagnets. (Some motors use a pair of permanent magnets instead of the field coils.) Every time the shaft completes half a rotation, the commutator reverses the current direction in the armature coil so that the shaft’s torque keeps going in the same direction. The shaft’s angular (rotational) momentum carries it around so that it doesn’t stop at those instants in time when the current reverses.
FIGURE 1-14 Simplified drawing of a DC motor.
The construction of an electric generator resembles the construction of an electric motor, although the two devices function in the opposite sense. A motor constitutes an electromechanical transducer because it converts electrical energy to mechanical motion. You might call a generator a specialized mechanoelectrical transducer (although I’ve never heard anybody use that term).
A basic electric generator produces AC when a coil rotates in a strong magnetic field. You can drive the shaft with a gasoline-fueled engine, a turbine, or some other source of mechanical energy. Some generators employ commutators to produce pulsating DC output, which you can filter to obtain pure DC for use with precision equipment, just as you would do with the pulsating DC from an AC power supply.
During the 1960s, semiconductor materials acquired a dominating role in consumer electronic devices of all kinds. The term “semiconductor” arises from the fact that the substance’s conductivity can be controlled to generate, amplify, modify, mix, rectify, and switch electrical currents or electronic signals. Various mixtures of elements and compounds can function as semiconductors. The two most common semiconductor media are based on the element silicon (Si) or a compound of gallium and arsenic known as gallium arsenide (GaAs).
In some semiconductor-based devices (also sometimes called solid-state devices), the power supply can be modest indeed, comprising a couple of 1.5-volt size AA or AAA “flashlight” cells or a 9-volt “transistor battery.” A single integrated circuit (IC or chip), smaller than your thumbnail, can do the work of thousands of discrete electronic components, such as diodes, transistors, capacitors, and resistors. You’ll find an excellent example of IC technology in any computer. In 1950, a personal computer (if such a thing had existed) would have occupied a large building, required thousands of watts to operate, and probably cost over a million dollars. Today you can buy one for a few hundred dollars and carry it in a small portfolio jacket.
Silicon is widely used in diodes, transistors, and ICs. Other substances, called impurities or dopants, are added to the silicon to give it the desired properties. If, on the other hand, you hear about “gasfets” and “gas ICs,” you’re hearing about GaAs technology. Gallium arsenide works better than silicon in several ways. A GaAs device needs less voltage than an equivalent Si device does. In addition, GaAs will function at higher frequencies than Si will. GaAs devices are relatively immune to the effects of ionizing radiation, such as x rays and gamma rays. GaAs devices are used in light-emitting diodes (LEDs), infrared-emitting diodes (IREDs), laser diodes, visible-light and infrared (IR) detectors, ultra-high-frequency (UHF) amplifying devices, and a variety of computer chips. The primary disadvantage of GaAs is the fact that it costs more than silicon to fabricate into semiconductor components.
Elemental selenium (Se) exhibits resistance that varies depending on the intensity of visible-light, infrared (IR) radiation, or ultraviolet (UV) radiation that falls on it. All semiconductor materials exhibit this property to some degree, but Se is especially affected. For this reason, Se makes excellent solar photocells and solar cells. This material is also used in certain types of rectifiers. Perhaps the main advantage of Se over Si is the fact that Se-based devices withstand power-line transients better than Si-based devices do.
Pure germanium (Ge) constitutes a rather poor electrical conductor, but it becomes a semiconductor when impurities are added. This substance was used extensively in the early years of semiconductor technology. Some diodes and transistors still use Ge, but it’s pretty much been replaced by Si. One big problem with Ge-based technologies is their sensitivity to heat. Technicians must take extreme care when soldering the leads of a Ge component, so that the heat from the soldering instrument doesn’t conduct through the wire leads and destroy the semiconducting properties of the Ge inside.
Some oxides of metals have properties that make them useful for semiconductor devices. When someone tells you about MOS (pronounced “moss”) or CMOS (pronounced “sea-moss”) technology, you’re hearing about metal-oxide semiconductor and complementary metal-oxide semiconductor devices, respectively. Chips made from these materials demand so little power that the battery in a MOS-based or CMOS-based portable electronic device lasts almost as long as it would just sitting on the shelf without being put to any use at all. Devices with MOS and CMOS chips work fast, a property that makes them useful at high frequencies, allowing computers to perform many millions of calculations per second. In ICs, MOS and CMOS technology also allows for high component density: a large number (sometimes millions) of discrete diodes, transistors, capacitors, and resistors on a single chip.
Fact or Myth?
Some people might tell you that an MOS or CMOS device can be permanently ruined by an action as simple as picking it up and looking at it. Are they telling the truth? How could such a thing happen? Well, those people aren’t lying or exaggerating. The main problem with MOS and CMOS technology arises from the fact that such devices are easily damaged by electrical discharges that can occur as a result of the accumulation of charge carriers somewhere. Even the slightest electrostatic buildup (“static electricity”) on your fingers can abruptly “zero itself out” through the internal circuits of a MOS or CMOS device and destroy some of the microscopic components. You must always use care when handling components of this type. Technicians actually go so far as to place metal straps on their wrists, connected to wires that end in a substantial electrical ground, ensuring that their bodies don’t acquire a charge sufficient to “fry” sensitive MOS or CMOS components.
Before the 1960s, vacuum tubes prevailed in nearly every electronic device you could find. Even in radio receivers and portable television sets, all of the amplifiers, oscillators, power supplies, and other circuits required tubes (called valves in England). A typical vacuum tube ranged from the size of your thumb to the size of your fist. An elaborate vacuum-tube radio was a major appliance, and some of them were as big and heavy as the dresser in your bedroom!
Vacuum tubes are still used in some radio-transmitter and audio power amplifiers, microwave oscillators, and video display units. Tubes work better in certain ways than semiconductor devices do, even today. Tubes can tolerate momentary voltage and current surges and transients better than semiconductors can do. Some popular music bands claim that amplifiers built with vacuum tubes produce richer, truer sound than amplifiers built with semiconductor devices. But tubes have two big drawbacks: They need high voltages to operate, and they consume a lot of power for the actual work that they do.
A vacuum tube accelerates electrons to high speed, resulting in electric current. This current can be made more or less intense, or focused into a beam and guided in a certain direction. The intensity and/or beam direction can be adjusted with extreme rapidity, making possible a variety of different useful effects. In any vacuum tube, the charge carriers are free electrons, meaning that they don’t “orbit” any particular atomic nucleus. Instead, they hurtle like submicroscopic bullets through the tube’s internal vacuum.
Before the start of the twentieth century, scientists knew that electrons could carry current through a vacuum. They also knew that hot electrodes would emit electrons more readily than cool ones would. These phenomena went to practical use in the first electron tubes, known as diode tubes, for the purpose of rectification.
In any tube, the electron-emitting electrode is called the cathode. A wire filament that carries AC, similar to the glowing element in an incandescent bulb, heats the cathode. In some tubes, the filament also serves as the cathode. This type of electrode is called a directly heated cathode. In other tubes, the cathode is separate from, and surrounds, the filament. This arrangement is called an indirectly heated cathode. The electron-collecting electrode is known as the anode or plate. The cathode, and by extension the negative DC output of the power supply, is usually connected to a metal chassis that serves to support all the electronic components in the device. The chassis is connected to electrical ground.
A tube’s anode comprises a metal cylinder concentric with the cathode and filament. The plate goes to the positive DC power supply terminal, usually through a coil or resistor. The output signal is usually taken from the plate.
Tubes operate at voltages ranging from about 50 volts to several thousand volts. Because the plate readily attracts electrons but is not a good emitter of them, and because the opposite state of affairs prevails for the cathode, a diode tube works well as an AC rectifier or AC-to-DC converter. Although semiconductor diodes have replaced tubes for rectification in most applications, tubes are still used in power supplies that must deliver extreme voltages.
Voltages imposed deliberately on an electrode between the cathode and the plate can control the flow of current in a vacuum tube. This electrode, called the control grid, comprises a wire mesh that lets electrons pass through. The control grid interferes with the electrons if it is provided with a voltage that’s negative with respect to the cathode voltage. The greater this so-called negative grid bias, the more the grid impedes the flow of electrons, and the less current flows in the plate. In most tube-type amplifiers, the control grid receives the AC input signal.
Some vacuum tubes have more than one grid. The extra grids help amplifiers to boost the signals more (in other words, they allow for more gain). They also help the amplifier to operate in a more stable manner than a single-grid tube does. A screen grid can be added between the control grid and the plate. This grid carries a positive DC voltage, roughly 1/3 that of the plate voltage. The screen grid reduces the tendency of the amplifier to oscillate (generate a signal of its own because of feedback inside the tube). The screen grid can also serve as a second control grid, allowing for the injection of two different signals into a tube so that they can be mixed, producing new signals at different frequencies or with different characteristics than the originals.
Tube performance can sometimes be improved even more by placing a third grid, called the suppressor grid, between the screen grid and the plate. The suppressor grid carries a negative charge with respect to the screen and the plate; usually it’s the same voltage as the cathode. The suppressor grid reduces the tendency of a tube to oscillate more than a screen grid alone can do. In addition, a suppressor grid “recovers” stray electrons that “bounce off” the plate upon impact, so that the tube can amplify better than it would without the suppressor grid.
The most common contemporary application of vacuum tubes is in massive amplifiers designed to deliver a great deal of signal output power, especially at high frequencies (in radio and television transmitters, for example) and in big audio systems (for popular music bands, for example).
Vacuum tubes prevail in antique TV receivers and old computer monitors. These devices, which can be large and heavy, are called cathode-ray tubes (CRTs). In a CRT, a device called an electron gun emits a high-intensity stream of electrons, something like a “flashlight” that “shines” a beam of subatomic particles. This beam gets focused and accelerated as it passes through the holes in donut-shaped anodes that carry high-positive DC voltages. The anodes of a CRT work differently than the anodes of a conventional vacuum tube do. Rather than hitting the anodes, the electrons go right on through, gaining speed with each pass, until they strike a screen with a phosphorescent inner coating. The phosphor glows visibly as seen from the face of the CRT. Internal coils or electrodes carry signals that deflect the electron beam back-and-forth and up-and-down in an intricate pattern at speeds faster than the eye can follow, creating a motion-picture image on the phosphorescent screen.
Some electronics hobbyists enjoy working with antique radios. Certain people like to have a radio broadcast receiver that takes up as much space and weighs as much as a small refrigerator. The big old “boat anchor,” sitting on the living room floor, brings back memories of a time when drama shows came over local radio stations. Users had to employ their imaginations as the plots unfolded in the voices and music; video was nothing more than a few roguish inventors’ dreams-yet-to-come-true.
Digital logic, also called simply logic, is a form of “reasoning” used by electronic machines, particularly devices and systems controlled by computer chips. The most common form of digital logic takes the form of Boolean algebra, which uses only the numbers 0 and 1 along with operations called AND (multiplication), OR (addition), and NOT (negation). This system gets its name from the nineteenth-century British mathematician George Boole, who supposedly invented it.
• The AND operation, also called logical conjunction, operates on two or more quantities. Let’s denote it by using an asterisk, for example X * Y.
• The NOT operation, also called logical inversion or logical negation, operates on a single quantity. Let’s denote it by using a minus sign (−), for example −X.
• The OR operation, also called logical disjunction, operates on two or more quantities. Let’s denote it by using a plus sign (+), for example X + Y.
Table 1-1 breaks down all the possible input and output values for the above-described Boolean operations, where 0 stands for “falsity” and 1 stands for “truth.”
TABLE 1-1 Basic Operations in Boolean Algebra*
In mathematics and philosophy courses involving logic, you’ll sometimes see other symbols used for these operations. Conjunction might be denoted with a times sign (×) or a wedge (∨). Negation might be denoted with a “lazy backwards L” (¬). Disjunction might be denoted with an inverted wedge (∧).
All digital electronic devices do Boolean algebra “automatically.” These switches, called logic gates, can have from one to several inputs and a single output. Table 1-2 summarizes the functions of common logic gates, assuming a single input for the NOT gate and two inputs for the others. Figure 1-15 shows the symbols that engineers use to represent logic gates in circuit diagrams.
TABLE 1-2 Logic Gates and Their Characteristics*
FIGURE 1-15 Symbols for logic gates. At A, a logical inverter or NOT gate. At B, an OR gate. At C, an AND gate. At D, a NOT-OR (NOR) gate. At E, a NOT-AND (NAND) gate. At F, an exclusive-OR (XOR) gate.