Linear encoder

Last updated
Three typical linear optical encoders Optical Encoder trio.png
Three typical linear optical encoders
Visualization of magnetic structures of a linear encoder (Recorded with MagView). Visualisierung der magnetischen Struktur eines Linearencoders (Aufnahme mit MagView).jpg
Visualization of magnetic structures of a linear encoder (Recorded with MagView).

A linear encoder is a sensor, transducer or readhead paired with a scale that encodes position. The sensor reads the scale in order to convert the encoded position into an analog or digital signal, which can then be decoded into position by a digital readout (DRO) or motion controller.


The encoder can be either incremental or absolute. Motion can be determined by change in position over time. Linear encoder technologies include optical, magnetic, inductive, capacitive and eddy current. Optical technologies include shadow, self imaging and interferometric. Linear encoders are used in metrology instruments, motion systems, inkjet printers and high precision machining tools ranging from digital calipers and coordinate measuring machines to stages, CNC Mills, manufacturing gantry tables and semiconductor steppers.

Physical principle

Linear encoders are transducers that exploit many different physical properties in order to encode position:

Scale/reference based


Optical linear encoders dominate the high resolution market and may employ shuttering/Moiré, diffraction or holographic principles. Optical encoders are the most accurate of the standard styles of encoders, and the most commonly used in industrial automation applications. When specifying an optical encoder, it's important that the encoder have extra protection built in to prevent contamination from dust, vibration and other conditions common to industrial environments. Typical incremental scale periods vary from hundreds of micrometers down to sub-micrometer. Interpolation can provide resolutions as fine as a nanometre.

Optical Linear Encoder mounted on Mitutoyo CMM Optical Linear Encoder.jpg
Optical Linear Encoder mounted on Mitutoyo CMM

Light sources used include infrared LEDs, visible LEDs, miniature light-bulbs and laser diodes.


Magnetic linear encoders [1] employ either active (magnetized) or passive (variable reluctance) scales and position may be sensed using sense-coils, Hall effect or magnetoresistive readheads. With coarser scale periods than optical encoders (typically a few hundred micrometers to several millimeters) resolutions in the order of a micrometer are the norm.


Capacitive linear encoders work by sensing the capacitance between a reader and scale. Typical applications are digital calipers. One of the disadvantages is the sensitivity to uneven dirt, which can locally change the relative permittivity.


Inductive technology is robust to contaminants, allowing calipers and other measurement tools that are coolant-proof. [2] A well known application of the inductive measuring principle is the Inductosyn. [3]

Eddy current

US Patent 3820110, "Eddy current type digital encoder and position reference", gives an example of this type of encoder, which uses a scale coded with high and low permeability, non-magnetic materials, which is detected and decoded by monitoring changes in inductance of an AC circuit that includes an inductive coil sensor. Maxon makes an example (rotary encoder) product (the MILE encoder). [4]

Without scales

Optical image sensor

The sensors are based on an image correlation method. The Sensor takes subsequent pictures from the surface being measured and compares the images for displacement. [5] Resolutions down to 1 nm are possible. [6]


There are two main areas of application for linear encoders:


Measurement application include coordinate-measuring machines (CMM), laser scanners, calipers, gear measurement, [7] tension testers, and digital read outs (DROs).

Motion systems

Servo controlled motion systems employ linear encoder so as to provide accurate, high-speed movement. Typical applications include robotics, machine tools, pick-and-place PCB assembly equipment; semiconductors handling and test equipment, wire bonders, printers and digital presses. [8]

Output signal formats

Incremental signals

Linear encoders can have analog or digital outputs.


The sine and cosine outputs. Circular Lissajous.gif
The sine and cosine outputs.

The industry standard, analog output for linear encoders is sine and cosine quadrature signals. These are usually transmitted differentially so as to improve noise immunity. An early industry standard was 12 μA peak-peak current signals but more recently this has been replaced with 1V peak to peak voltage signals. Compared to digital transmission, the analog signals' lower bandwidth helps to minimise emc emissions.

Quadrature sine/cosine signals can be monitored easily by using an oscilloscope in XY mode to display a circular Lissajous Figure. Highest accuracy signals are obtained if the Lissajous Figure is circular (no gain or phase error) and perfectly centred. Modern encoder systems employ circuitry to trim these error mechanisms automatically. The overall accuracy of the linear encoder is a combination of the scale accuracy and errors introduced by the readhead. Scale contributions to the error budget include linearity and slope (scaling factor error). Readhead error mechanisms are usually described as cyclic error or sub-divisional error (SDE) as they repeat every scale period. The largest contributor to readhead inaccuracy is signal offset, followed by signal imbalance (ellipticity) and phase error (the quadrature signals not being exactly 90° apart). Overall signal size does not affect encoder accuracy, however, signal-to-noise and jitter performance may degrade with smaller signals. Automatic signal compensation mechanisms can include automatic offset compensation (AOC), automatic balance compensation (ABC) and automatic gain control (AGC). Phase is more difficult to compensate dynamically and is usually applied as one time compensation during installation or calibration. Other forms of inaccuracy include signal distortion (frequently harmonic distortion of the sine/cosine signals).


The A and B quadrature channels Quadrature Diagram.svg
The A and B quadrature channels

A linear incremental encoder has two digital output signals, A and B, which issue quadrature squarewaves. Depending on its internal mechanism, an encoder may derive A and B directly from sensors which are fundamentally digital in nature, or it may interpolate its internal, analogue sine/cosine signals. In the latter case, the interpolation process effectively sub-divides the scale period and thereby achieves higher measurement resolution.

In either case, the encoder will output quadrature squarewaves, with the distance between edges of the two channels being the resolution of the encoder. The reference mark or index pulse is also output in digital form, as a pulse which is one to four units-of-resolution wide. The output signals may be directly transmitted to a digital incremental encoder interface for position tracking.

The major advantages of linear incremental encoders are improved noise immunity, high measurement accuracy, and low-latency reporting of position changes. However, the high frequency, fast signal edges may produce more EMC emissions.

Absolute reference signals

As well as analog or digital incremental output signals, linear encoders can provide absolute reference or positioning signals.

Reference mark

Most incremental, linear encoders can produce an index or reference mark pulse providing a datum position along the scale for use at power-up or following a loss of power. This index signal must be able to identify position within one, unique period of the scale. The reference mark may comprise a single feature on the scale, an autocorrelator pattern (typically a Barker code) or a chirp pattern.

Distance coded reference marks (DCRM) are placed onto the scale in a unique pattern allowing a minimal movement (typically moving past two reference marks) to define the readhead's position. Multiple, equally spaced reference marks may also be placed onto the scale such that following installation, the desired marker can either be selected - usually via a magnet or optically or unwanted ones deselected using labels or by being painted over.

Absolute code

With suitably encoded scales (multitrack, vernier, digital code, or pseudo-random code) an encoder can determine its position without movement or needing to find a reference position. Such absolute encoders also communicate using serial communication protocols. Many of these protocols are proprietary (e.g., Fanuc, Mitsubishi, FeeDat (Fagor Automation), EnDat, DriveCliq, Panasonic, Yaskawa) but open standards such as BiSS [9] are now appearing, which avoid tying users to a particular supplier.

Limit switches

Many linear encoders include built-in limit switches; either optical or magnetic. Two limit switches are frequently included such that on power-up the controller can determine if the encoder is at an end-of-travel and in which direction to drive the axis.

Physical arrangement and protection

Linear encoders may be either enclosed or open. Enclosed linear encoders are employed in dirty, hostile environments such as machine-tools. They typically comprise an aluminium extrusion enclosing a glass or metal scale. Flexible lip seals allow an internal, guided readhead to read the scale. Accuracy is limited due to the friction and hysteresis imposed by this mechanical arrangement.

For the highest accuracy, lowest measurement hysteresis and lowest friction applications, open linear encoders are used.

Linear encoders may use transmissive (glass) or reflective scales, employing Ronchi or phase gratings. Scale materials include chrome on glass, metal (stainless steel, gold plated steel, Invar), ceramics (Zerodur) and plastics. The scale may be self-supporting, thermally mastered to the substrate (via adhesive or adhesive tape) or track mounted. Track mounting may allow the scale to maintain its own coefficient of thermal expansion and allows large equipment to be broken down for shipment.

Encoder terms

See also

Related Research Articles

Lossy compression data compression approach that reduces data size while discarding or channing some of it

In information technology, lossy compression or irreversible compression is the class of data encoding methods that uses inexact approximations and partial data discarding to represent the content. These techniques are used to reduce data size for storing, handling, and transmitting content. The different versions of the photo of the cat to the right show how higher degrees of approximation create coarser images as more details are removed. This is opposed to lossless data compression which does not degrade the data. The amount of data reduction possible using lossy compression is much higher than through lossless techniques.

Analog-to-digital converter system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a digital signal; device converting a physical quantity to a digital number

In electronics, an analog-to-digital converter is a system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a digital signal. An ADC may also provide an isolated measurement such as an electronic device that converts an input analog voltage or current to a digital number representing the magnitude of the voltage or current. Typically the digital output is a two's complement binary number that is proportional to the input, but there are other possibilities.

Micrometer device incorporating a calibrated screw

A micrometer, sometimes known as a micrometer screw gauge, is a device incorporating a calibrated screw widely used for accurate measurement of components in mechanical engineering and machining as well as most mechanical trades, along with other metrological instruments such as dial, vernier, and digital calipers. Micrometers are usually, but not always, in the form of calipers. The spindle is a very accurately machined screw and the object to be measured is placed between the spindle and the anvil. The spindle is moved by turning the ratchet knob or thimble until the object to be measured is lightly touched by both the spindle and the anvil.

The reflected binary code (RBC), also known just as reflected binary (RB) or Gray code after Frank Gray, is an ordering of the binary numeral system such that two successive values differ in only one bit . The reflected binary code was originally designed to prevent spurious output from electromechanical switches. Today, Gray codes are widely used to facilitate error correction in digital communications such as digital terrestrial television and some cable TV systems.

Digital-to-analog converter device that converts a digital signal into an analog signal

In electronics, a digital-to-analog converter is a system that converts a digital signal into an analog signal. An analog-to-digital converter (ADC) performs the reverse function.

Vernier scale Auxiliary scale of a measurement device, used to increase precision

A vernier scale is a visual aid to take an accurate measurement reading between two graduation markings on a linear scale by using mechanical interpolation; thereby increasing resolution and reducing measurement uncertainty by using Vernier acuity to reduce human estimation error.

Sensor converter that measures a physical quantity and converts it into a signal

In the broadest definition, a sensor is a device, module, machine, or subsystem whose purpose is to detect events or changes in its environment and send the information to other electronics, frequently a computer processor. A sensor is always used with other electronics.

In control engineering a servomechanism, sometimes shortened to servo, is an automatic device that uses error-sensing negative feedback to correct the action of a mechanism. It usually includes a built-in encoder or other position feedback mechanism to ensure the output is achieving the desired effect.

Rotary encoder device that converts the angular position (motion) to an analog or digital code

A rotary encoder, also called a shaft encoder, is an electro-mechanical device that converts the angular position or motion of a shaft or axle to analog or digital output signals.

Linear variable differential transformer LVDT

The linear variable differential transformer (LVDT) is a type of electrical transformer used for measuring linear displacement (position). A counterpart to this device that is used for measuring rotary displacement is called a rotary variable differential transformer (RVDT).

Inclinometer instrument used to measure the inclination of a surface relative to local gravity

An inclinometer or clinometer is an instrument used for measuring angles of slope, elevation, or depression of an object with respect to gravity's direction. It is also known as a tilt indicator, tilt sensor, tilt meter, slope alert, slope gauge, gradient meter, gradiometer, level gauge, level meter, declinometer, and pitch & roll indicator. Clinometers measure both inclines and declines using three different units of measure: degrees, percent, and topo. Astrolabes are inclinometers that were used for navigation and locating astronomical objects from ancient times to the Renaissance.

A spectroradiometer is a light measurement tool that is able to measure both the wavelength and amplitude of the light emitted from a light source. Spectrometers discriminate the wavelength based on the position the light hits at the detector array allowing the full spectrum to be obtained with a single acquisition. Most spectrometers have a base measurement of counts which is the un-calibrated reading and is thus impacted by the sensitivity of the detector to each wavelength. By applying a calibration, the spectrometer is then able to provide measurements of spectral irradiance, spectral radiance and/or spectral flux. This data is also then used with built in or PC software and numerous algorithms to provide readings or Irradiance (W/cm2), Illuminance, Radiance (W/sr), Luminance (cd), Flux, Chromaticity, Color Temperature, Peak and Dominant Wavelength. Some more complex spectrometer software packages also allow calculation of PAR µmol/m²/s, Metamerism, and candela calculations based on distance and include features like 2- and 20-degree observer, baseline overlay comparisons, transmission and reflectance.

Calipers device used to measure the distance between two opposite sides of an object

A caliper is a device used to measure the distance between two opposite sides of an object. Many types of calipers permit reading out a measurement on a ruled scale, a dial, or a digital display. But a caliper can be as simple as a compass with inward or outward-facing points. The tips of the caliper are adjusted to fit across the points to be measured and then the caliper is then removed and the distance read by measuring between the tips with a measuring tool, such as a ruler.

Indicator (distance amplifying instrument) distance amplifying instrument

In various contexts of science, technology, and manufacturing, an indicator is any of various instruments used to accurately measure small distances and angles, and amplify them to make them more obvious. The name comes from the concept of indicating to the user that which their naked eye cannot discern; such as the presence, or exact quantity, of some small distance.

Coordinate-measuring machine device for measuring the physical geometrical characteristics of an object

A coordinate measuring machine (CMM) is a device that measures the geometry of physical objects by sensing discrete points on the surface of the object with a probe. Various types of probes are used in CMMs, including mechanical, optical, laser, and white light. Depending on the machine, the probe position may be manually controlled by an operator or it may be computer controlled. CMMs typically specify a probe's position in terms of its displacement from a reference position in a three-dimensional Cartesian coordinate system. In addition to moving the probe along the X, Y, and Z axes, many machines also allow the probe angle to be controlled to allow measurement of surfaces that would otherwise be unreachable.

Servomotor type of actuator

A servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity and acceleration. It consists of a suitable motor coupled to a sensor for position feedback. It also requires a relatively sophisticated controller, often a dedicated module designed specifically for use with servomotors.

In electronics, signal conditioning is the manipulation of an analog signal in such a way that it meets the requirements of the next stage for further processing.

A position sensor is a sensor that facilitates measurement of mechanical position. A position sensor may indicate absolute position (location) or relative position (displacement), in terms of linear travel, rotational angle, or three-dimensional space. Common types of position sensors include:

Inertial measurement unit electronic device to measure a crafts velocity and orientation

An inertial measurement unit (IMU) is an electronic device that measures and reports a body's specific force, angular rate, and sometimes the orientation of the body, using a combination of accelerometers, gyroscopes, and sometimes magnetometers. IMUs are typically used to maneuver aircraft, including unmanned aerial vehicles (UAVs), among many others, and spacecraft, including satellites and landers. Recent developments allow for the production of IMU-enabled GPS devices. An IMU allows a GPS receiver to work when GPS-signals are unavailable, such as in tunnels, inside buildings, or when electronic interference is present. A wireless IMU is known as a WIMU.

Incremental encoder A linear or rotary electromechanical device that has two electrical outputs, A and B, which issue pulses when the device is moved.

An incremental encoder is a linear or rotary electromechanical device that has two output signals, A and B, which issue pulses when the device is moved. Together, the A and B signals indicate both the occurrence of and direction of movement. Many incremental encoders have an additional output signal, typically designated index or Z, which indicates the encoder is located at a particular reference position. Also, some encoders provide a status output that indicates internal fault conditions such as a bearing failure or sensor malfunction.


  1. "Archived copy". Archived from the original on 2009-10-10. Retrieved 2009-10-30.CS1 maint: archived copy as title (link)
  2. "Archived copy" (PDF). Archived from the original (PDF) on 2013-11-03. Retrieved 2011-11-15.CS1 maint: archived copy as title (link)
  5. "Archived copy". Archived from the original on 2012-04-25. Retrieved 2011-11-02.CS1 maint: archived copy as title (link)
  6. "Archived copy" (PDF). Archived from the original (PDF) on 2011-10-13. Retrieved 2011-11-15.CS1 maint: archived copy as title (link)
  7. "Archived copy". Archived from the original on 2009-03-28. Retrieved 2009-10-28.CS1 maint: archived copy as title (link)
  8. "Archived copy". Archived from the original on 2009-10-10. Retrieved 2009-10-29.CS1 maint: archived copy as title (link)