Skip to content
AkerminMeasure. Monitor. Improve. Compare Products
Learning Center

How to Check a PWM Signal with an Oscilloscope

A motor runs at the wrong speed, a fan will not slow down, an LED flickers, or a servo twitches, and the controller says it is sending PWM. The scope tells you whether that signal is really there and correct.

As an Amazon Associate, Akermin earns from qualifying purchases. Product links on this page are affiliate links.

Connect the probe tip to the PWM signal and the probe ground to the circuit’s ground, set the channel to DC coupling with a vertical scale that fits the signal’s full swing, trigger on the rising edge at about half the amplitude, and set the timebase so two or three periods fill the screen. Then read the frequency, the duty cycle (the high time divided by the period), and the high and low voltage levels, using the scope’s automatic measurements or cursors. A healthy PWM signal has a steady frequency, a duty cycle that changes when you change the command, clean levels close to the supply rails, and sharp edges without heavy ringing.

What you are looking at

Pulse-width modulation switches a signal fully on and fully off at a fixed rate, and varies how long it stays on in each cycle. The average voltage, and therefore the power delivered to a motor, heater or LED, follows the proportion of time it is on. That proportion is the duty cycle.

  • Period is the time for one full on-plus-off cycle.
  • Frequency is 1 divided by the period.
  • Duty cycle is the on time divided by the period, as a percentage.
  • Average voltage into a resistive load is approximately duty cycle times the high voltage.

Worked example: a signal with a 50 microsecond period has a frequency of 20 kHz. If it is high for 12.5 microseconds, duty cycle is 12.5 / 50 = 25 percent. Switching a 12 V supply, the average is about 0.25 x 12 = 3 V. A multimeter on DC volts would show roughly that 3 V and tell you nothing else, which is why the scope is the right tool here; see our multimeter vs oscilloscope comparison for more on that difference.

Typical PWM signals and what to expect

Application Typical frequency What changes
Hobby servo control About 50 Hz Pulse width, usually around 1 to 2 ms, sets position
4-pin computer fan control About 25 kHz Duty cycle sets speed
LED dimming Hundreds of Hz to tens of kHz Duty cycle sets brightness; low frequencies can flicker on camera
DC motor drivers A few kHz to tens of kHz Duty cycle sets speed or torque
Switch-mode power supplies Tens of kHz to MHz Duty cycle adjusts constantly to regulate output
Microcontroller test outputs Whatever the firmware sets Check against the code

Knowing the expected frequency lets you set the timebase quickly and spot an obvious configuration error, such as a timer prescaler set wrong.

Setting up the scope, step by step

  1. Ground first. Clip the probe ground to the ground of the circuit that generates the PWM, as close as possible to the signal point. For signals above a few hundred kHz, use the short ground spring instead of the long clip lead to reduce ringing on the display.
  2. Probe the signal. Use a 10x probe and set the channel’s probe setting to 10x so the voltages read correctly. Compensate the probe on the scope’s calibration output first, or square edges will look rounded or overshot.
  3. DC coupling. AC coupling shifts the trace so the average sits at zero, which hides the true low and high levels and distorts low-frequency PWM. Use DC.
  4. Vertical scale. For a 5 V logic PWM, 1 or 2 V per division. For 12 V, around 2 or 5 V per division. The whole swing should fit with a little margin.
  5. Timebase. Set it so two or three periods fill the screen. For 20 kHz, period 50 microseconds, use about 10 or 20 microseconds per division.
  6. Trigger. Edge trigger, rising slope, level about halfway between low and high. The trace should stop rolling and sit still.
  7. Measure. Turn on automatic measurements for frequency, positive duty cycle, positive pulse width, maximum, minimum and rise time. Or place time cursors on consecutive rising edges for the period and on rising and falling edges for the on time.
  8. Change the command. Adjust the speed or brightness input and watch the duty cycle change. That is the real functional test.

A compact scope such as the FNIRSI 2C53P 50MHz oscilloscope is plenty for logic-level, fan and motor PWM in the kilohertz range.

Faults the waveform reveals

What you see Likely cause Next check
Flat line at 0 V No output, disabled driver, wrong pin Enable signals, firmware, pin mapping
Flat line at the high level Stuck at 100 percent duty, or a pull-up with no driver Command value, open driver output
High level well below supply Overloaded output, missing pull-up, weak driver Load current, pull-up resistor value
Low level well above 0 V Poor ground or output transistor not saturating Ground connection, driver stage
Slow, rounded edges Heavy capacitance, weak drive, probe on 1x Probe setting, gate drive, cable length
Large overshoot and ringing Long ground lead, wiring inductance Use ground spring; check layout
Frequency wrong Clock or timer setting error Firmware timer configuration
Jitter or missing pulses Software timing, interrupts, noise on input Use a hardware timer; check supply noise

To judge whether edges are really slow or whether your scope is too slow to show them, use the rule of thumb that a scope’s own rise time is about 0.35 divided by its bandwidth. A 50 MHz scope has a rise time of about 7 nanoseconds, so it will show edges of tens of nanoseconds faithfully but will understate anything faster. More on choosing between instruments is in oscilloscope vs digital multimeter.

Measuring the motor or load side safely

Logic-level PWM is easy to probe because it shares ground with the controller. The power side of a driver is different. In a high-side switch or an H-bridge, the node you want to look at may not be referenced to ground, and connecting a normal scope probe’s ground clip to it can short the circuit through the scope’s earth connection, damaging the driver, the probe or the scope.

  • For floating or high-side nodes, use a differential probe, or measure two points with two channels referenced to ground and display the difference with the math function, provided both points are within the probe’s rating.
  • On inductive loads such as motors and solenoids, expect voltage spikes at each switch-off. Check the probe’s voltage rating covers them.
  • Anything connected to mains, including mains-powered motor drives and variable frequency drives, carries lethal voltage and energy. Do not probe these with a ground-referenced bench scope; use isolated, CAT-rated equipment and appropriate training, or leave it to a qualified technician.

Confirming the fix

Once the waveform looks right, sweep the command input from minimum to maximum and confirm the duty cycle follows smoothly across the range, with frequency staying constant. Check at the controller output and again at the load connector; a difference between the two points to wiring, connectors or a driver stage problem in between. Finally, run the load at normal operating temperature for a few minutes and capture the waveform again. A signal that degrades as things warm up often points to a marginal driver or a failing component.

Capture minimum, middle and maximum

Set the controller to its lowest, middle and highest command in turn, and save a screenshot of the PWM at each, with frequency and duty cycle measurements on screen. Those three captures prove whether the controller is producing the right signal, and they give you a reference to compare against if the load misbehaves again.

Frequently Asked Questions

Can I measure PWM duty cycle with a multimeter?

Some multimeters have a duty cycle function that works on clean, low-frequency signals. They cannot show edge quality, ringing or missing pulses, so an oscilloscope is the reliable tool for diagnosing problems.

Why does my PWM signal look rounded on the scope?

The probe may be set to 1x, which limits bandwidth heavily, or it may need compensating. If neither fixes it, the circuit itself may be driving a large capacitance, such as a MOSFET gate, with a weak driver.

Should I use AC or DC coupling for PWM?

Use DC coupling. AC coupling removes the average level, which hides the true high and low voltages and makes the waveform sag on low-frequency or low duty cycle signals.

How do I calculate duty cycle from the scope screen?

Measure the time the signal is high and the time between two consecutive rising edges, then divide the high time by the period and multiply by 100. For example, 2 ms high in a 10 ms period is 20 percent.

What bandwidth oscilloscope do I need for PWM?

For PWM up to tens of kilohertz, almost any digital scope is enough to read frequency and duty cycle. To see fast switching edges accurately, the scope's bandwidth should be several times higher than the frequency content of those edges.