Arduino PWM Frequency Calculator

Arduino PWM Frequency Calculator

Default 16 MHz for standard Arduino boards. Use 8000000 for 8 MHz boards.

Enter the target output frequency in Hz. Typical ranges: 50 Hz (servo), 490–980 Hz (default), 20 kHz (motor).

Configure Your PWM Settings

Select a board, timer, PWM mode, and desired frequency above. The calculator will instantly compute the optimal prescaler, register values, and generate Arduino C++ code.