When plotted as voltage (V) as a function of phase (θ), a square wave looks similar to the figure to the right.
The waveform repeats every 2π radians (360°), and is symmetrical about the voltage axis
(when no DC offset is present). Voltage and current exhibiting cyclic behavior is referred to as alternating; i.e., alternating current (AC).
One full cycle is shown here. The basic equation for a square wave is as follows:
There are a number of ways in which the amplitude of
a square wave is referenced, usually as peak voltage (V_{pk} or V_{p}), peaktopeak voltage (V_{pp} or V_{pp}
or V_{pkpk} or V_{pkpk}), average voltage (V_{av} or V_{avg}), and rootmeansquare voltage (V_{rms}).
Peak voltage and peaktopeak voltage are apparent by looking at the above plot. Rootmeansquare and average voltage are not so apparent.
Also see Sinewave Voltages and
Triangle Wave Voltages page.
RootMeanSquare Voltage (V_{rms})
As the name implies, V_{rms}
is calculated by taking the square root of the mean average of the square of the voltage in an appropriately chosen interval. In the case of
symmetrical waveforms like the square wave, a quarter cycle faithfully represents all four quarter cycles of the waveform. Therefore, it is
acceptable to choose the first quarter cycle, which goes from 0 radians (0°) through π/2
radians (90°).
V_{rms} is the value indicated by the vast majority of AC voltmeters. It is the value that, when applied across
a resistance, produces that same amount of heat that a direct current (DC) voltage of the same magnitude would produce. For example, 1 V applied
across a 1 Ω resistor produces 1 W of heat. A 1 V_{rms} square wave applied across a 1 Ω resistor also produces 1 W of heat. That 1
V_{rms} square wave has a peak voltage of 1 V, and a peaktopeak voltage of 2 V.
Since finding a full derivation of the formulas
for rootmeansquare (V_{rms}) voltage is difficult, it is done here for you.
So, V_{rms} = V_{pk}
Average Voltage (V_{avg})
As the name implies, V_{avg} is calculated by taking the average of the voltage in an appropriately chosen interval. In the case
of symmetrical waveforms like the square wave, a quarter cycle faithfully represents all four quarter cycles of the waveform. Therefore,
it is acceptable to choose the first quarter cycle, which goes from 0 radians (0°) through π/2
radians (90°).
As with the V_{rms} formula, a full derivation for the V_{avg} formula is given here as well.
So, V_{avg} = V_{pk}
* I have no idea why we write "Sinewave," but not "Trianglewave" and "Squarewave."
