What is the maximum frequency of a pulse width modulation signal for the raspberry pi 3? Also, how fast is the software PWM, as well as the hardware PWM?

When looking at the pulse width modulation signals, what is the number of signals of the software and hardware PWM?

  • Hardware minimum: 1.14 Hz
  • Hardware maximum: 19.2 MHz

  • Software minimum and maximum: depends on the software.

Sources: Can I use the GPIO for pulse width modulation (PWM)? | Control Hardware PWM frequency

| improve this answer | |
  • Addendum: Technically, there is no minimum. You could set it high/low manually. – PNDA Nov 6 '18 at 18:14

Nobody knows the effective limits for software or hardware.

For software PWM you would have to define the number of steps between off and fully on you need for the dutycycle. Generally I'd expect a practical limit for software PWM of about 10kHz. Software PWM will suffer from jitter so it's probably okay for DC motor speed control, but little use for servos or LEDs unless you can ignore glitches.

The hardware PWM limit is down to how well your Pi was manufactured and the quality of the silicon.

The hardware pads are designed to work up to say 25MHz.

pigpio will let you set frequencies in the range 1 to 125MHz. I don't expect anything above 30MHz will actually work.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.