Robotics terminology
Encoder counts and resolution
Also called: rotary encoder · CPR · PPR · ticks per revolution · quadrature
Definition
A rotary encoder reports rotation as a count of ticks. Its resolution is the number of counts per revolution (CPR), often four times the pulses per revolution with quadrature decoding.
Picture it
Counts are a ruler wrapped around the shaft. Divide counts by CPR for revolutions, multiply by 2π for radians. Mounting the encoder on the motor side of a gearbox multiplies the effective resolution by the gear ratio.
The maths
angle = counts / CPR × 2π CPR(quadrature) = 4 × PPR wheel CPR = motor CPR × gear ratio
| Quantity | Unit | Symbol |
|---|---|---|
| angle | radian | rad |
| ratio | dimensionless | 1 |
Worked example
A 12 PPR quadrature encoder sits on a motor with a 30:1 gearbox. How many counts per wheel revolution, and what angle is one count?
- Motor CPR = 4 × 12 = 48
- Wheel CPR = 48 × 30 = 1440
- One count = 360° / 1440 = 0.25°
Answer1440 counts per wheel revolution; 0.25° per count.
✓ The 2 numbers in this answer are recomputed from scratch by an automated test.
Common misconceptions
- Misconception: PPR and CPR are not the same; check whether the datasheet counts edges or pulses.
- Misconception: Missing counts at high speed is a firmware problem (interrupts too slow), not an encoder fault.