import DisplayFormula from '@/components/content/DisplayFormula.astro';
The first step in closed-loop control is "knowing where you are now." An encoder converts rotational position into an electrical signal, providing feedback for servo systems, closed-loop steppers, and vector control; resolution, accuracy, and signal type set the lower bound of system capability. It is far from enough to look only at the "line count" when selecting one.
Why it matters
The difference between command and feedback is the controller's input: feedback quality directly determines positioning accuracy, low-speed smoothness, and disturbance rejection. Choose an encoder that is too coarse and no servo, however expensive, will reach the required accuracy; choose one that is too fine and you may waste signal frequency and cost for nothing. In a servo motor system it is a component as important as the motor itself.
Core concepts and formulas
Incremental and absolute. The behavioral differences between the two encoder families shape the system design:
| Item | Incremental | Absolute |
|---|---|---|
| Output | A/B quadrature pulses + Z index signal | Encoded digital position (single-turn/multi-turn) |
| After power-off | Position lost, homing required | Position retained (multi-turn needs battery/mechanical counting) |
| Interface | Differential, push-pull, open collector | SSI, BiSS, and various bus protocols |
| Cost | Low | High |
| Typical applications | Speed feedback, axes where homing is acceptable | Position retention after power-off, multi-axis synchronization, robot joints |
Resolution is not accuracy. The line count (pulses per revolution) becomes the counting resolution after quadrature decoding at 4× frequency multiplication; accuracy additionally depends on graduation error, mounting eccentricity, coupling backlash, and mechanical rigidity. A high-bit-count encoder mounted on an eccentric shaft may deliver lower real accuracy than a well-installed incremental encoder — work out the "accuracy requirement" first, then set the resolution.
Pulse equivalent. The smallest command displacement of a positioning system is determined by the encoder, the mechanics, and the gear ratio together:
Pulse equivalent = lead screw lead L ÷ (pulses per revolution N × gear ratio i)Numeric example: with a 5 mm lead screw, a 2500-line encoder with 4× quadrature decoding (10000 counts/rev), and a gear ratio of 1, the pulse equivalent = 5 ÷ 10000 = 0.0005 mm, that is, 0.5 µm. For the full conversion between pulses and displacement, use the stepper motor microstepping and pulse calculation.
Common misconceptions
- The higher the resolution, the better: higher resolution means higher signal frequency and more expensive interfaces, and it does not solve mechanical errors; choose what is sufficient for the requirement.
- Incremental and absolute encoders can be swapped directly: wiring, protocols, drive parameters, and homing logic all differ; changing type is a system-level modification.
- Any cable will do for an encoder: shielded twisted pairs and correct grounding as the manual requires are mandatory; routing in parallel with power lines introduces interference that shows up as random alarms and lost pulses — for noise sources on the power side, see PWM control: principles and motor speed regulation.
- The coupling can be fitted any way: rigid direct connection or eccentric mounting damages the encoder shaft and bearings; use a flexible coupling and control coaxiality.
Engineering guidance
- Choose the type first, then the specification: if homing is unacceptable, choose absolute; for speed feedback and general positioning, use incremental; for the matching torque and inertia checks, use the servo sizing calculation.
- Verify the maximum signal frequency: speed × resolution must not exceed the receiving limit of the encoder and drive, and wide speed-control systems especially need this check.
- Follow installation rules: control the flexible coupling, concentricity, and axial play; secure cables to avoid pulling, and prevent connectors from loosening.
- Interlocks and trend management: wire encoder disconnection and out-of-tolerance alarms into the shutdown interlock; periodically compare command against feedback deviation to catch lost pulses early.
- Related knowledge: for the levels of closed-loop control see FOC field-oriented control, for commutation-level feedback see Hall sensors, and for the cost trade-offs of sensorless solutions see the permanent-magnet synchronous motor (PMSM).
Related reading
- Servo motor: construction, working principle, and selection notes
- Stepper motor: construction, working principle, and selection notes
- FOC field-oriented control: principles and engineering notes
- Stepper driver: microstepping, current, and tuning
- Motor type comparison table
- Robot joint motor sizing guide
- PPR
- Backlash
- Resolver