Skip to content

Oscilloscope basics

By the end of this lesson you will:

  1. Set timebase, volts/div and trigger to get a stable trace on screen
  2. Explain why the probe’s ground lead must connect to the circuit’s ground and be as short as possible
  3. Explain what an oscilloscope shows that a logic analyzer cannot
  • An oscilloscope (a lab bench model, or a USB one — either works), with a 10× probe and the ground spring that came with it, if available
  • A TESAIoT Dev Kit flashed with the QWA309 Header I/O Test example — we use the PWM Out button as our signal source
  • If using the Eva Kit, use any pin where you generate a square wave with your own program
  • Read the first few pages of your instrument’s manual, and find its bandwidth (MHz), maximum sample rate, and the location of its probe compensation test terminal

Safety. Most bench oscilloscopes connect the probe’s ground clip straight to the power plug’s earth pin. If you clip the ground lead onto a point that is not the circuit’s ground, that point is instantly shorted to earth through the probe’s cable. This course only measures low-voltage circuits sharing the same ground as the board. Never use an ordinary probe on mains circuits or floating-ground circuits — that work needs a differential probe and specific training.

Connect the probe to pin P13.3, connect ground to GND, then press PWM Out without setting anything at all yet (or press Auto Set, if your instrument has one). The trace will very likely run around, sit as a flat line, or show only a blurry band — even though the real signal is a plain 25 Hz square wave.

An oscilloscope does not “know” what we want to look at. We must tell it three things: how wide a time window to show, which voltage range to show, and when to start drawing. These three things are this lesson’s content.

1. The screen, channels, and three main controls

Section titled “1. The screen, channels, and three main controls”
0 V 3.3 V 10 ms/div · 1 V/div · trigger ↑ 1.65 V
Most screens are divided into 10 horizontal divisions (time) and 8 vertical divisions (voltage). This example is set to 10 ms/div, so the whole screen shows 100 ms, and a 40 ms-period wave shows about two and a half cycles.

Most screens divide into 10 horizontal divisions (time) and 8 vertical divisions (voltage). The word “div” means one such square.

Timebase (s/div) is the time per horizontal division. The whole screen shows 10 × s/div.

Wanting to see about two to three cycles of a 40 ms-period signal → need about 100 ms across the whole screen → 10 ms/div
Wanting to see one whole UART byte at 115200 (86.8 µs) → need about 100 µs → 10 µs/div

Available settings usually follow a 1-2-5 sequence (1, 2, 5, 10, 20, 50 …) — pick the smallest value that still shows everything you need.

Volts/div (V/div) is the voltage per vertical division. Set it so the signal fills roughly half to almost the whole screen.

A 0 to 3.3 V signal at 1 V/div is 3.3 divisions tall; at 0.5 V/div it is 6.6 divisions tall (you must move the 0 V line down near the bottom edge)

Set the probe attenuation in the channel menu to match the switch on the probe itself (1× or 10×). If they do not match, the numbers on screen will be off by a factor of ten.

Coupling. DC coupling shows the full real voltage; AC coupling removes the DC part, leaving only what changes. To see a small ripple on a 3.3 V rail, use AC coupling at 20 mV/div — with DC coupling at 20 mV/div, the trace would simply run off the screen.

An oscilloscope redraws its trace many times per second. If each redraw starts at a different point on the wave, the trace runs. Trigger tells every redraw to start at the same point.

  • Source: which channel decides (the channel carrying the signal)
  • Slope: rising edge or falling edge
  • Level: the voltage counted as the starting point — it must fall within the signal’s swing; the middle of the range is safest, e.g. 1.65 V for 3.3 V logic
  • Mode:
    • Auto draws a trace always, even without finding a trigger — good for finding a signal for the first time
    • Normal redraws only when it finds a trigger, holding the last trace when the signal stops — good for a signal that comes in bursts, like PWM Out, which only runs for about 2 s
    • Single captures once, then stops — good for a one-time event, such as a single button press’s bounce

If the trace runs, check in order: is the source on the right channel, is the level within the signal’s range, and does the mode fit the signal’s behaviour.

3. Probes, ground, and what a logic analyzer cannot see

Section titled “3. Probes, ground, and what a logic analyzer cannot see”

A 10× probe attenuates the signal by ten, in exchange for high input resistance (typically 10 MΩ) and low capacitance (tens of pF), so it disturbs the circuit less than a 1× probe. Before use, it needs compensation: connect the probe to the instrument’s test terminal (usually a roughly 1 kHz square wave), then turn the small adjuster on the probe until the top of the wave is exactly flat — neither peaked nor rounded.

The ground lead must connect to the circuit’s ground. The probe tip measures voltage relative to the ground clip, and a bench instrument’s ground clip is connected to earth through the power plug. A board plugged into a computer that is itself plugged into a three-pin socket usually has its ground connected to earth too. Clipping the ground onto the 3V3 pin is the same as shorting 3V3 straight to ground.

The ground lead must be short.

board probe GND clip long ground lead = big loop board probe GND spring short ground spring = small loop
Left: a probe's long ground lead and its tip enclose a large loop, acting as an inductor and an antenna. Right: a short ground spring touching ground right next to the point being measured makes a small loop, so the edge shown matches reality far more closely.

A probe’s long ground lead and its tip enclose a loop. That loop has inductance (a rough rule is about 1 nH per millimetre of wire), and paired with the probe’s own capacitance, it becomes a resonant circuit.

f = 1 / (2π √(L × C))
A 15 cm ground lead ≈ 150 nH, with a 15 pF probe → f = 1 / (2π √(150 nH × 15 pF)) ≈ 106 MHz
A 1 cm ground spring ≈ 10 nH, with a 15 pF probe → f ≈ 411 MHz

Any edge fast enough excites this loop into ringing, so we see oscillation around 100 MHz at the edge that does not exist on the board at all — it is caused by our own way of measuring. A ground spring pushes this frequency higher than most instruments’ bandwidth, and its small loop also picks up less ambient noise.

Bandwidth and rise time. An instrument cannot show an edge faster than its own capability. A rule of thumb is t_r ≈ 0.35 / BW. A 100 MHz instrument shows an edge no faster than about 3.5 ns. If the real edge is 5 ns, you would see about √(5² + 3.5²) = 6.1 ns.

An oscilloscope versus a logic analyzer

Question Which instrument answers it
What is the real voltage of level 1? Is there overshoot or ringing? Oscilloscope
Is I2C’s rising edge slow because the pull-up is too large? Does level 0 reach V_OL? Oscilloscope
How much does the supply rail ripple? Are there spikes when a load switches? Oscilloscope
Analogue signals, such as a knob’s voltage or audio Oscilloscope
The event sequence of 8 to 16 pins together, over many seconds Logic analyzer
Decoding a long I2C or UART capture Logic analyzer (many scopes can too, but usually capture for less time)

The two instruments do not replace each other. A logic analyzer answers “what happened, and when.” An oscilloscope answers “what does the signal actually look like.”

Problem: set up the instrument to get a stable trace of the PWM Out signal (P13.3, 0 to 3.3 V, about 25 Hz, running about 2 s per press), then measure its voltage and period.

  1. Probe. Set the switch to 10×, set the channel menu to 10×, and compensate the probe against the test terminal first.
  2. Connect. Ground clip (or ground spring) at the header’s GND, as close to P13.3 as possible; probe tip at P13.3.
  3. Vertical. DC coupling, 1 V/div, move the 0 V line to the second division from the bottom — the signal will be 3.3 divisions tall.
  4. Horizontal. The period is 40 ms; wanting about two and a half cycles → 10 ms/div (100 ms across the whole screen).
  5. Trigger. Source channel 1, rising edge, level 1.65 V, mode Normal, because the signal comes in a burst.
  6. Press PWM Out. The trace stands still while the signal runs, and holds the last trace once the signal stops.
  7. Measure. Use the cursors or the automatic measurement function to read the peak voltage (should be close to the 3V3 voltage measured with a multimeter), the period, and the frequency.
  8. Zoom the edge. Set the trigger to Single, change the timebase to nanosecond scale appropriate for your instrument’s bandwidth (e.g. 10 ns/div), press PWM Out again, and look at the shape of the first rising edge.
  1. You want to see a 1 kHz wave, at least two full cycles, on a 10-division screen. What timebase should you use (from the 1-2-5 series)?
  2. A 0 to 5 V signal should be at least half the screen tall (4 divisions) without overflowing the 8-division screen. What volts/div should you use?
  3. A probe’s switch is set to 10×, but the instrument’s channel menu is set to 1×. Measuring a 3.3 V signal, what will it read?
  4. An instrument with 50 MHz bandwidth shows a rise time no faster than about how much?
  5. A ground loop has 100 nH of inductance, and the probe has 10 pF of capacitance. At about what frequency will you see ringing?
  6. Match each question to the right instrument: (a) decoding a 5 s I2C capture (b) does SCL ring after its falling edge? (c) how much does the 3V3 rail ripple? (d) do 12 pins of a parallel bus change in the right order?
  1. Two cycles is 2 ms; you need exactly 0.2 ms per division (2 ms across the whole screen). For extra margin, use 0.5 ms/div to see 5 cycles.
  2. 1 V/div makes the signal 5 divisions tall (0.5 V/div would be 10 divisions, overflowing; 2 V/div would be only 2.5 divisions).
  3. The probe attenuates by ten, but the instrument does not multiply it back, so it reads about 0.33 V.
  4. 0.35 / 50 MHz = 7 ns.
  5. f = 1 / (2π √(100 nH × 10 pF)) ≈ 159 MHz.
  6. (a) logic analyzer (b) oscilloscope (c) oscilloscope (AC coupling) (d) logic analyzer

Answer at least 4 of the 5 questions in quiz.yaml correctly.

  1. Compensate the probe. Connect it to the instrument’s test terminal, adjust until the top of the wave is exactly flat, and photograph the screen three times (under-compensated, correct, and over-compensated).
  2. A stable trace. Follow steps 1 through 7 of the worked example, and record the values in the table.
  3. Deliberately make the trace run. Set the level to 5 V (outside the signal’s range), or change the source to a channel with no signal. See what happens in Auto and Normal modes, then set it back.
  4. Long ground versus short ground. Zoom in on the rising edge in Single mode. Measure first with the long ground clip lead that came with the probe, then measure again with a ground spring (or the shortest ground lead you can manage) touching GND right next to the point being measured. Record the overshoot size and ringing frequency for both.
  5. Work backwards. Using the measured ringing frequency and the probe’s capacitance from the manual, find the ground loop’s inductance, L = 1 / ((2π f)² × C). For example, ringing at 80 MHz with a 15 pF probe gives L ≈ 264 nH; compare this against your ground lead’s length using the rule of thumb of 1 nH per millimetre. If the ringing is too fast for your instrument’s bandwidth to show, record that your instrument cannot tell this apart, and explain why.
  6. Supply rail. Measure the 3V3 pin with AC coupling, 20 mV/div, timebase 1 ms/div. Record the peak-to-peak ripple voltage. Try turning the 20 MHz bandwidth limiter on and off (if your instrument has one), and compare.
Measurement Result
P13.3’s level-1 voltage
Period and frequency
Overshoot with the long ground lead
Overshoot with the short ground
Ringing frequency with the long ground lead, and the calculated L
3V3’s ripple voltage (peak to peak)

The next lesson, Measuring PWM, uses both the oscilloscope and the logic analyzer to measure period and duty cycle, and compares them against what the program commanded, to see whether they really match.

In lab step 4, which picture would you trust as the signal’s true shape on the board, and how would you explain your reasoning to someone who only ever uses a long ground lead?

Review questions

Answer on your own first, then open the answer.

  1. A signal has a 40 ms period. To see about two to three periods on a 10-division screen, which timebase? (Objective 1)

    1. 1 ms/div
    2. 10 ms/div
    3. 100 ms/div
    4. 40 ms/div
    Show answer

    Answer: B. 10 ms/div

    10 ms/div ทำให้ทั้งจอเห็น 100 ms คือ 2.5 คาบเวลา ที่ 1 ms/div เห็นแค่ 10 ms ไม่ถึงคาบเวลาเดียว ที่ 100 ms/div เห็น 25 คาบเวลาจนแน่นเกินไป

  2. A 0–3.3 V logic trace keeps rolling with the trigger level at 5 V. What should you fix? (Objective 1)

    1. เพิ่ม volts/div
    2. ตั้ง trigger level ให้อยู่ในช่วงที่สัญญาณแกว่ง เช่น 1.65 V
    3. เปลี่ยนเป็น AC coupling
    4. เปลี่ยนโพรบเป็น 1×
    Show answer

    Answer: B. ตั้ง trigger level ให้อยู่ในช่วงที่สัญญาณแกว่ง เช่น 1.65 V

    สัญญาณไม่เคยข้าม 5 V เงื่อนไข trigger จึงไม่เคยเป็นจริง ในโหมด Auto เครื่องวาดภาพไปเรื่อย ๆ โดยไม่มีจุดเริ่มร่วมกัน ภาพจึงวิ่ง ตั้ง level กลางช่วงสัญญาณแล้วภาพจะนิ่ง

  3. Why must you never clip a bench scope's probe ground to the 3V3 pin of a board plugged into a computer by USB? (Objective 2)

    1. เพราะจะอ่านค่าติดลบ
    2. เพราะปากคีบกราวด์ต่อลงดินผ่านปลั๊กไฟ และกราวด์ของบอร์ดก็มักต่อลงดินผ่านคอมพิวเตอร์ จึงเท่ากับลัดวงจร 3V3 ลงกราวด์
    3. เพราะโพรบ 10× รับแรงดัน 3.3 V ไม่ได้
    4. ไม่มีปัญหา ถ้าตั้ง AC coupling
    Show answer

    Answer: B. เพราะปากคีบกราวด์ต่อลงดินผ่านปลั๊กไฟ และกราวด์ของบอร์ดก็มักต่อลงดินผ่านคอมพิวเตอร์ จึงเท่ากับลัดวงจร 3V3 ลงกราวด์

    ปากคีบกราวด์ไม่ได้ลอย มันต่อกับสายดินของเครื่อง ถ้ากราวด์ของบอร์ดต่อลงดินด้วย ปากคีบที่ขา 3V3 คือสายลัดวงจร ต้องหนีบที่กราวด์ของวงจรเท่านั้น

  4. Using a 15 cm ground lead on a fast edge, you see about 100 MHz ringing. What is the most likely cause? (Objective 2)

    1. บอร์ดมีสัญญาณรบกวนความถี่วิทยุ
    2. ความเหนี่ยวนำของลูปสายกราวด์ร่วมกับความจุของโพรบเกิดเรโซแนนซ์ ซึ่งเป็นผลจากวิธีวัด
    3. โพรบชำรุด
    4. timebase ตั้งเร็วเกินไป
    Show answer

    Answer: B. ความเหนี่ยวนำของลูปสายกราวด์ร่วมกับความจุของโพรบเกิดเรโซแนนซ์ ซึ่งเป็นผลจากวิธีวัด

    สายกราวด์ 15 cm มีความเหนี่ยวนำราว 150 nH กับโพรบราว 15 pF เรโซแนนซ์ราว 106 MHz ใช้สปริงกราวด์สั้นแล้ววัดซ้ำ ถ้าการสั่นหายไปก็เป็นผลจากวิธีวัด

  5. Which information does an oscilloscope give that a typical logic analyzer cannot? (choose all that apply) (Objective 3)

    1. แรงดันจริงของระดับ 1 และระดับ 0
    2. ขอบเกิน (overshoot) และการสั่นที่ขอบ
    3. ลำดับการเปลี่ยนของ 16 ขาพร้อมกันนานหลายวินาที
    4. ขอบขาขึ้นที่ช้าเพราะ pull-up ของ I2C ใหญ่เกินไป
    Show answer

    Answer: A. แรงดันจริงของระดับ 1 และระดับ 0 · B. ขอบเกิน (overshoot) และการสั่นที่ขอบ · D. ขอบขาขึ้นที่ช้าเพราะ pull-up ของ I2C ใหญ่เกินไป

    logic analyzer เก็บแค่ว่าสูงหรือต่ำกว่าเกณฑ์ จึงไม่เห็นแรงดันจริงหรือรูปร่างของขอบ ส่วนการดูหลายขาพร้อมกันนาน ๆ เป็นจุดแข็งของ logic analyzer

Cite this lesson

If you teach from this lesson or reuse it in slides or documents, credit it with the text below. If you changed it, add (adapted) after the title.

"Oscilloscope basics" from TESA Open Knowledge by the Thai Embedded Systems Association (TESA), https://github.com/tesaiot/tesa-qualification-program, licensed under CC BY-NC 4.0

Thai attribution: "ออสซิลโลสโคปเบื้องต้น" จาก TESA Open Knowledge โดยสมาคมสมองกลฝังตัวไทย (Thai Embedded Systems Association: TESA) https://github.com/tesaiot/tesa-qualification-program สัญญาอนุญาต CC BY-NC 4.0

Lesson link: https://tesaiot.github.io/tesa-qualification-program/en/courses/electronics-and-instruments/m05-oscilloscope/l01-scope-basics/

Full guide: how to cite TESA

TESA Open Knowledge · © 2026 สมาคมสมองกลฝังตัวไทย (TESA) · CC BY-NC 4.0

Content is licensed CC BY-NC 4.0. Reuse it non-commercially and credit the Thai Embedded Systems Association (TESA) every time. · How to cite TESA