Lecture 5: AC Fundamentals and RMS
Previous lecture | Lecture index | Next lecture
Slides PDF | Equation sheet | Activity sheets | Quiz PDF | Quiz Solutions PDF
Read amplitude, period, phase, offset, and RMS from time-varying signals. Relate RMS to resistive heating and distinguish the AC component from the total waveform.
Start Here
A voltage alternates between positive and negative. Why can it still heat a resistor?
A waveform is a graph of a changing quantity. Read the vertical units and use the horizontal axis to find how long a pattern takes to repeat.
🎯 Learning Objectives
- Convert between cycles, period, frequency, and angular frequency.
- Calculate RMS current and average resistor heating.
- Distinguish peak, peak-to-peak, mean, AC-only RMS, and total RMS in a sampled record.
Continuing project: Keep the same process, controlled variable, manipulated variable, and disturbance throughout the sequence. Retain circuit sketches, raw data, assumptions, and the design decision from each activity.
⚡ Concepts, Equations, and Worked Examples
Specify the Whole Waveform
Read time across and voltage up
Use the vertical axis to find the mean and extremes. The distance from the mean to a crest is amplitude. The distance from trough to crest is peak-to-peak voltage. Use the horizontal axis to find the period between equivalent points, such as two upward crossings of the mean. Frequency counts how many periods fit into one second.

The 5 Hz waveform repeats every 0.20 s. It is centered at 2.50 V and ranges from 1.00 V to 4.00 V.
The sine amplitude is measured from its mean, while the maximum voltage is measured from the selected reference. A DC offset can keep a simulated waveform within an ADC’s allowed range. With 2.50 V mean and 1.50 V sine amplitude, the range is 1.00-4.00 V and the peak-to-peak value is 3.00 V. That example fits the simulated 5 V Uno case and exceeds a 3.3 V input span.
Equal RMS voltages dissipate equal average power across the same ideal fixed resistor. Across 24 \(\Omega\), 6 V DC, a 6 V RMS sine, and a symmetric +6/-6 V square wave each dissipate 1.50 W. Their peaks and signed means differ. An AC-only meter may remove the DC contribution, so record the actual instrument mode before comparing RMS readings.
Phase is a relative timing relationship between equal-frequency signals. The slides show 45° of lag as 25 ms at 5 Hz. The separate equation-sheet example uses 36° at 20 Hz. Always state the reference and whether the second signal leads or lags.
1 / Period, frequency, and waveform
A sinusoid with a DC offset is $$v(t)=V_{\mathrm{DC}}+V_p\sin(\omega t+\phi),\quad\omega=2\pi f.$$ $$T=\frac{\Delta t}{N},\qquad f=\frac1T.$$
Worked example. Two complete cycles occupy \(0.10\,\mathrm{s}\).
- \(T=0.10/2=0.050\,\mathrm{s}=50\,\mathrm{ms}\).
- \(f=1/0.050=20\,\mathrm{Hz}\).
- \(\omega=2\pi(20)=125.7\,\mathrm{rad/s}\).
2 / RMS and resistor heating
Connect RMS to a physical effect
A resistor heats while current flows in either direction. Squaring the voltage makes both halves of the power trace positive. RMS means root mean square: square each voltage, average the squares, and take the square root. A constant DC voltage equal to the AC RMS value would give the same average heating in this resistor. Use several complete cycles of an evenly sampled waveform for the calculation.

A 2 V peak sine across 10 Ω produces two heating peaks per voltage cycle and a mean power of 0.20 W.
For a zero-mean sine, \(V_{\mathrm{rms}}=V_p/\sqrt2\). $$I_{\mathrm{rms}}=\frac{V_{\mathrm{rms}}}{R},\quad P_{\mathrm{avg}}=\frac{V_{\mathrm{rms}}^2}{R}.$$
Worked example. \(12\,\mathrm{V}\) RMS across \(24\,\mathrm{\Omega}\).
- \(I_{\mathrm{rms}}=12/24=0.50\,\mathrm{A}\).
- \(P_{\mathrm{avg}}=12^2/24=6.0\,\mathrm{W}\).
- \(V_p=12\sqrt2=17.0\,\mathrm{V}\). Zero mean voltage still produces heat.
3 / RMS with a DC offset
For a zero-mean AC component on a DC level: $$V_{\mathrm{rms,tot}}=\sqrt{V_{\mathrm{DC}}^2+V_{\mathrm{rms,ac}}^2}.$$
Worked example. \(V_{\mathrm{DC}}=2.50\,\mathrm{V}\); sine amplitude \(V_p=1.50\,\mathrm{V}\).
- \(V_{\mathrm{rms,ac}}=1.50/\sqrt2=1.061\,\mathrm{V}\).
- \(V_{\mathrm{rms,tot}}=\sqrt{2.50^2+1.061^2}=2.72\,\mathrm{V}\).
- Range: \(2.50\pm1.50=1.00\) to \(4.00\,\mathrm{V}\). Check actual ADC limits before connection.
Engineering point: An AC-coupled RMS meter may reject the DC contribution.
4 / Phase as a timing shift
Use one signal as the clock
Align equivalent features, such as two first peaks or two upward crossings. Then measure the time between them. A full cycle corresponds to 360°. In this graph the voltage is the reference, so the current reaches the same place in the cycle later and has a negative phase relative to the voltage.

The current’s first peak occurs 25 ms after the voltage’s first peak. This is one eighth of a 200 ms cycle, equivalent to 45° of lag.
For equal-frequency signals: $$|\Delta\phi|=360^{\circ}\frac{|\Delta t|}{T}.$$
Worked example. A \(20\,\mathrm{Hz}\) current peak occurs \(5\,\mathrm{ms}\) after the voltage peak.
- \(T=50\,\mathrm{ms}\).
- \(|\Delta\phi|=360^{\circ}(5/50)=36^{\circ}\).
- Current lags voltage; if voltage is the zero-phase reference, current phase is \(-36^{\circ}\).
5 / RMS from sampled data
For equally spaced samples spanning representative complete cycles: $$\overline v=\frac1N\sum_{i=1}^N v_i,\qquad V_{\mathrm{rms}}=\sqrt{\frac1N\sum_{i=1}^N v_i^2}.$$
Worked example. An equal-time square wave alternates \(0\) and \(5\,\mathrm{V}\).
- Mean \(=(0+5)/2=2.5\,\mathrm{V}\).
- RMS \(=\sqrt{(0^2+5^2)/2}=3.54\,\mathrm{V}\).
- The sine-only \(V_p/\sqrt2\) rule does not apply.
🧪 Experiment: Waveform Measurement (15 min)
Open Microcontroller I/O Studio. Use the simulator or the prepared educational circuit specified below. Preserve project-controller firmware and record board, firmware, input range, signal reference, settings, and actual sample interval.
Before you begin. Choose two successive upward crossings of the mean on the same trace. Use their time difference as your first period measurement.
- Start the Uno simulator and select the A1 sine generator and scope channel. Use the illustrative 3 V peak-to-peak amplitude and 2.5 V offset.
- Predict periods at 2, 5, and 10 Hz before observing them. Show several complete cycles at each frequency and record actual sampling settings.
- Measure period, peak-to-peak voltage, mean, and total RMS after the record stabilizes.
- Save raw scope samples and one useful trace. The slower trend export is a separate record and is unsuitable for some waveform calculations.
- For hardware, use only the prepared source within the actual ADC input range. Do not connect line voltage, arbitrary negative voltage, or this 4 V-maximum example to an incompatible input.
Record and Interpret
| Frequency Hz | Predicted period s | Observed period s | Peak-to-peak V | Mean V | Total RMS V |
|---|---|---|---|---|---|
| 2 | 0.50 | Record | Record | Record | Record |
| 5 | 0.20 | Record | Record | Record | Record |
| 10 | 0.10 | Record | Record | Record | Record |
With unchanged amplitude and offset, the ideal mean remains 2.50 V and total RMS is about 2.72 V. Explain differences due to sample timing, incomplete cycles, quantization, or noise. At an illustrative 100 samples/s, 5 Hz provides about 20 samples/cycle; increasing the display detail does not increase acquisition rate. Aliasing can make faster signals misleading.
Data origin: Identify physical measurement, simulator output, supplied synthetic data, or calculated model for every record. Preserve the prediction before collecting the result.
Data and Analysis Downloads
Download the analysis bundle and extract it locally to retain the original script and CSV names.
🛠 Project Checkpoint
Add waveform evidence to the AC part of EE 1. Identify an actual AC equipment rating, the supplied resistor-heater case, or a project time-varying signal. State peak, RMS, frequency, offset, sample interval, and data origin. Keep the paper equipment calculation separate from the low-voltage experiment.
Check Your Understanding
What are the amplitude and peak-to-peak voltage of the 1.00–4.00 V trace?
Amplitude is half the span, 1.50 V. The peak-to-peak voltage is 3.00 V.
📝 Quiz (10-15 min)
After you try each question, select Worked solution below it to see the steps. Use the Quiz Solutions PDF above to review the full answer key.
12 points total; 4 points per question. Show work and units. Round numerical results to 3 significant figures. For multiple choice, select one answer and explain briefly.
Question 1: Period and frequency
A zero-mean sine completes four cycles in 0.080 s. Find period in milliseconds and frequency in Hz.
$$T=0.080/4=0.0200\,\mathrm{s}=20.0\,\mathrm{ms},\qquad f=1/0.0200=50.0\,\mathrm{Hz}$$
The observation window contains four periods.
Question 2: Resistor heating with AC
A 12 V RMS zero-mean sine drives a 60 \(\Omega\) resistor. Find RMS current and average power. Does zero mean voltage imply zero heating?
$$I_{\mathrm{rms}}=12/60=0.200\,\mathrm{A},\qquad P_{\mathrm{avg}}=12^2/60=2.40\,\mathrm{W}$$
No. Instantaneous resistor power is \(v^2/R\), which is nonnegative during both half cycles.
Question 3: A signal with a DC offset
A waveform has 3.0 V DC mean plus a zero-mean sine with 2.0 V peak amplitude. Find AC-only and total RMS.
$$V_{\mathrm{rms,ac}}=2.0/\sqrt2=1.41\,\mathrm{V}$$ $$V_{\mathrm{rms,total}}=\sqrt{3.0^2+2.0^2/2}=\sqrt{11}=3.32\,\mathrm{V}$$
Combine mean squares. AC-only RMS excludes the DC contribution.
✅ Exit Ticket
A zero-mean sine is 6 V RMS across 12 \(\Omega\). Find peak voltage, RMS current, and average power. Why does zero mean voltage permit nonzero heating?
$$V_p=6\sqrt2=8.49\,\mathrm{V},\qquad I_{\mathrm{rms}}=6/12=0.50\,\mathrm{A},\qquad P_{\mathrm{avg}}=6^2/12=3.0\,\mathrm{W}$$
The squared voltage is nonnegative during both half cycles; its average does not cancel.
💬 Discussion Questions
Commit to an answer before comparing with a colleague or AI assistant.
- Why is the sine amplitude different from the maximum voltage of an offset waveform?
- Why can two instruments display different RMS readings for the same offset signal?
- What changes when frequency increases while amplitude and offset stay constant?
📐 Nomenclature
| Symbol | Meaning | Example value |
|---|---|---|
| \(v(t),v_i\) | Voltage/sampled voltage | 5 V sample |
| \(t,\Delta t\) | Time/time interval | 0.10 s; 5 ms shift |
| \(T,f\) | Period/frequency | 50 ms; 20 Hz |
| \(N,i\) | Count/sample index | 2 cycles or samples; 1 |
| \(\omega\) | Angular frequency | 125.7 rad/s |
| \(\phi,\Delta\phi\) | Phase/phase difference | 0; \(-36^{\circ}\) |
| \(V_p\) | Sine amplitude | 1.50 V |
| \(V_{\mathrm{DC}},\overline v\) | DC level/mean | 2.50 V |
| \(V_{\mathrm{rms,ac}}\) | AC-only RMS | 1.061 V |
| \(V_{\mathrm{rms,tot}}\) | Total RMS | 2.72 V |
| \(V_{\mathrm{rms}},I_{\mathrm{rms}}\) | RMS voltage/current | 12 V; 0.50 A |
| \(R,P_{\mathrm{avg}}\) | Resistance/mean power | 24 \(\Omega\); 6 W |
Counts and indices are unitless. Use radians inside \(\sin\) unless a degree convention is explicit.
📚 Resources and Source Materials
- APMonitor: related Electrical Engineering lesson
- MCU Studio operating and measurement instructions
- Process Control project requirements
- Lecture reference 1: openbooks.library.umass.edu
- Lecture reference 2: www.fluke.com
- Instructor guide: preparation and assessment notes
This page combines the supplied lecture PowerPoint and speaker notes, one-page equation sheet, quiz and solution key, student workbook, instructor guide, and applicable model data. The 50-minute lecture includes the 15-minute activity. Scheduling positions in the teaching plan do not change posted course due dates.