Sub topic 1
Charge and current: what flows in a circuit
Prerequisites
This chapter assumes you can do the following:
- Rearrange a simple equation to solve for one variable.
- Use SI prefixes such as milli (10⁻³), micro (10⁻⁶), and kilo (10³).
- Describe a basic circuit as a source, a load, and a closed loop.
No earlier electrical knowledge is needed. This chapter builds the vocabulary that voltage, resistance, and Ohm's law use in later chapters.
Electric charge
Electric charge is a property of matter that makes it feel forces from electric fields. It comes in two kinds, called positive and negative. Like charges repel and opposite charges attract.
Charge is measured in coulombs (symbol C). Charge is quantized, which means it comes in whole multiples of the elementary charge:
e = 1.602176634 × 10⁻¹⁹ C
An electron carries charge −e. A proton carries +e. One coulomb is about 6.24 × 10¹⁸ elementary charges, so everyday circuits involve huge numbers of carriers. At that scale charge behaves like a smooth, continuous quantity, and you can ignore its graininess.
Charge is conserved. It is never created or destroyed in a circuit. It only moves from place to place. This one fact explains most of the rules in this chapter.
Defining current
Electric current is the rate at which charge passes through a cross-section of a conductor. A cross-section is an imaginary slice across the wire. In symbols:
I = ΔQ / Δt, or more precisely I = dQ/dt
The SI unit is the ampere (A), defined as one coulomb per second. Typical values:
| Situation | Typical current |
|---|---|
| Signal pin on a microcontroller | microamps to a few milliamps |
| LED indicator | 2 to 20 mA |
| Phone charger | 1 to 3 A |
| Household kettle | about 10 A |
Two quick calculations show how to use the definition:
- A steady 2 A flows for 30 s. The charge moved is Q = I × t = 2 × 30 = 60 C.
- A steady 1 A is 1 C/s, which is 1 / (1.602 × 10⁻¹⁹) ≈ 6.24 × 10¹⁸ electrons per second.
The code below checks the second calculation:
E = 1.602176634e-19 # elementary charge in coulombs
def electrons_per_second(current_amps):
return current_amps / E
print(f"{electrons_per_second(1.0):.3e} electrons per second at 1 A")
print(f"{electrons_per_second(0.020):.3e} electrons per second at 20 mA")Conventional current and electron flow
In metal wires the moving charges are electrons, which are negative. They travel from the negative terminal of a source toward the positive terminal. Long before electrons were identified, engineers defined current as the flow of positive charge. This is conventional current, and it points the opposite way from the electron motion.
Both descriptions are equivalent. Moving negative charge one way has the same effect on the net charge count as moving positive charge the other way. This tutorial uses conventional current, which is the standard in circuit diagrams, datasheets, and analysis tools. The arrow on a diode symbol and the "current direction" of every formula in later chapters follow this convention.
In other materials the carriers differ. Electrolytes carry current with positive and negative ions. Semiconductors carry it with electrons and with holes, which behave like positive carriers. The definition I = dQ/dt does not care which carriers move.
Current in a circuit has a direction and a path
A current needs a closed loop. A source can push charge, but if the loop is broken at any point, the current stops everywhere in that loop at once. This is why a switch works by opening the path, not by "turning off" a source.
When you draw a current, you choose a reference direction with an arrow. If your calculation later gives a negative number, the real current flows opposite to your arrow. The sign is not an error. It carries information about direction.
Current can be direct (DC), meaning its direction stays fixed, or alternating (AC), meaning it reverses periodically. The chapters that follow concentrate on DC, where Ohm's law is easiest to see.
Where the charge goes: current is not used up
A common misconception is that a lamp or resistor "consumes" current, so less current comes out than goes in. That is false. Charge is conserved, and in a steady state it cannot pile up at any point in a wire. Therefore the same current leaves a component as enters it. What a component takes from the charges is energy, not the charges themselves. The next chapter covers energy per unit charge, which is voltage.
The conservation rule applied to a junction is Kirchhoff's current law (KCL). The sum of currents entering a node equals the sum of currents leaving it. A node is a point where two or more conductors meet.
Here 3.0 A = 1.2 A + 1.8 A. If you know any two of the three currents, KCL gives the third. This is the same idea that makes the series and parallel rules work in later chapters. In a series chain there is only one path, so every component carries the same current. At a parallel split, the branch currents add up to the total.
What the carriers are really doing: drift velocity
Electrons in a copper wire move randomly at very high speed, around 10⁶ m/s, colliding constantly with the metal's atoms. When a source applies an electric field, each electron picks up a tiny net motion along the wire on top of that random motion. This average velocity is the drift velocity.
The link between current and drift velocity is:
I = n · q · A · v_d
- n is the number of mobile carriers per cubic metre.
- q is the charge of each carrier, with magnitude e for electrons.
- A is the cross-sectional area in square metres.
- v_d is the drift velocity in metres per second.
Rearranged, v_d = I / (n · q · A). For copper, n is about 8.5 × 10²⁸ electrons per m³.
E = 1.602176634e-19 # coulombs
n_copper = 8.5e28 # free electrons per cubic metre, approximate
area = 1.0e-6 # 1 mm^2 in square metres
current = 1.0 # amperes
v_drift = current / (n_copper * E * area)
print(f"Drift velocity: {v_drift * 1000:.3f} mm/s") # about 0.073 mm/sThe answer is about 0.073 mm per second. At that speed an electron needs roughly 14,000 seconds, nearly four hours, to move one metre. Yet a lamp lights almost instantly when you flip a switch. The two facts do not conflict, for this reason:
- The wire is already full of mobile electrons everywhere. Pushing on one end shifts the whole population nearly together.
- The electric field that drives the electrons spreads along the wire at a large fraction of the speed of light.
- So the energy and the "start moving" signal travel fast, while each individual electron drifts slowly.
An analogy is a garden hose already full of water. Turn on the tap and water leaves the nozzle at once, though the water at the tap takes much longer to reach the end.
Finding charge from a changing current
When current varies with time, the charge moved is the area under the current-versus-time graph:
Q = ∫ I dt
For measured data, you can estimate this with the trapezoid rule, adding up the average current times each time step:
times = [0, 1, 2, 3, 4] # seconds
currents = [0.0, 0.5, 1.0, 1.0, 0.5] # amperes
charge = 0.0
for k in range(len(times) - 1):
dt = times[k + 1] - times[k]
charge += 0.5 * (currents[k] + currents[k + 1]) * dt
print(f"Charge moved: {charge:.2f} C") # 2.75 CThe result is 2.75 C. This is how a battery's capacity in amp-hours relates to charge. One amp-hour is 3600 C, because 1 A for 3600 s moves 3600 C.
Common mistakes
- Treating current as something a component uses up. Charge is conserved, so current is the same entering and leaving a two-terminal component. Energy is what gets transferred.
- Forgetting unit prefixes. 20 mA is 0.020 A. Convert to amperes before using a formula.
- Mixing up electron flow and conventional current when labelling arrows. Pick one convention, and use conventional current throughout.
- Assuming a current flows without a complete loop. An open circuit carries zero current, whatever the source does.
- Confusing drift speed with signal speed. Carriers drift slowly, but the electromagnetic signal moves fast.
How this connects to what comes next
Current describes how much charge moves. It does not yet say why charge moves or how hard it is to move. The next chapter introduces voltage, the energy per unit charge that pushes carriers around the loop. Then resistance describes how strongly a material limits the current for a given push. Ohm's law ties the three together.
Exercise
A wire carries a steady 250 mA. (a) How much charge passes a point in 2 minutes? (b) At the junction of this wire, 250 mA arrives, 90 mA leaves on one branch, and the rest leaves on another. What current is in the second branch?
Show answer
(a) Convert 250 mA to 0.250 A and 2 minutes to 120 s. Q = I × t = 0.250 × 120 = 30 C. (b) By Kirchhoff's current law, current in equals current out, so the second branch carries 250 mA − 90 mA = 160 mA.
Exercise
A 2 mm² copper wire (A = 2.0 × 10⁻⁶ m²) carries 4 A. Using n = 8.5 × 10²⁸ electrons per m³ and e = 1.602 × 10⁻¹⁹ C, find the drift velocity. Is it faster or slower than in the 1 mm², 1 A example, and why?
Show answer
v_d = I / (n·e·A) = 4 / (8.5e28 × 1.602e-19 × 2.0e-6) = 4 / 2.7234e4 ≈ 1.47 × 10⁻⁴ m/s, about 0.147 mm/s. This is twice as fast as the 0.073 mm/s example. The current is four times larger, but the area is also twice as large, so the net factor is 4 / 2 = 2.