TECHNOLOGY / ENCODER INTERPOLATION

Optical Encoder Sine/Cosine Interpolation and Subdivision: How One Scale Pitch Becomes Nanometer Resolution

Optical encoders report position far finer than the physical scale pitch by interpolating between sinusoidal signals. This guide explains how sine/cosine interpolation and signal subdivision work, what sets the subdivision factor limit, and how signal quality, pitch and electronics decide the final resolution and its accuracy.

DIRECT ANSWER

What should a buyer prioritize?

An optical encoder readhead produces two sinusoidal signals, sine and cosine, one full period per scale pitch. Because the two signals are shifted 90 degrees in phase, every position within one pitch corresponds to a unique point on the circle they trace together. Interpolation electronics measure the phase angle of that point and subdivide each period into many equal steps, so a 20 µm scale pitch can deliver a reported resolution hundreds or thousands of times finer than the pitch itself.

The subdivision factor is not free accuracy. It is limited by signal amplitude, DC offset, amplitude balance between channels and harmonics, and each imperfection maps directly into a periodic position error. High subdivision therefore demands clean signals and correct gain and offset setup, which is why interpolated resolution must always be judged together with interpolation error, not quoted as an accuracy figure on its own.

ENGINEERING CONTEXT

The decision starts with the real constraint.

Datasheets routinely quote resolutions far below the scale pitch, and buyers accept the number without asking how it is produced. The gap matters in practice: an axis that counts nanometers can still move in microns if the interpolated signal is clipped, unbalanced or offset, because subdivision converts every signal defect into a repeating position error. Engineers who do not understand the sine/cosine mechanism cannot diagnose that failure mode, cannot judge whether a finer interpolated resolution is meaningful for their controller, and cannot compare a fine-pitch readhead against a coarse-pitch high-speed architecture on anything but headline numbers.

Discuss your requirement ↗

CRITICAL REQUIREMENTS

Define these before model selection.

01

Signals inside the interpolation window

Sine and cosine amplitudes within the specified range at the electronics input, so the interpolator operates in its linear, low-error region.

02

Balance and offsets trimmed

Amplitude equality between channels and correct DC offsets, because imbalance and offset convert directly into periodic interpolation error.

03

Resolution matched to speed

A subdivision setting that keeps the output frequency at maximum velocity within the interface and controller bandwidth.

04

Error budget separated

Interpolated resolution, interpolation error, scale accuracy and mechanical error kept as distinct line items in the axis error budget.

BUYER MATRIX

Compare evidence, not feature labels.

Give every shortlisted supplier the same process definition and request configuration-specific proof.

Position signal generation: raw pitch counts versus interpolated subdivision
ApproachHow position is derivedStrengthsWatch-outs
Single track edge countingOne count per scale period edge, direction from a second trackVery high signal frequency margin; simple countingResolution equals pitch; no fine position between counts
Quadrature edge counting (4x)Counts on rising and falling edges of sine and cosineSimple 4-fold improvement; robust electronicsStill coarse relative to modern resolution needs
Analog interpolationPhase measurement within the sine/cosine period, arctangent-basedFine subdivision; low latency; well-provenSensitive to amplitude, offset and harmonic errors
Digitizing interpolationADC sampling of sine/cosine with digital angle computation and correctionVery high subdivision factors; per-unit calibration possibleBandwidth and latency budget; needs clean signals and calibration data

Why sine and cosine: two signals that encode position twice

A transmitted-light optical readhead illuminates a periodic scale grating and detects the resulting light modulation with photodiodes arranged to produce two signals 90 degrees apart: sine and cosine. Over one scale pitch, the pair completes one full cycle. The 90-degree shift is what makes fine position recoverable, because it turns the pair into a two-dimensional coordinate. Plotting cosine against sine traces a circle, and every position within the pitch corresponds to exactly one angle on that circle.

Direction and coarse travel come free from the same pair. As the readhead moves forward the point rotates one way; reversed motion rotates it back. The controller can count full periods for coarse position while the angle within the period supplies the fine position. This dual role is why the sine/cosine pair remains the backbone of incremental optical encoding even as electronics have pushed subdivision factors from tens to tens of thousands.

Read the Lissajous signal tuning guide ↗Read the signal quality troubleshooting guide ↗

How subdivision turns one period into thousands of steps

Subdivision is the measurement of the phase angle within the sine/cosine cycle. The electronics compute the angle, typically through an arctangent function or equivalent analog phase method, and divide the full 360 degrees of the cycle into equal steps. A subdivision factor of 4096 on a 20 µm pitch yields a theoretical increment of about 4.9 nm. The published resolution is simply pitch divided by the subdivision factor, rounded to the output format the interface transmits.

The angle computation is only as good as the signals feeding it. The arctangent assumes a circle: equal amplitudes, zero DC offset, no harmonic distortion and correct 90-degree phasing. Each violation deforms the circle into an ellipse or off-center spiral, and the deformation returns as a periodic position error that repeats once or twice per pitch. This is why interpolated resolution is quoted from a clean bench signal, and why installation, gain setup and contamination control determine whether the machine achieves anything close to it.

  • Subdivision factor divides each scale period into equal angle steps
  • Interpolated resolution equals scale pitch divided by subdivision factor
  • The method assumes a clean circle: balanced amplitudes, zero offsets, 90-degree phase
  • Signal defects reappear as periodic error repeating once or twice per pitch

What limits the subdivision factor

Signal quality sets the practical ceiling. Noise on the sine and cosine inputs translates through the angle computation into position jitter, so the signal-to-noise ratio bounds how finely the period can be divided before the extra digits report noise rather than position. Amplitude imbalance between channels, DC offsets and residual harmonics each contribute systematic periodic error components with distinct signatures, which is why interpolation error testing measures the error over one pitch and compares it against the signal parameters.

Speed and bandwidth impose a second ceiling. At maximum velocity the signal frequency equals velocity divided by pitch, and the electronics must sample, compute and transmit position within the control-loop period. Higher subdivision means more computation per period and finer output timing requirements. This is where pitch selection interacts with interpolation: a coarser pitch lowers the signal frequency at speed and buys bandwidth headroom, while a fine pitch raises signal frequency and demands faster electronics for the same velocity.

Laboratory setup showing a linear scale with readhead connected to an interpolation electronics board and an oscilloscope displaying balanced sine and cosine waveforms
Read the interpolation error testing guide ↗Read the high-speed counting limits guide ↗

Choosing and specifying interpolated resolution responsibly

Start the selection from the error budget, not the finest number on the datasheet. Ask what position uncertainty the process tolerates, then allocate shares to scale accuracy, interpolation error, mechanics, thermal behavior and environment. An interpolated resolution several times finer than the sum of the other error sources contributes little except cost and bandwidth pressure; conversely, resolution coarser than the servo loop can use wastes control performance. The right setting is the one that keeps the output increment below what the loop can correct, with interpolation error small against the budget.

For specification and purchase, require the configuration-specific data: subdivision factor, interpolated resolution, maximum output frequency for that setting, the signal amplitude window and the interpolation error figure over one pitch. Confirm that the gain and offset setup procedure is defined for installation, because a subdividing interpolator commissioned by signal level rather than by guesswork keeps its periodic error specification in service. SENFU documents resolution options and signal behavior per configuration, and the application review can map them to your travel, speed, controller and environment before order.

Read the scale pitch selection guide ↗Request an encoder configuration review ↗

CONCLUSION

Subdivision multiplies resolution; signal quality determines whether it means anything.

Sine/cosine interpolation is the mechanism that lets an optical encoder report position far below its scale pitch: two quadrature signals trace a circle, and the electronics subdivide the angle around it. The same mechanism ties resolution to signal integrity, because every imbalance, offset and distortion of the signals returns as periodic position error at the machine.

Treat interpolated resolution as a configuration choice to be justified by the error budget, speed profile and controller bandwidth, and verify it with interpolation error data and a documented signal setup. Then the fine numbers on the datasheet become numbers the machine actually delivers.

EVIDENCE CHECKLIST

Ask for evidence that closes the decision.

  • Subdivision factor and interpolated resolution for the exact orderable configuration
  • Maximum output frequency versus velocity for that configuration
  • Interpolation error specification or measured periodic error data
  • Signal amplitude window and gain setup method for the readhead
  • Scale pitch and scale accuracy stated separately from the interpolated resolution

FAQ

Questions engineers ask before selection.

Why does an encoder output two sinusoidal signals instead of one?

Sine and cosine shifted 90 degrees form a two-dimensional coordinate: plotting them against each other traces a circle whose angle uniquely encodes position within each scale period. One signal alone cannot distinguish direction or position within a period; the pair supports both coarse counting and fine phase interpolation.

How is interpolated encoder resolution calculated?

Divide the scale pitch by the subdivision factor. For example, a 20 µm pitch with a 4096-fold subdivision gives a theoretical increment near 4.9 nm, subject to the output format and the actual interpolation error.

Does a higher subdivision factor improve accuracy?

No. It improves resolution, meaning finer reported increments. Accuracy depends on scale error, interpolation error, installation, thermal behavior and calibration. If signals are degraded, a higher subdivision factor can even report noise as position.

What signal defects cause interpolation error?

Amplitude imbalance between sine and cosine, DC offsets, harmonic distortion and phase error away from 90 degrees. Each deforms the signal circle and reappears as a periodic error repeating once or twice per scale pitch, which interpolation error testing can identify.

How does scale pitch affect interpolation at high speed?

Signal frequency equals velocity divided by pitch. A fine pitch raises frequency at a given speed, consuming electronics bandwidth and limiting usable subdivision; a coarser pitch leaves headroom, which is why high-speed axes often use coarser-pitch scales with high-speed interpolation architectures.

TECHNICAL REVIEW

Turn the requirement into a selection brief.

Send the application, critical parameters and any drawing or process information available.

Discuss your application ↗