ESE 123 · Laboratory 5 · TA walkthrough

Capacitors & the Oscilloscope

A step-by-step visual guide to what you do in Lab 5 and why you see what you see: reading the scope three ways, sweeping a capacitor filter from 3 kHz down to 1 Hz, building the board, and checking DC voltages with the DMM. Every screen below is a live simulation of the lab circuit, so you can predict your readings before you take them.

Handout steps 1–6

1 · Reading the scope screen by counting boxes

The screen is a grid: 10 divisions across (time) and 8 divisions tall (voltage). Every reading starts from two knob settings: volts per division (vertical) and time per division (horizontal). Counting boxes means: value = number of boxes × setting. Change the knobs below and watch the same 900 Hz wave get taller, shorter, wider or narrower. The signal never changes; only your view of it does.

CH1 1.00 V/div200 µs/divSine 900 Hz

Each box has 5 small tick marks, so by eye you can read to about ±0.1–0.2 of a box. That is why counting boxes is the least precise of the three methods.

Why the scope reads 2 V rms when you asked for 1 V rms

50 Ω inside our circuit≈155 kΩ generator: 2 V rms open-circuit

The generator assumes a 50 Ω load and splits its voltage half-and-half with its own 50 Ω. Our circuit is about 155 kΩ, so almost nothing is lost inside and you see the full open-circuit voltage: 2 × 1 V rms = 2 V rms ≈ 5.66 Vpp.

The numbers to expect at top

Vrms
≈ 2.00 V
Vpeak
2 × √2 ≈ 2.83 V
Vpp
2 × 2.83 ≈ 5.66 V
Period
1 / 900 Hz ≈ 1.111 ms

Good settings: 1 V/div shows 5.7 boxes tall; 200 µs/div shows 5.6 boxes per period.

Handout steps 5–8.7

2 · Three ways to measure the same wave

You measure Vpp, period and frequency three times. The answers should agree within a few percent; what changes is how precise and how fast each method is. Pick a method to watch it work.

CH1 1.00 V/div200 µs/divCounting boxes

What goes in your Question 1 table, and why the columns differ

Counting boxesCursorsAutomatic
Vpp≈ 5.6 V≈ 5.66 V≈ 5.66 V
Period≈ 1.12 ms≈ 1.111 ms≈ 1.111 ms
Frequency≈ 893 Hz (calculated)≈ 900 Hz (1/ΔX)≈ 900 Hz
Limited byyour eye, ±0.2 boxwhere you park the cursorwhat is on screen (needs ≥1 full cycle)

These are ideal values; yours will differ slightly. The scope itself is only ±2% accurate in voltage, so a DMM is better for precise DC, but the scope shows the shape, timing and phase that a DMM cannot.

CH1

Why “N Cycles” matters: Avg-FS vs Avg-Cyc

A sine wave averages to zero over whole cycles. If the screen shows 2.5 cycles, the full-screen average also counts the leftover half cycle (orange) and comes out wrong. The N Cycles version uses only whole cycles. Slide to change how many cycles fit on screen.

Same idea for AC RMS – N Cycles in step 8.7: it ignores the partial cycle at the edge of the screen.

Pre-lab 5 · the physics behind steps 9–21

3 · What a capacitor does to a sine wave

A capacitor stores charge. Pushing charge in takes time, so how a capacitor behaves depends on how fast the voltage is changing, which is the frequency. Its “AC resistance” is called reactance:

XC = 1 / (2π · f · C)
XC of selected capacitorR1 = 150 kΩ

What the formula tells you

  • f is in the bottom: double the frequency and XC halves. On the log plot that is a straight line sloping down.
  • DC (f = 0): XC is infinite, so a capacitor blocks DC like an open switch.
  • High f: XC gets tiny, so a capacitor passes fast signals like a plain wire.
  • C is in the bottom too: a bigger capacitor is a “wire” at lower frequencies. That is why 470 µF handles slow power dips and 100 nF handles fast ones.
  • Crossover: where XC = R, so f = 1/(2πRC). For 150 kΩ and 100 nF that is about 10.6 Hz. Remember this number for Section 4.
V1 (source)V across C1

Watch it charge: the pre-lab RC circuit

R1 = 1 kΩ and C1 = 1 µF, so the time constant τ = RC = 1 ms. Compare it with the period T of the sine.

Handout steps 9–21

4 · Sweeping the filter from 3 kHz down to 1 Hz

This is the circuit you build on the plugboard. CH1 (yellow) watches top, which is the generator and stays constant. CH2 (green) watches mid, the voltage across R2. Pick each frequency from the handout, then try Autoscale. Below about 20 Hz it stops helping and you set the knobs yourself, exactly like in the lab.

topmid R1150 kΩ C1100 nF R24.75 kΩ generator CH1 ▸ topCH2 ▸ mid

Question 2 shape: Vmid (rms) vs frequency

Question 3 shape: phase vs frequency

Dots mark the handout frequencies; the ring is where you are now. Use a log frequency axis in Google Sheets, otherwise everything below 1 kHz is squashed into the left edge (same lesson as pre-lab step 11).

At 3 kHz: Vmid ≈ Vtop, phase ≈ 0°

XC is only about 530 Ω, far smaller than R1’s 150 kΩ, so current takes the capacitor like a shortcut. R1 and C1 together act like a wire and mid is almost the same as top.

At 1 Hz: Vmid is tiny, about 61 mV rms

XC ≈ 1.6 MΩ, so the capacitor is nearly an open switch. Only R1 and R2 remain: a plain voltage divider, 2 V × 4.75k / 154.75k ≈ 0.061 V. That is why CH2 needs a much smaller V/div.

In between: the phase bump

Current through a capacitor peaks when the voltage is changing fastest, a quarter cycle early. When the capacitor carries part of the current, mid rises before top does. The lead is largest around 60 Hz (≈70°) and fades at both ends, where one path (R1 or C1) takes over.

The sign on the phase readout

Physically, mid leads top. The handout says the scope shows this as a negative number: channel 2 arrives earlier than channel 1. Record the sign exactly as the scope shows it and say so in your plot.

Why Autoscale gives up below ~20 Hz

Autoscale hunts for repeating edges to trigger on, and it wants to see several of them quickly. At 3 Hz one cycle takes 0.33 s, so it cannot find a stable picture. Set it yourself: time/div ≈ (cycles you want × period) / 10, and pick V/div so the wave fills about 6 boxes.

Why the scope gets sluggish at 1 Hz

To show 3 cycles of a 1 Hz wave the screen spans 3 seconds, so each new picture takes 3 seconds to draw. Watch the trace crawl across the screen above. Wait for at least one full cycle before reading any measurement.

Theory check for each handout frequency

Calculated for an ideal circuit with 2.00 V rms at top. Real parts are ±1% (resistors) and up to ±10% (capacitor), so expect a few percent difference, most of it near the corner.

Handout steps 22–35

5 · Building the circuit board, part by part

You tear down the plugboard and solder the same parts, plus power-supply parts, onto your PCB. Pick a part to see how to recognise it, where it goes, which way round, and what it is for.

load current pulsessupply voltage at the chip

Why bypass capacitors (steps 27–31)

The microcontroller and LEDs draw current in short bursts. The power adapter is slow to react, so without help the voltage at the chip dips on every burst. Capacitors next to the chip are small local energy tanks that cover each burst until the supply catches up.

Illustration only, not to scale. 100 nF covers the fastest spikes, 10 µF and 470 µF cover longer dips, and the ferrite bead L1 blocks high-frequency noise from the digital side reaching the analog supply.

Decode a capacitor marking

Three digits: first two are the value, third is how many zeros to add, in picofarads. So 104 = 10 + 0000 pF = 100 000 pF = 100 nF.

Handout steps 36–44 · Question 4

6 · Powering up and measuring DC with the DMM

Procedure

  1. Fixture in front of you, text right side up. Board with ATmega4809 text right side up.
  2. Two steel pins go through the board holes; slide it down level until J2 (3 pins) mates. If it resists, stop and ask a TA.
  3. Plug the adapter into the fixture barrel jack, then into the bench strip. Press the right side of the switch; the fixture LED lights.
  4. DMM on DC volts. Black lead on ground (screw hole or wire loop), red on AVDD. Expect 5 V ± 0.25 V.
  5. Red lead on TP2. Record it.
  6. Switch off, remove the board, unplug the adapter.

Why the DMM here and not the scope: these are steady DC values and the DMM is far more accurate than the scope’s ±2%.

The voltage divider R6 / R7

AVDD R6 59 kΩ R7 150 kΩ TP2 → microcontroller C9 1 nF GND

Check your board’s schematic for which resistor connects to AVDD before you hand in Question 4. The formula is the same either way: VTP2 = AVDD × Rbottom / (Rtop + Rbottom). The 4.3 V limit is the microcontroller’s internal reference; TP2 must stay below it.

Keep this open during the lab

7 · Formula sheet: what, when, and an example