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

PropertyDCAC
Direction of flowOne direction onlyAlternates at the frequency of the supply
VoltageConstantSinusoidal — varies continuously
MeasurementV = what you measureV_RMS = effective value; V_peak is higher by √2
SourcesBatteries, regulated supplies, PV cellsWall outlets, generators, inverters
Transformer compatibilityNo — transformers need changing fluxYes — core of the AC grid system
Long-distance transmissionDifficult (historically); HVDC now viableEfficient with transformers at high voltage
Used inside electronicsYes — almost universallySometimes (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

ComponentDC behaviourAC behaviourKey formula
ResistorV = IR (Ohm's Law, constant)Same — resistance is frequency-independentV = IR at all times
CapacitorBlocks DC after chargingPasses AC; lower impedance at higher frequencyX_C = 1/(2πfC)
InductorPasses DC (acts like wire resistance only)Blocks AC; higher impedance at higher frequencyX_L = 2πfL
TransformerDoes not work (no changing flux)Steps voltage up or down with high efficiencyV_s/V_p = N_s/N_p
DiodePasses in forward direction onlyRectifies (converts AC to pulsating DC)V_f ≈ 0.6–0.7V (silicon)
LEDLights when forward-biased, needs resistorLights 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)
WaveformV_RMS / V_peakV_avg / V_peak
Sine wave0.7070.637
Square wave1.0001.000
Triangle wave0.5770.500
Half-wave rectified sine0.5000.318
Full-wave rectified sine0.7070.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:

TypeOutput waveformEfficiencyUse
Modified sine waveStepped approximation85–90%Resistive loads (heaters, incandescent lights). Many electronics will work.
Pure sine waveTrue sine wave90–95%Motors, audio equipment, any sensitive electronics. Matches grid quality.
Grid-tieSynchronised pure sine93–98%Solar/wind power fed back to the grid

References