EMBEDDED TOOL
Arduino Servo Pulse Width Calculator
Convert servo angle (0-180°) to pulse width in microseconds, and back.
Pulse width
—
Generated code
—
About this tool
Convert between a servo angle (0–180°) and the PWM pulse width in microseconds that produces it — matching the Arduino Servo library's default 544–2400µs range, or your own calibrated range if your servo's datasheet specifies different limits.
Frequently asked questions
- Why 544 and 2400 specifically?
- Those are the Arduino
Servolibrary's default min/max pulse widths forservo.write(angle)— a wider range than the "standard RC" 1000–2000µs, giving many servos a bit more travel at the extremes. Your specific servo may have a narrower safe range; check its datasheet. - What if I've called
servo.attach(pin, min, max)with custom values? - Enter those same min/max values here so the angle-to-microseconds mapping matches what your sketch will actually send — the library uses whatever range you passed to
attach(). - Is the mapping linear?
- Yes — both the Servo library and this calculator treat 0° through 180° as a straight linear mapping across the min/max pulse-width range.