177: Basic Electronics: AC/DC: Alternating Vs. Direct Current

Take Up Code - A podcast by Take Up Code: build your own computer games, apps, and robotics with podcasts and live classes

Categories:

Do you know where the nearest power plant is? Direct current is easy to understand because there’s a constant voltage that wants to push charge through a circuit in a single direction. But if DC is so simple, why does the world use AC to power our homes and offices? Back in the late 1800’s this was not decided at all and depending on where you lived, you might actually have DC supplied to your home. The reason AC finally won is because of two reasons. First, we don’t want high voltages in our houses. 240 volts in some parts of the world is high enough. And second, electric companies are in business to make money and that means they don’t want to waste resources by losing power in the power lines. If power is being used anywhere, the electric company wants somebody else to be paying for it. They don’t want to be paying themselves to warm up birds perched on the lines. Make sure to listen to the full episode for the full explanation of how AC solved these issues. You can also read the full transcript below. Transcript In the last episode, I started explaining some simple electronics that will help you become a better programmer. This episode builds on that by explaining the reasons why the world uses alternating current instead of direct current. They’re usually abbreviated as AC and DC. Direct current is easy to understand because there’s a constant voltage that wants to push charge through a circuit in a single direction. That doesn’t mean that the charge will always flow in that direction such as when charging a battery, you sort of overpower the battery and force the charge to flow back into the battery. But in general, DC is fairly easy to deal with. So if DC is so simple, why does the world use AC to power our homes and offices? Back in the late 1800’s this was not decided at all and depending on where you lived, you might actually have DC supplied to your home. The reason AC finally won is because of two reasons. First, we don’t want high voltages in our houses. 240 volts in some parts of the world is high enough. And second, electric companies are in business to make money and that means they don’t want to waste resources by losing power in the power lines. If power is being used anywhere, the electric company wants somebody else to be paying for it. They don’t want to be paying themselves to warm up birds perched on the lines. Let me fill in some missing pieces here. First, you need to know a little about power. I’m talking about power in a specific technical electrical sense and not as in how we normally say something like, “That machine’s really powerful.” Power is defined as voltage times current and is measured in watts. When you add time to this, you get a watt-hour which is a unit of energy. If you use one watt of power for an entire hour, then you’ve used one watt-hour of energy. The electric company will bill you in terms of kilowatt-hours which are 1000 watt-hours. If you listen to last week’s episode, then you’ll also know that voltage is equal to current times resistance. What resistance am I talking about? The power lines are made of aluminum or copper because they conduct electricity very well. But they still have a small amount of resistance. And that resistance increases as the line gets longer. This means that the farther away you live from the power plant, the higher the resistance will be. It’s also the one thing that’s fairly constant. What I mean is that while, sure, the electric company can install new power lines made of some new material with a lower resistance, they don’t do this every day. Once power lines are installed, they remain for years. Now if we combine the two formulas and rearrange things a bit, we get power equals current squared times resistance. That’s important because it means that current is much more important when calculating power than resi