Encoder Resolution Calculator
Calculate encoder counts per revolution, angular resolution, and maximum frequency for quadrature and single-channel encoders.
×4 quadrature decoding · counts through the gear reductionAPI slug encoder-resolution
Results
LiveCounts/Output Rev 4 000 counts
- Counts/Motor RevCPR
- 4 000counts
- Angular Resolutionθ/count
- 0.09°/count
- Max Pulse Frequencyfmax
- 50kHz
Counts/Output Rev against Pulses Per Revolution (PPR)
Drag the operating point or type a value.
Formula
| Symbol | Quantity | Your value |
|---|---|---|
| PPR | Pulses per revolution (pulses) | 1 000 pulses |
| CPR | Counts per revolution (×4 for quadrature) (counts) | 4 000 counts |
Assumptions
5 items
- 01Quadrature decoding counts every edge of both channels, four counts per line; single-channel counting gives one count per line.
- 02The encoder is on the motor shaft and the gear ratio, motor revolutions per output revolution, multiplies the counts per output revolution.
- 03Backlash and gear transmission error are not included, so counts at the output are resolution, not accuracy.
- 04Angular resolution is 360° over counts per output revolution; encoder eccentricity and interpolation error are not modelled.
- 05Maximum frequency is the per-channel line rate at maximum motor speed, RPM/60 × PPR; a ×4 decoder counts four times that rate.
Worked example
Indexing table, 100:1 harmonic drive
A rotary indexing table driven through a 100:1 harmonic drive needs ±0.05° positioning. The motor runs up to 3 000 RPM and carries a 100 PPR encoder decoded in quadrature.
| Step | Expression | Result |
|---|---|---|
| Counts per motor revolution | 100 × 4 | 400 counts |
| Counts per table revolution | 400 × 100 | 40 000 counts |
| Angular resolution | 360 / 40 000 | 0.009 °/count |
| Line frequency at 3 000 RPM | 3 000 / 60 × 100 | 5 kHz |
| Decoder count rate | 5 kHz × 4 | 20 kHz |
How it works
This calculator determines encoder resolution and positioning accuracy from pulses per revolution, quadrature decoding, and gear ratio parameters. Motion control engineers, CNC developers, and robotics programmers use it to verify that encoder selection meets positioning requirements. Inadequate encoder resolution causes positioning errors; excessive resolution wastes cost and increases data processing overhead.
Per encoder fundamentals (Sick Stegmann application guide) and IEC 61800-7-1 (Adjustable speed electrical power drive systems — Generic interface and use of profiles), incremental encoders output PPR pulses per revolution on each of two quadrature channels (A and B) offset by 90°. Encoder resolution and accuracy specifications for motor control applications follow NEMA MG-1-2021 (Motors and Generators) Part 30 (Application Considerations for Constant Speed Motors Used on a Sinusoidal Bus with Harmonic Content and General Purpose Drives) and IEC 60034-1 (Rotating electrical machines — Rating and performance). Quadrature decoding counts all four edges (rising/falling on both channels), yielding CPR = 4 × PPR counts per revolution. A 1000 PPR encoder provides 4000 CPR or 0.09° resolution at the encoder shaft.
When mounted through a gearbox, effective resolution improves by the gear ratio: θ_output = θ_encoder / GR. A 1000 PPR encoder through a 50:1 gearbox achieves 0.09°/50 = 0.0018° (6.5 arc-seconds) output resolution. However, gearbox backlash (typically 3-30 arc-minutes for spur gears, 1-5 arc-minutes for planetary per AGMA standards) may exceed encoder resolution, making motor-side mounting ineffective for absolute positioning—load-side encoder placement eliminates backlash uncertainty but requires higher resolution or loses the gear ratio multiplication benefit.
Practical tips
- Per Sick Stegmann guidelines, place encoder on load side of gearbox when absolute position accuracy matters—motor-side placement cannot detect or correct for gearbox backlash, compliance, or thermal expansion
- For cable lengths >0.5m in electrically noisy motor environments, use differential (RS-422/485) encoder outputs per EMC guidelines—single-ended TTL signals suffer 5-20% count errors from motor EMI
- Per motion control practice, verify encoder index pulse (Z channel) alignment during commissioning—reference homing requires consistent index-to-mechanical-position relationship across power cycles
Common mistakes
- Confusing PPR with CPR: Per encoder specifications, PPR is single-channel pulses while CPR = 4×PPR with quadrature decoding—using PPR in calculations underestimates resolution by 4×, causing insufficient positioning accuracy
- Ignoring gearbox backlash: Per AGMA standards, spur gearbox backlash is typically 3-30 arc-minutes; encoder resolution finer than backlash provides no positioning benefit for motor-side mounted encoders
- Exceeding MCU decoder frequency limits: Per STM32 specifications, hardware quadrature decoders support 1-10 MHz; at 10,000 RPM with 10,000 PPR encoder, frequency reaches 1.67 MHz—verify MCU capability before selecting high-resolution encoders
Frequently asked questions
3 questions
What is the difference between incremental and absolute encoders?
Per encoder technology guides: Incremental encoders output relative position change (pulse count from reference)—position is lost on power-down unless battery-backed. Absolute encoders output a unique digital code for each shaft angle (typically 12-23 bits = 4096-8M positions), maintaining position through power cycles. Absolute encoders cost 2-5× more but eliminate homing routines. Use incremental for velocity control; absolute for position-critical applications requiring immediate power-up operation.
How does quadrature decoding work?
Per motion control fundamentals: Quadrature encoders output two signals (A and B) with 90° phase offset. Standard decoding (1×) counts one channel's rising edges. Full quadrature (4×) counts all edges on both channels, quadrupling resolution. Direction is determined by phase relationship: A leads B for clockwise, B leads A for counterclockwise. Most modern MCUs include hardware quadrature decoders (STM32 timer encoder mode, TI eQEP) that handle 1-40 MHz edge rates without software overhead.
What encoder resolution do I need for a stepper motor application?
Per closed-loop stepper guidelines: Standard steppers provide 200 full steps/rev; with 1/16 microstepping, 3200 positions/rev. For closed-loop position verification, encoder CPR should match or exceed microstep count. Practical recommendation: 1000-2000 CPR (250-500 PPR with 4× decoding) provides adequate resolution for most applications—the controller corrects position errors each servo cycle regardless of encoder resolution finer than the control loop's mechanical capability.
Shop Components
As an Amazon Associate we earn from qualifying purchases.