Difference between revisions of "Root Mean Square"
(→Shifted PWM Signal) |
(→0-to-high PWM Signal) |
||
Line 55: | Line 55: | ||
=== 0-to-high PWM Signal === | === 0-to-high PWM Signal === | ||
− | Assume you have a pulse-width-modulated signal that is "on" (high, $$ | + | Assume you have a pulse-width-modulated signal that is "on" (high, $$H$$ V) for some duration $$W$$ each period $$T$$ and "off" (0 V) for the rest of each period. The minimum value would be 0 and the maximum would be $$H$$. The average value of this signal would be: |
<center> | <center> | ||
$$\begin{align*} | $$\begin{align*} | ||
\bar{v}&=\frac{1}{T}\int_0^Tv(\tau)\,d\tau\\ | \bar{v}&=\frac{1}{T}\int_0^Tv(\tau)\,d\tau\\ | ||
− | ~&=\frac{1}{T}\int_0^ | + | ~&=\frac{1}{T}\int_0^WH\,d\tau=H\frac{W}{T} |
\end{align*}$$</center> | \end{align*}$$</center> | ||
The RMS value would be: | The RMS value would be: | ||
<center>$$\begin{align*} | <center>$$\begin{align*} | ||
\E{V}{RMS}&=\sqrt{\frac{1}{T}\int_0^T\left(v(\tau)\right)^2\,d\tau}\\ | \E{V}{RMS}&=\sqrt{\frac{1}{T}\int_0^T\left(v(\tau)\right)^2\,d\tau}\\ | ||
− | ~&=\sqrt{\frac{1}{T}\int_0^ | + | ~&=\sqrt{\frac{1}{T}\int_0^WH^2\,d\tau}\\ |
− | ~&= | + | ~&=H\sqrt{\frac{W}{T}} |
\end{align*}$$</center> | \end{align*}$$</center> | ||
The RMS-AC value is most easily calculated using the relationship | The RMS-AC value is most easily calculated using the relationship | ||
Line 81: | Line 81: | ||
\begin{align*} | \begin{align*} | ||
\E{V}{RMS, AC}&=\sqrt{\E{V}{RMS}^2-\bar{v}^2}\\ | \E{V}{RMS, AC}&=\sqrt{\E{V}{RMS}^2-\bar{v}^2}\\ | ||
− | ~&=\sqrt{ | + | ~&=\sqrt{H^2\frac{W}{T}-H^2\frac{W^2}{T^2}}\\ |
− | ~&=\frac{ | + | ~&=\frac{H}{T}\sqrt{WT-W^2} |
\end{align*}$$</center> | \end{align*}$$</center> | ||
Line 89: | Line 89: | ||
$$\begin{align*} | $$\begin{align*} | ||
D&=\frac{W}{T} & | D&=\frac{W}{T} & | ||
− | \bar{v}&= | + | \bar{v}&=H\,D & |
− | \E{V}{RMS}&= | + | \E{V}{RMS}&=H\,\sqrt{D} & |
− | \E{V}{RMS,AC}&= | + | \E{V}{RMS,AC}&=H\,\sqrt{D-D^2} |
\end{align*}$$</center> | \end{align*}$$</center> | ||
=== Shifted PWM Signal === | === Shifted PWM Signal === | ||
If a PWM signal has a low value other than 0 V, all of the above quantities would need to be adjusted. This is currently outside the scope of ECE 110. | If a PWM signal has a low value other than 0 V, all of the above quantities would need to be adjusted. This is currently outside the scope of ECE 110. |
Revision as of 22:12, 9 September 2022
$$\newcommand{E}[2]{#1_{\mathrm{#2}}}$$
This page aims to describe what a root mean square value is and how different equipment measures and displays root mean square values.
Contents
Background
There are a variety of ways to quantify time-varying signals. You could look at the maximum and minimum values, the average values, and the frequency content of the signal. Another way to quantify a signal is to look at what is called the root mean square or RMS value. This value ends up being related to the power of a signal and is calculated as:
where $$T$$ represents the period of a periodic signal or, for measurement devices, the sampling window it uses to determine signal qualities. Note that there is another version of RMS, which we will call the AC version of RMS, that looks at the square of the difference between the signal and its own average versus the signal value itself. If we define the average value of some signal as
then this AC RMS version would give:
Also,
Among other things, this means that $$\E{V}{RMS}$$ and $$\E{V}{RMS, AC}$$ are the same for signals with an average value of 0.
It is important to note which version of the above various measurement devices calculate! For time-varying signals, multimeters set to DCV mode will report $$\bar{v}$$ and set to ACV mode will report $$\E{V}{RMS, AC}$$. From those two, you can determine $$\E{V}{RMS}$$ if you need it. The oscilloscopes in ECE 110 can be set to report AC RMS which will give $$\E{V}{RMS, AC}$$ or they can be set to report what they call DC RMS which will give $$\E{V}{RMS}$$. They can also be set to report the average, $$\bar{v}$$.
Examples
Single Frequency Sinusoid
A signal $$v=A\,\cos(\omega t+\phi)$$ is a periodic signal with an amplitude $$A$$, angular frequency $$\omega$$, and phase $$\phi$$. In addition to reporting the magnitude, you can find the "peak to peak" value of the signal by taking the difference between the maximum and minimum values; in this case, that is $$2A$$. The average value of this signal would be $$\bar{v}=0$$. The RMS value (which is the same as the AC RMS since the average is 0) would be:
Since the cosine term is now being integrated over two complete periods, that integral will be 0. The integral of a constant over a period, divided by that period, is simply that constant so an $$A^2/2$$ pops out and then you take the square root. This yields:
For a single frequency sinusoid, the oscilloscope's DC RMS measurement would give $$A/\sqrt{2}$$. The oscilloscope's AC RMS and the multimeter's ACV measurement would give $$A/\sqrt{2}$$. The oscilloscope's average value and the multimeter's DCV measurement would give $$0$$.
Shifted Single Frequency Sinusoid
A signal $$v=A\,\cos(\omega t+\phi) + B$$ is a periodic signal with an amplitude about its average of $$A$$, angular frequency $$\omega$$, and phase $$\phi$$. The "peak to peak" value is still the difference between the maximum and minimum values, $$2A$$. The average value of this signal would be $$\bar{v}=B$$. The RMS value would be:
The cosine terms are still being integrated over an integer number of complete periods, so those parts integrate to 0. This yields:
For a shifted single frequency sinusoid, the oscilloscope's DC RMS measurement would give $$\sqrt{\frac{A^2}{2}+B^2}$$. The oscilloscope's AC RMS and the multimeter's ACV measurement would give $$A/\sqrt{2}$$. The oscilloscope's average value and the multimeter's DCV measurement would give $$B$$.
0-to-high PWM Signal
Assume you have a pulse-width-modulated signal that is "on" (high, $$H$$ V) for some duration $$W$$ each period $$T$$ and "off" (0 V) for the rest of each period. The minimum value would be 0 and the maximum would be $$H$$. The average value of this signal would be:
The RMS value would be:
The RMS-AC value is most easily calculated using the relationship
or
so
If you define the duty cycle $$D$$ as the ratio of $$W$$ to $$T$$, you get:
Shifted PWM Signal
If a PWM signal has a low value other than 0 V, all of the above quantities would need to be adjusted. This is currently outside the scope of ECE 110.