Skip to content
Tactiverge

Robotics terminology

Hobby servo motor

Also called: servo · RC servo · 50 Hz pulse · pulse width position

Definition

A hobby servo is a motor, gearbox, position sensor and controller in one case. It moves to an angle set by the width of a pulse repeated about every 20 ms.

Picture it

Typically a 1.0 ms pulse means one end of travel, 2.0 ms the other, and 1.5 ms the middle; exact limits vary by model. The servo has its own feedback loop inside, so you command a position, not a speed.

The maths

angle ≈ (pulse − 1.0 ms) / (1.0 ms) × range (typical)
period ≈ 20 ms (50 Hz)
SI units used in this entry
QuantityUnitSymbol
timeseconds
angledegree°
frequencyhertzHz

Worked example

A servo has a 180° range mapped linearly from 1.0 ms to 2.0 ms. What pulse width gives 45°, and what duty cycle is that at 50 Hz?

  1. Pulse = 1.0 + (45 / 180) × 1.0 = 1.25 ms
  2. Period = 1 / 50 = 20 ms
  3. Duty = 1.25 / 20 = 6.25 %

Answer1.25 ms, a duty cycle of 6.25 %.

✓ The 2 numbers in this answer are recomputed from scratch by an automated test.

Common misconceptions

  • Misconception: Servo control is not ordinary PWM speed control; the pulse width encodes a position.
  • Misconception: Driving a servo past its mechanical end stops strains its gears and draws high current.