Electricity is the directed flow of electrons through a conductive material, driven by a difference in electrical potential (voltage) and restricted by the material's resistance. When you flip a switch, you are not "creating" electricity; you are closing a physical path that allows existing free valence electrons in the copper wire to move in unison. This fundamental interaction between voltage, current, and resistance governs everything from a 3.3V ESP32 GPIO pin to a 240V residential dryer circuit.

The Core Physics: Electrons, Potential, and the Water Analogy

To understand how does it work electricity at the atomic level, look at copper. A copper atom has 29 electrons, but only one loosely bound electron in its outermost shell. When a voltage source (like a battery or generator) applies an electromotive force (EMF) across the wire, it creates an electric field that pushes these free electrons from atom to atom.

We rely on one core analogy to map these invisible physics to measurable quantities: voltage is water pressure, current is the flow rate (gallons per minute), and resistance is the pipe diameter. A high-pressure pump (voltage) forces water (current) through a narrow pipe (resistance). If the pipe is too narrow for the pressure, friction generates heat—which is exactly what happens when you pull 20 Amps through a 14 AWG wire rated for only 15 Amps.

Real-World Electrical Sources and Circuit Parameters

Theoretical physics assumes ideal voltage sources, but in practice, every power source has internal resistance. This internal resistance dictates what the source can actually deliver to your load before the voltage sags. Below is a data-dense breakdown of common sources you will encounter on the bench or in the field.

Source Type Nominal Voltage Typical Max Continuous Current Internal Resistance Primary Application
AA Alkaline Cell 1.5V DC 0.5A - 1.0A ~0.15 Ω Low-drain remotes, wireless sensors
18650 Li-Ion (e.g., Samsung 25R) 3.7V DC 20A ~0.02 Ω High-drain flashlights, EV battery packs
USB-C Power Delivery 5V - 20V DC 3A - 5A Regulated (N/A) Laptops, fast-charging mobile devices
120V AC Mains (US) 120V AC (RMS) 15A - 20A ~0.05 Ω (Transformer) Home appliances, lighting branch circuits
12V Lead-Acid Automotive 12.6V DC 500A+ (Cranking) ~0.005 Ω Engine starters, marine trolling motors
What this changes in a real circuit: Internal resistance causes voltage sag under load. If you pull 1A from a 1.5V AA battery with 0.15Ω internal resistance, the internal voltage drop is 0.15V (1A × 0.15Ω). Your load only sees 1.35V. This is why high-current ESP32 WiFi transmissions can cause brownouts if powered by weak alkaline cells—the voltage momentarily sags below the 3.3V regulator's dropout threshold.

Worked Example: Calculating Real-World Voltage Drop

Understanding how electricity works means calculating what happens to the voltage between the breaker panel and the outlet. Wire is not a perfect conductor; it is a resistor. Let's calculate the voltage drop for a standard 15A branch circuit using 14 AWG THHN copper wire.

Scenario: 120V AC circuit, 15A continuous load, 50 feet physical distance from panel to load.
  1. Find the total wire length: Current must travel to the load and return to the panel. A 50-foot physical run requires 100 feet of total wire (hot + neutral).
  2. Identify wire resistance: According to NEC Chapter 9, Table 8, uncoated 14 AWG solid copper wire has a resistance of 3.07 Ω per 1,000 feet at 75°C. (We use the 75°C column as it represents typical operating temperature under load).
  3. Calculate total loop resistance: (100 ft / 1,000 ft) × 3.07 Ω = 0.307 Ω.
  4. Apply Ohm's Law (V = I × R): 15A × 0.307 Ω = 4.605V drop.
  5. Calculate percentage: (4.605V / 120V) × 100 = 3.83% voltage drop.

The Practical Result: The NEC (Article 210.19 Informational Note) recommends a maximum 3% voltage drop for branch circuits. At 3.83%, your 14 AWG wire is undersized for this specific 50-foot run, even though it is legally rated to carry 15A safely without melting. The load will only receive 115.39V. To fix this, you upgrade to 12 AWG wire (1.98 Ω/kft), which drops the loss to 2.97V (2.47%), bringing it back into optimal efficiency guidelines. For a deeper look at the math behind this, All About Circuits provides an excellent breakdown of Ohm's Law applications.

Where You Meet This in Practice (And Common Confusions)

When transitioning from textbook theory to the workbench, several misconceptions about how electricity works trip up beginners and intermediate makers alike.

Confusion 1: "Electrons travel from the power plant to my house."

This is fundamentally false. In an Alternating Current (AC) system operating at 60Hz, electrons do not make a cross-country journey. They simply vibrate back and forth in place 60 times a second. The energy travels as an electromagnetic wave propagating through the space around the wires at a significant fraction of the speed of light, but the actual electron drift velocity is incredibly slow—roughly 0.02 centimeters per second in a typical copper wire carrying household current, as documented by Georgia State University's HyperPhysics. You are paying for the electromagnetic energy transfer, not the physical delivery of electrons.

Confusion 2: Volts vs. Watts (Pressure vs. Work)

People commonly confuse the potential to do work (Volts) with the actual rate of work being done (Watts). A static shock from a doorknob can exceed 10,000 Volts, but it carries almost zero continuous current (Amps), resulting in a microscopic Wattage that is harmless. Conversely, a 12V car battery can deliver hundreds of Amps, generating massive Wattage that can melt a steel wrench. When sizing components, always calculate Watts (or VA for reactive AC loads) to determine thermal dissipation, not just voltage.

Confusion 3: Ground vs. Neutral

In a real AC installation, neutral is a current-carrying conductor designed to complete the circuit back to the transformer. Ground (equipment grounding conductor) is a safety path that carries zero current under normal operation. It only carries electricity during a fault condition to trip the breaker. Tying neutral and ground together anywhere outside the main service panel creates a parallel neutral path, energizing chassis grounds and creating a severe shock hazard.

Frequently Asked Questions

Why does my microcontroller reset when I turn on a relay?

This is a classic voltage sag issue. A mechanical relay coil requires a high inrush current to pull the armature closed. If your relay and microcontroller share the same power supply, that sudden current spike causes a voltage drop across the power supply's internal resistance and the PCB traces. The supply voltage dips below the microcontroller's brownout detection threshold, triggering a reset. Fix this by adding a decoupling capacitor (e.g., 100µF) across the relay coil and using a separate voltage regulator for the logic side.

Does higher voltage always mean a higher shock hazard?

Not strictly. It is the current (specifically, 30mA to 100mA passing through the heart) that causes fatal fibrillation. However, human skin has high electrical resistance (often 10,000Ω to 100,000Ω when dry). According to Ohm's Law (I = V/R), a low voltage like 12V cannot push a lethal current through dry skin. High voltage (120V+) overcomes skin resistance, allowing lethal current to flow. Therefore, voltage is the enabler of the hazard, while current is the actual mechanism of injury.

How does temperature affect wire resistance?

Copper has a positive temperature coefficient. As the wire heats up from carrying current, its atomic lattice vibrates more intensely, scattering the flowing electrons and increasing resistance. This is why NEC ampacity tables require you to apply derating factors when bundling multiple current-carrying conductors in a single conduit; the trapped heat raises the wire's resistance and reduces its safe current-carrying capacity.