Electricity is the directed flow of free electrons through a conductive material, driven by a voltage difference that forces them from a negative potential toward a positive terminal. When you ask what electricity comes from, the answer depends on whether you are looking at the atomic level (dislodged valence electrons) or the macro level (the mechanical, chemical, or photonic energy used to push them). Understanding this origin changes how you wire, protect, and size the power source for your workbench projects, because a chemical source like a battery behaves fundamentally differently under load than a magnetic induction source like a grid-tied power supply. People commonly confuse the speed of the electrical signal (which propagates at near the speed of light) with the physical drift velocity of the electrons themselves, which is actually slower than a snail.

The Physics of the Push: Electrons and Drift Velocity

To understand where electricity comes from in a wire, look at copper. A copper atom has 29 protons and 29 electrons. The outermost electron—the valence electron—is loosely bound to the nucleus. When a voltage is applied across a copper wire, it creates an electromagnetic field that pushes these free valence electrons from atom to atom.

The Bicycle Chain Analogy: Imagine a bicycle chain wrapped around two gears. When you turn the pedal (apply voltage), the entire chain moves almost instantly to turn the rear wheel (the load). The physical metal links (electrons) only move a few inches per second, but the force transfers through the chain at a fraction of the speed of light. The electrons don't sprint from the battery to the LED; they just bump their neighbors, propagating the energy field.

According to Georgia State University's HyperPhysics calculations, the actual drift velocity of electrons in a standard 12 AWG copper wire carrying 10 amps is roughly 0.2 millimeters per second. It would take an individual electron over an hour to travel one meter. What we measure as 'current' is the collective volume of this slow drift, while the 'voltage' is the electromagnetic wave pushing them.

The Three Macro Sources: Magnetic, Chemical, and Photonic

While the atomic mechanism (electron displacement) is always the same, the macro-level energy used to create that initial voltage difference falls into three categories. This distinction dictates your project's power architecture.

1. Magnetic Induction (The Grid and Generators)

Over 99% of grid electricity comes from magnetic induction. By spinning a magnet inside a coil of wire (or vice versa), Faraday's Law of Induction forces electrons to move. According to the U.S. Energy Information Administration (EIA), natural gas, coal, nuclear, wind, and hydro all ultimately just spin turbines to drive these magnets. This source provides virtually infinite current capacity but introduces AC ripple and requires rectification for DC bench work.

2. Chemical Reactions (Batteries)

Batteries generate electricity through redox (reduction-oxidation) reactions. In a LiFePO4 cell, lithium ions move through an electrolyte from the anode to the cathode, leaving behind a surplus of electrons at the negative terminal. This creates a pure, low-noise DC potential, but it is strictly limited by the physical mass of the chemicals inside the cell.

3. The Photoelectric Effect (Solar)

Photovoltaic cells use semiconductor materials (usually silicon) with a specific bandgap. When photons from sunlight strike the silicon, they transfer enough energy to knock valence electrons loose across the bandgap, creating a voltage differential. This source is highly variable and requires MPPT charge controllers to regulate the raw electron flow.

Where You Meet This In Practice: Sizing Your Source

The origin of your electricity dictates how you size your components. A magnetic source (power supply) can deliver its rated current indefinitely as long as it has grid power and adequate cooling. A chemical source (battery) will experience voltage sag and capacity loss based on Peukert's Law and internal resistance.

Worked Numeric Example: You are building an automated 12V greenhouse ventilation system that draws 50W and must run for 4 hours during a grid outage.

Sizing the Chemical Source (Battery):
Load current = 50W / 12V = 4.16 Amps.
Total capacity needed = 4.16A × 4 hours = 16.64 Amp-hours (Ah).
Because you should never drain a LiFePO4 battery below 80% Depth of Discharge (DoD) for maximum cycle life, you divide by 0.80: 16.64 / 0.80 = 20.8 Ah. You must select a 12V 20Ah (or larger) LiFePO4 battery.

Sizing the Magnetic Source (Bench PSU for testing):
When testing this 50W load on the bench, you don't use a battery; you use an AC-to-DC switching power supply. A 50W load requires a PSU with at least 20% overhead to prevent thermal throttling and ensure the cooling fan doesn't run at 100%. 50W × 1.2 = 60W. At 12V, 60W / 12V = 5 Amps. You need a 12V 5A (60W minimum) power supply.

Decision Tree: Choosing Your Project's Power Origin

Use this decision path to select the exact power source topology and part number for your next build.

Project Condition Required Source Origin Concrete Pick / Part Number
Continuous high-draw bench testing (motors, heaters, LED arrays) Magnetic (Grid AC to DC) Mean Well LRS-150-12 (150W, 12V 12.5A enclosed PSU)
Portable, low-noise analog audio or precision sensor arrays Chemical (DC to DC) Dakota Lithium 12V 10Ah (LiFePO4, low EMI noise)
Remote off-grid telemetry (weather stations, trail cams) Photonic + Chemical (Solar to Battery) Renogy 100W 12V Panel + Victron SmartSolar 75/15 MPPT
High-voltage AC induction motor or HVAC control board testing Magnetic (Grid AC direct) Variac (Variable Autotransformer) rated for 120V/240V AC
Default Bench Recommendation: If your project doesn't explicitly require portability or off-grid operation, always default to a magnetic induction source (an enclosed switching power supply like the Mean Well LRS series). They are cheaper per watt, require no maintenance, and eliminate the fire risks associated with mismanaged chemical lithium cells.

Source Mixing and Edge Cases

Can I wire a solar panel directly to my DC load without a battery?

Technically yes, but practically no. Photonic sources (solar panels) act as current sources, not voltage sources. If a cloud passes over, the voltage will collapse, causing microcontrollers like an ESP32 or Arduino to brownout and reboot. Always buffer a photonic source with a chemical source (a battery) and an MPPT charge controller to maintain a stable voltage rail.

Why does my battery voltage drop when I connect a motor, but my bench PSU doesn't?

This comes down to internal resistance. A chemical source has physical limits on how fast ions can move through the electrolyte. When a motor demands a massive startup surge (inrush current), the battery's internal resistance causes a temporary voltage sag (V = I × R_internal). A magnetic source (grid PSU) draws from a virtually infinite bus, so its voltage regulation circuitry can respond to inrush current in microseconds without noticeable sag.

Does the type of electricity (AC vs DC) change how I size my wire?

Yes, due to the 'skin effect' in AC circuits. In DC (chemical sources), electrons flow evenly across the entire cross-section of the wire. In 60Hz AC (magnetic grid sources), the alternating electromagnetic field pushes electrons toward the outer edge (skin) of the conductor. For standard 60Hz home wiring at 120V/240V, this effect is negligible until you exceed 1/0 AWG wire, but at high frequencies (like PWM motor drives or RF), it drastically reduces your effective ampacity and requires stranded or litz wire.