Chapter 4
IN THIS CHAPTER
Sending current this way and that way
Examining series and parallel circuits
Controlling connections with switches
Seeing the light when the power is on
If you've ever been stuck in a traffic jam and decided to take the less crowded side roads, you know that there’s often more than one way to get to a destination. But if your commute requires you to travel, say, over a bridge to cross a major river, you know that sometimes there’s just one way for you — and all the other commuters — to go.
In many ways, electronic circuits are like road systems: They provide paths (roads) for electrons (cars) to travel along, sometimes offering alternate paths and sometimes forcing all the electrons to travel along the same path.
This chapter explores different ways to connect electronic components so you can direct — and redirect — electric current. First, you look at the two basic types of circuit structures — series and parallel — and discover that parallel connections are like alternate traffic routes, whereas series connections are like bridge crossings. Then you find out how switches act like traffic cops — allowing, preventing, or redirecting current flow. Finally, you put it all together by building a circuit that imitates a manually controlled three-stage traffic signal.
Just as you can build structures of all shapes and sizes by connecting LEGOs or K’NEX pieces in various ways, so you can build many different kinds of circuits by connecting electronic components in various ways. Exactly how you connect components dictates how current flows through your circuit — and how voltage is dropped throughout the circuit.
In this section, you explore two kinds of connections. If you would like to build the circuits described in this section, you need the following parts:
In a series circuit, components are arranged along a single path between the positive and negative terminals of a power source. Take a look at Figure 4-1, which shows a series circuit containing a resistor and two LEDs. Current flows from the positive battery terminal through the resistor, through LED1, through LED2, and then back to the negative terminal of the battery. A series circuit has only one path for electrical charges to travel along, so all current passes through each component sequentially.
Using Figure 4-2 as a guide, set up the two-LED series circuit. Use your multimeter set on DC volts to measure the voltage across the battery pack, the resistor, and each of the LEDs. When I did this, I got the following readings:
By summing the voltage drops across the resistor and the LEDs, you get the total voltage supplied by the battery pack:
Next, set your multimeter to the DC current setting. Interrupt the circuit at any of the connection points and insert your multimeter, remembering to keep the positive lead at a higher voltage than the negative lead. When I did this, I got a reading of 1.4 mA. That amount of current flows through each component in this series circuit because there is only one path for current to flow.
There’s a way to fix the problem of all components in a series circuit blacking out when one component fails. You can wire the components using parallel connections — such as those in the circuit shown in Figure 4-3. With a parallel circuit, current can flow in multiple paths, so even if several baseballs take out bulbs in your sign, the rest of it stays lit. (Of course, you may be left with a glowing sign reading, “BEST FOO I OWN.” There are pros and cons to everything.)
Here’s how the parallel circuit in Figure 4-3 works: Current flows from the positive battery terminal, and then splits at the junction that leads to the parallel branches of the circuit, so each LED gets a share of the supply current. The current flowing through LED1 doesn’t flow through LED2. So if your restaurant sign has 200 LEDs wired in parallel and one burns out, light still shines from the other 199 LEDs.
Set up the circuit using the example in Figure 4-4 as your guide. With your multimeter set to DC volts, measure the voltage across the battery pack, the resistor, and each of the LEDs. When I did this, I got the following readings:
Now, use your multimeter to measure the current flowing through each of the three circuit components, as follows, remembering to set your multimeter to DC current:
These are the readings I got:
If you add the two branch currents, I1 and I2, you find that their total is equal to the current flowing through the resistor, which is the supply current coming from the battery pack:
Switching is far and away the most important function in electronics. Think about your TV set: You turn it on and off, select a signal source from several different input choices (such as your DVD player, cable box, or gaming system), and change TV channels. Your TV screen consists of millions of tiny pixels (picture elements), each of which is, in essence, a red, blue, or green light that is either on or off. All those TV control and display functions involve switching, whether it’s simply on/off switching or what I like to think of as multiple-choice switching — that is, directing one of several input signals to your TV screen. Likewise, your smartphone, computing device, and even your microwave rely on on/off states (for instance, key pressed or not, or transmit sound now or not) for their control and operation.
So what exactly is switching?
Aside from transistor switches, lots of different kinds of mechanical and electrically operated switches can be used in electronics projects. These switches are categorized by how they are controlled, the type and number of connections they make, and how much voltage and current they can handle.
Switches are referred to by names that indicate how the switching action is controlled. You see some of the many different types of switches in Figure 4-7.
Chances are, you encounter one or more of the following types of switches as you go about your daily routine:
Switches are also categorized by how many connections they make when you “flip the switch” and exactly how those connections are made.
A switch can have one or more poles, or sets of input contacts: A single-pole switch has one input contact, whereas a double-pole switch has two input contacts.
A switch can also have one or more conducting positions, or throws. With a single-throw switch, you either make or break the connection between each input contact and its designated output contact; a double-throw switch allows you to alter the connection of each input contact between each of its two designated output contacts.
Sound confusing? To help clear things up, take a look at the circuit symbols (see Figure 4-8) and descriptions of some common switch varieties:
In the next section, titled “Creating a Combination Circuit,” you see how to use an SPDT switch as an on/off (or SPST) switch.
Most circuits are combinations of series and parallel connections. How you arrange components in a circuit depends on what you’re trying to do.
Take a look at the series-parallel circuit in Figure 4-9. Note the three parallel branches, each containing a switch in series with a resistor and an LED. The switches are represented by the symbols at the top of each branch.
If only one switch is in a closed position, as shown in Figure 4-10 (and in the diagram in Figure 4-9), all the supply current flows through just one LED, which lights, and the other LEDs are off.
If all three switches are closed, the supply current travels through the resistor and then splits three different ways — with some current passing through each of the three LEDs. If all three switches are open, the current does not have a complete path to follow, so no current flows out of the battery, as shown in Figure 4-11.
By alternating which switch is open at any time, you can control which LED is lit. You can imagine such a circuit controlling the operation of a three-stage traffic light (with additional parts to control the timing and sequencing of the switching action).
To analyze combination circuits, you apply voltage and current rules one step at a time, using series rules for components in series and parallel rules for components in parallel. At this point, you don’t quite have enough information to calculate all the currents and voltages in the LED circuits shown here. You need to know about a rule called Ohm’s Law, which I explain in Chapter 6, and about how voltage is dropped across diodes, which I cover in Chapter 9. Then you’ll have everything you need to analyze simple circuits.
To build the three-LED circuit described in this section, you need the following parts:
Each SPDT switch has three terminals for making connections, but for the three-LED circuit, you need to use only two of the terminals. (See Figure 4-12.) The slider button controls which end terminal gets connected to the center terminal.
With the slider in one position, the center terminal is connected to the terminal at the end where the slider is positioned. Move the slider to the other position, and the center terminal is connected to the other end terminal. This type of switch is also known as an on/on switch because it can switch between two circuits, closing one while opening the other.
For the three-LED circuit, you need the switch to function as an on/off switch, so you connect two of the three SPDT terminals in your circuit. Leave the unused end terminal in a breadboard hole but not connected to anything in your circuit, as shown in Figure 4-13. With the slider positioned towards the unused terminal, the switch is off. With the slider positioned towards the other end of the switch, the switch is on.
The simplest type of on/off switch is a two-terminal, single-pole, single-throw (SPST) switch, which simply connects or disconnects the two terminals when you move the slider. But it’s hard to find such a switch with terminals designed to fit into solderless breadboards.
You can set up a simple circuit to connect and disconnect your battery pack from any circuits you build on a solderless breadboard without having to physically remove the battery pack from the breadboard.
In Figure 4-14, the positive terminal of the battery is connected to the top terminal of an SPDT switch. The center terminal of the switch is connected to the leftmost column of the breadboard, which is also known as a power rail. By moving the slider on the switch, you make or break a connection between the positive terminal of the battery and the positive power rail. As long as you use the power rails to supply power to your circuits, your switch functions as an on/off switch for powering your breadboard circuits.
By adding a 470 Ω resistor and an LED between the center terminal of the switch and the negative power rail, you create an indicator light for your on/off switch. (See Figure 4-15.) If the switch is in the off position, the battery is not connected to the LED, so the LED is off. If the switch is in the on position, the battery is connected to the LED, so the LED is on.
Note that even without this resistor and LED, the switch still functions as an on/off power switch for your breadboard. But it’s nice to have a visible indicator that the power is on, as shown in Figure 4-16.
Figure 4-17 is a photograph of a 1980’s style dimmer switch circuit. This simple electronic device uses just a few components to control current flow to a built-in light fixture in my house. But most electronic systems are a lot more complicated than this; they connect lots of individual components in one or more circuits to achieve their ultimate goal.
Figure 4-18 gives you an inside view of the circuitry of a computer hard drive. The circuit consists of the following, all attached to a specialized surface known as a printed circuit board, or PCB:
ICs, which I discuss in Chapter 11, are nothing more than a bunch of tiny circuits that work together to perform a function so commonly desired that it’s worthwhile to mass-produce the circuit and package it in a protective case with leads (the centipede legs) that enable access to the circuit inside.
After you discover how different types of components control current flow in circuits and can apply voltage and current laws, you can begin to design and construct useful electronic circuits.
3.128.199.210