T

Trinnovate

Pioneering Robotics & AI Solutions for Defence & Industrial Automation

Loading innovation...

trinnovate-logo-black
← Back to Tools

Timer / PWM Calculator

Compute prescaler and auto-reload (period) values for STM32, Arduino AVR, and ESP32 timers to hit your target PWM or servo frequency.

Inputs

Result

Prescaler

24

Auto-Reload / Period

59999

Achieved Frequency

50.0000 Hz

Clock: 72 MHz · Target: 50 Hz

Typical Robotics Uses

  • 50 Hz servo control (RC PWM)
  • 400-500 Hz ESC control for drones
  • 1-20 kHz motor PWM for BLDC/Brushed drivers

Notes

  • For STM32: ARR = period, PSC = prescaler - 1
  • For AVR: prescaler must be one of the hardware options
  • Always verify timer base clock after PLL/dividers