AC vs DC
AC (alternating current) and DC (direct current) describe how electric current flows. The distinction matters more than it might seem at first — most electronics runs on DC internally, but the power coming from the wall is AC, and the reason for that goes back to fundamental physics. Understanding the difference explains why power supplies exist, why transformers work, why some components behave differently with each type, and why the so-called "War of Currents" between Edison (DC) and Tesla/Westinghouse (AC) was eventually won by AC.
DC — Direct Current
DC flows in one direction at a constant voltage. Sources: batteries, solar cells, rectified power supplies, DC generators. Every microcontroller, logic gate, memory chip, and most sensors run on DC. The voltage you measure is the voltage you get — a 9V battery delivers 9V.
AC — Alternating Current
AC reverses direction periodically, following a sinusoidal waveform. Mains power in North America is 120V at 60Hz — the voltage cycles from positive peak to negative peak 60 times per second. Europe and most countries use 230V at 50Hz. The 120V you measure is the RMS value, not the peak:
V_peak = V_RMS × √2 North America: V_peak = 120 × 1.414 = 170V Europe: V_peak = 230 × 1.414 = 325V
This matters for component voltage ratings — capacitors in a mains circuit must be rated for the peak voltage, not the RMS.
Key Differences at a Glance
| Property | DC | AC |
|---|---|---|
| Direction of flow | One direction only | Alternates at the frequency of the supply |
| Voltage | Constant | Sinusoidal — varies continuously |
| Measurement | V = what you measure | V_RMS = effective value; V_peak is higher by √2 |
| Sources | Batteries, regulated supplies, PV cells | Wall outlets, generators, inverters |
| Transformer compatibility | No — transformers need changing flux | Yes — core of the AC grid system |
| Long-distance transmission | Difficult (historically); HVDC now viable | Efficient with transformers at high voltage |
| Used inside electronics | Yes — almost universally | Sometimes (audio signals are AC; mains is AC) |
Why AC for Mains Power?
Transformers only work with AC. A transformer changes voltage with near-perfect efficiency using nothing but wire and an iron core. Transmit power at high voltage (200kV–500kV) and the current is low, so resistive losses in the wires are small (P_loss = I² × R). Step it down at the destination for household use. This is the entire economic case for AC grid power.
Edison's DC system required power stations every mile because DC couldn't be stepped up for efficient transmission. Westinghouse and Tesla's AC system could span hundreds of miles from a single generating station. The physics was decisive — AC won in the 1890s.
Modern High Voltage DC (HVDC) transmission is now technically and economically viable for very long distances and submarine cables, and is used in specific large-scale projects. But the existing grid infrastructure worldwide is AC and will remain so.
Component Behaviour in AC vs DC
| Component | DC behaviour | AC behaviour | Key formula |
|---|---|---|---|
| Resistor | V = IR (Ohm's Law, constant) | Same — resistance is frequency-independent | V = IR at all times |
| Capacitor | Blocks DC after charging | Passes AC; lower impedance at higher frequency | X_C = 1/(2πfC) |
| Inductor | Passes DC (acts like wire resistance only) | Blocks AC; higher impedance at higher frequency | X_L = 2πfL |
| Transformer | Does not work (no changing flux) | Steps voltage up or down with high efficiency | V_s/V_p = N_s/N_p |
| Diode | Passes in forward direction only | Rectifies (converts AC to pulsating DC) | V_f ≈ 0.6–0.7V (silicon) |
| LED | Lights when forward-biased, needs resistor | Lights on half-cycles; can be damaged by reverse voltage | — |
RMS Values and Power
RMS (Root Mean Square) — the DC equivalent that delivers the same power: For a sine wave: V_RMS = V_peak / √2 = V_peak × 0.707 I_RMS = I_peak / √2 Power in a resistive AC circuit: P = V_RMS × I_RMS = I_RMS² × R = V_RMS² / R For non-resistive loads (capacitors, inductors): P = V_RMS × I_RMS × cos(θ) (power factor cos(θ) < 1)
| Waveform | V_RMS / V_peak | V_avg / V_peak |
|---|---|---|
| Sine wave | 0.707 | 0.637 |
| Square wave | 1.000 | 1.000 |
| Triangle wave | 0.577 | 0.500 |
| Half-wave rectified sine | 0.500 | 0.318 |
| Full-wave rectified sine | 0.707 | 0.637 |
Converting AC to DC — The Power Supply Chain
Step 1: Transformer (step down) 120V AC → 12V AC Ratio: N_primary / N_secondary = 10:1 Step 2: Bridge rectifier (4 diodes) 12V AC → pulsating DC, peak ≈ 12 × 1.414 − 1.4 = 15.6V Step 3: Filter capacitor (smoothing) 15.6V pulsating → 14–15.5V rough DC (120Hz ripple) C ≈ I_load / (120Hz × V_ripple_allowed) Step 4: Linear regulator 14V rough DC → 12V stable DC Ripple rejected by PSRR (~70dB for 78xx) Step 5: Optional decoupling at load Additional 100nF ceramic per IC, local to the chip
Inverters — DC Back to AC
Some applications need to go the other direction — converting DC (battery) back to AC (for running AC loads from a battery or solar system). An inverter does this using high-frequency switching and filtering:
| Type | Output waveform | Efficiency | Use |
|---|---|---|---|
| Modified sine wave | Stepped approximation | 85–90% | Resistive loads (heaters, incandescent lights). Many electronics will work. |
| Pure sine wave | True sine wave | 90–95% | Motors, audio equipment, any sensitive electronics. Matches grid quality. |
| Grid-tie | Synchronised pure sine | 93–98% | Solar/wind power fed back to the grid |
References
- Horowitz & Hill — The Art of Electronics, 3rd ed. Chapter 1
- Scherz & Monk — Practical Electronics for Inventors, 4th ed.
- All About Circuits — What is AC? ↗
- Electronics-Tutorials — AC Waveforms ↗
dispelled