Which Uno R3 pins produce PWM?
On the classic Arduino Uno R3 using the ATmega328P, the pins marked with a tilde on the board are digital 3, 5, 6, 9, 10 and 11. The Arduino language function analogWrite(pin, value) uses these timer outputs to generate pulse-width modulation (PWM). It does not turn the pin into a true analog voltage output. The pin switches between logic low and logic high; changing the fraction of time spent high changes the average effect on a suitable load.
The standard analogWrite value is 0 through 255. At 0 the output is held low and at 255 it is held high; intermediate values set a duty cycle, approximately value divided by 255. For example, 128 is about half duty. This describes the proportion of each cycle spent high, not the signal’s frequency and not a calibrated DC voltage. A multimeter may display an average that depends on its measurement method and the load.
Keep this guide specific to the Uno R3 (and compatible classic ATmega328P boards only when their core and clock match). Other Arduino families use different microcontrollers, timer routing, pin mapping, resolution and API behavior. Confirm the board model and installed board package before applying a table from another product.

Default frequency on the classic Uno R3
Arduino’s current reference lists the six Uno R3 PWM pins at approximately 490 Hz, except pins 5 and 6 at approximately 980 Hz. “Approximately” matters: the clock, timer mode and prescaler set the actual rate, so measured values are near these nominal figures rather than perfect integers. On the ATmega328P, pins share hardware timers in pairs: pins 5/6 use Timer0, 9/10 use Timer1, and 3/11 use Timer2.
| Uno R3 pin | Timer group | Arduino default PWM rate | Practical note |
|---|---|---|---|
| D3 | Timer2 | About 490 Hz | Shares timer with D11 |
| D5 | Timer0 | About 980 Hz | Timer0 also supports timekeeping |
| D6 | Timer0 | About 980 Hz | Timer0 also supports timekeeping |
| D9 | Timer1 | About 490 Hz | Shares timer with D10 |
| D10 | Timer1 | About 490 Hz | Shares timer with D9 |
| D11 | Timer2 | About 490 Hz | Shares timer with D3 |
A timer is a shared hardware resource. Changing timer registers or using a library that reconfigures a timer can change PWM on another pin in the same group, and may change other functions. On an Uno R3, Timer0 supports the Arduino timekeeping used by millis() and delay(); modifying it can break timing assumptions. The Servo library’s timer use on the classic AVR core can also affect PWM availability on associated pins. Read the exact core and library documentation before changing timer settings.
The Arduino API reference describes analogWrite resolution and default behavior, but a particular board package or library may alter it. If a driver needs an exact PWM rate, verify the output rather than assuming every core implements analogWrite identically. High-frequency PWM also reduces available duty-cycle resolution or changes timer behavior when configured manually.
Measure frequency and duty cycle
Use an oscilloscope or logic analyzer to measure frequency. Connect the probe tip to the PWM pin and the reference to the board’s GND, then select a time base that shows several cycles. Do not attach an earth-referenced oscilloscope ground to an unknown floating power node; for a USB-connected Uno, check how the computer, supply and instrument grounds are related. A logic analyzer must also accept the board’s logic voltage.
Frequency is the inverse of period: if one repeated cycle spans about 2.04 ms, the frequency is about 1/0.00204, or 490 Hz. Duty cycle is high time divided by the full period. A 1.02 ms high interval in a 2.04 ms cycle is 50%. Measure at the pin with a light, appropriate test load; a large capacitive or inductive load can distort edges or make the board unsafe.
A multimeter in DC-voltage mode can sometimes show an average related to duty cycle for a steady logic signal, but it cannot tell you the PWM frequency reliably and the reading depends on the meter. Use a scope for edges, ringing, missing pulses, actual period and duty. Check the voltage at the receiving device too: cable drops, common-ground offsets and input thresholds affect what the load sees.

Interpret an unexpected signal
- Read the silkscreen and board identity; confirm that it is an Uno R3 or a compatible ATmega328P implementation.
- Check the pin against the official PWM list and ensure the sketch calls analogWrite() on that pin after setting up the intended output.
- Use a simple sketch with no timer-changing libraries and a modest test load. Measure at the pin relative to board GND.
- Compare the measured frequency with the default table and inspect duty separately. A steady low or high output can be a valid 0 or 255 setting.
- If the signal changed after adding a library, inspect timer ownership, board-core version and pin conflicts before rewriting timer registers.
- If the pin output is correct but the load response is wrong, inspect the driver stage, load current, wiring and logic thresholds; PWM timing alone does not prove that power reaches the load.

For a frequency-sensitive load, selecting a different PWM pin may move the signal to another timer group, but it does not guarantee a custom frequency or remove library conflicts. Changing a timer can affect paired outputs and timekeeping. Prefer a hardware peripheral or dedicated PWM driver when several independent frequencies, high resolution or stable timing are essential.
Use PWM for the intended job
PWM is useful for dimming a suitable LED through a current-limiting resistor, commanding a motor driver input, or creating a switched signal that a circuit is designed to accept. It is not a substitute for a DAC when the receiving circuit requires a low-ripple analog voltage. An RC filter can smooth PWM only when its cutoff, settling time, ripple and load impedance are designed for the application.
Do not drive a motor, relay coil or other high-current/inductive load directly from an Uno pin. Use an appropriate driver and suppression path. If the PWM output controls a MOSFET, confirm the gate drive and thermal conditions from the exact part data; see the related Electronix guide on a 3.3 V logic-level MOSFET. For motor startup resets, diagnose the power path separately rather than changing PWM frequency first.
Common questions
Is PWM on D5/D6 always exactly 980 Hz? No. Arduino documents an approximate default for the classic Uno R3; oscillator tolerance, board core and timer changes affect the measured result.
Does analogWrite(128) output 1.65 V? It outputs a digital pulse train with roughly half duty at the pin. A filtered average may be near that value under particular conditions, but the pin itself is not a DAC output.
Can I change one PWM frequency without affecting other pins? Not necessarily. Pins share timer hardware, and libraries or register changes can affect paired outputs and timing services.
Why is a PWM-capable pin not producing a waveform? The selected board/core, pin mapping, pin mode, sketch state, timer ownership or output wiring may differ. Verify the exact board and measure with a known simple sketch.
Sources
Arduino language reference: analogWrite(); Arduino UNO R3 hardware documentation; Arduino reference source for board PWM pin and frequency table; Microchip ATmega328P product documentation. Consulted 2 November 2026.
Related Electronix guides: choose a 3.3 V logic-level MOSFET and drive a DC motor with a MOSFET.
Be the first to leave a comment.