Displacement Sensor: Types, Working Principles, Applications, and Selection Guide
A displacement sensor, also known as a position sensor, converts mechanical quantities such as linear or angular movement, clearance, thickness, and vibration into electrical signals such as voltage, current, pulses, or digital bus data. These signals can then be processed by PLCs, motion controllers, servo systems, or data acquisition systems.
Displacement sensors can be used for simple position detection, such as determining whether a component has reached a specified position, as well as for high-precision measurement and closed-loop motion control. The correct selection of a displacement sensor should not be based on accuracy alone. Measurement range, installation method, target material, dynamic performance, operating environment, and electrical interface must all match the application.
This article provides an overview of the main linear displacement sensor technologies, their working principles, typical industrial applications, and the key factors to consider when selecting a sensor.

What Is a Displacement Sensor?
A complete displacement measurement system normally includes the following components:
Measured object: A hydraulic cylinder piston, slide table, mold, roller, workpiece surface, valve spool, or robot end effector.
Sensing element: Converts position changes into changes in resistance, inductance, capacitance, magnetic field, optical spot position, flight time, or encoder pulses.
Signal conditioning: Provides excitation, demodulation, filtering, temperature compensation, linearization, and analog-to-digital conversion.
Output interface: Common outputs include 0–10 V, ±10 V, 4–20 mA, SSI, incremental A/B/Z, IO-Link, CANopen, EtherCAT, and Profinet.
Control or acquisition system: PLCs, servo drives, motion controllers, data acquisition systems, and MES/SCADA systems.
Several concepts should be clearly distinguished when selecting a linear position sensor.
| Concept | Meaning | Engineering Impact |
|---|---|---|
| Position vs. displacement | Position is the current value relative to a reference point; displacement is a change in position | Hydraulic cylinders usually require absolute position, while stamping and vibration applications may focus on position changes |
| Linear vs. angular displacement | Measures straight-line movement or rotational angle | Linear sensors are used for slides and cylinders; angular sensors are used for valves, arms, and steering mechanisms |
| Contact vs. non-contact | Whether the sensor physically contacts the target | Contact sensors can be less affected by surface color; non-contact sensors are suitable for high-speed, soft, hot, or wear-sensitive targets |
| Absolute vs. incremental | Whether the actual position can be retained or recovered after power loss | Absolute sensing is useful for safety-critical axes and hydraulic cylinders; incremental sensing is common on servo axes |
| Resolution, repeatability, linearity, and accuracy | Different measures of measurement capability | High resolution does not automatically mean high accuracy |
For example, a laser sensor with a specified resolution of 1 µm can distinguish very small changes, but its actual absolute measurement error may be much larger if the target surface is reflective or inclined, or if temperature drift and installation vibration are significant.
How Does a Displacement Sensor Work?
The basic principle of a displacement sensor is to establish a relationship between mechanical position x and a measurable electrical or optical parameter S:
S = f(x)
Ideally, this relationship is approximately linear within the rated measurement range:
S = Kx + S₀
where K is sensitivity and S₀ is the zero-point output.
In practical applications, temperature, supply voltage fluctuations, electromagnetic interference, installation alignment, target material, and surface conditions can affect measurement performance. Therefore, linearity, hysteresis, repeatability, temperature drift, and dynamic response should also be considered.
Main Types of Displacement Sensors
Different displacement sensing technologies use different physical principles. The appropriate technology depends on the measurement target, range, accuracy, speed, installation conditions, and environment.
1. Potentiometric Displacement Sensors
A potentiometric displacement sensor uses a sliding contact moving along a resistive track to change the voltage division ratio:
Vout = Vin × x/L
where L is the effective stroke.
Common structures include linear potentiometers, rod-type potentiometers, and draw-wire displacement sensors using an internal potentiometer.
The main advantages are a simple operating principle, low cost, and straightforward signal processing. They are suitable for medium- and low-speed position feedback, ordinary accuracy requirements, and applications with limited travel.
Because the sliding contact physically interacts with the resistive track, service life, electrical noise, vibration resistance, and contamination resistance can be limited.
Potentiometric sensors are still commonly used for external hydraulic cylinder position feedback, engineering machinery linkages, valve opening measurement, and similar applications.

2. LVDT Linear Displacement Sensors
An LVDT, or Linear Variable Differential Transformer, consists of an excitation coil, two symmetrical secondary coils, and a movable ferromagnetic core.
When the primary coil receives an AC excitation signal, movement of the core changes the magnetic coupling between the core and the two secondary coils.
When the core is at the center position, the two secondary outputs are approximately equal and the differential output approaches zero. When the core moves toward one side, the output of one secondary coil increases while the other decreases.
After demodulation, the output amplitude represents displacement, while the phase or polarity indicates the direction of movement.
An LVDT displacement sensor has the important advantage that the core and coil normally operate without direct mechanical friction. This provides long service life, good repeatability, and strong resistance to shock and vibration.
LVDT sensors are commonly used for valve spool position, servo-hydraulic actuators, material testing machines, aerospace mechanisms, and other high-reliability measurement applications.
Important selection factors include effective linear stroke, core alignment, lateral force, mechanical limits, excitation requirements, signal conditioning, cable shielding, and grounding.
Traditional LVDTs generally require AC excitation and demodulation, while models with integrated electronics can provide DC voltage or current outputs.

3. Magnetostrictive Displacement Sensors
A magnetostrictive linear displacement sensor is widely used for absolute position measurement, especially inside hydraulic cylinders. Its main components include a waveguide, movable magnetic ring, and electronic measurement head.
The basic measurement process is:
The electronics send a short current pulse through the waveguide.
The pulse generates a circular magnetic field around the waveguide.
The magnetic field of the movable magnet interacts with this field and creates a temporary torsional strain at the magnet position.
A torsional strain pulse is generated in the waveguide and travels back toward the sensing electronics.
The propagation time is measured to determine the absolute position of the magnetic ring.
The simplified relationship is:
x = v × t
where v is the propagation velocity of the torsional wave and t is the time corresponding to the measured position.
The major advantages of magnetostrictive technology include non-contact measurement, no sliding-contact wear, absolute position output, long measuring ranges, and suitability for hydraulic cylinders, injection molding machines, presses, construction machinery, and industrial equipment.
Some models can also measure multiple magnetic rings on the same sensing rod, depending on the specific sensor design.
However, magnet ring installation, alignment, magnetic interference, rod protection, pressure rating, sealing, oil compatibility, and cylinder modification requirements must be evaluated when selecting an internal hydraulic-cylinder sensor.
If an application only requires end-position detection, a magnetic switch may be more economical. When continuous position feedback and closed-loop control are required, magnetostrictive technology is more suitable.

4. Optical Encoders and Linear Scales
Optical encoders use a light source, code disk or scale, read head, and photoelectric elements to convert movement into pulses or absolute digital codes.
An incremental encoder normally provides A and B phase signals and may also provide a Z index signal. The controller calculates displacement by counting pulses and determines direction from the phase relationship.
An absolute encoder assigns a unique code to each position, allowing the control system to read the actual position after power-up. Absolute encoders can be single-turn or multi-turn.
Linear optical scales normally consist of a scale and read head. They are widely used in CNC machines, precision platforms, semiconductor equipment, measuring machines, battery manufacturing equipment, and high-end automation.
The main advantages are high resolution, high repeatability, and high dynamic response. A linear scale can directly measure the actual position of a machine axis and help compensate for transmission errors such as screw backlash.
However, optical systems can be sensitive to oil, dust, chips, condensation, vibration, and installation alignment. Sealed scales, protective structures, wipers, and proper cable routing may therefore be required in machine-tool environments.

5. Magnetic Scales, Hall, and Magnetoresistive Sensors
A magnetic scale consists of a magnetic ruler and read head. The read head detects alternating magnetic poles along the scale. Hall-effect or magnetoresistive elements can also be used with magnets for position detection.
Compared with optical scales, magnetic systems are generally more resistant to oil, dust, condensation, and certain forms of industrial shock.
They can be used for machine-tool auxiliary axes, logistics equipment, doors and gates, construction machinery, and industrial automation slides.
Resolution and absolute accuracy depend on pole pitch, interpolation algorithms, installation air gap, and the parallelism between the read head and magnetic scale.
Ferromagnetic debris, external magnetic fields, magnetic scale damage, and connector errors must also be considered.
6. Inductive and Eddy Current Displacement Sensors
Inductive displacement sensors measure changes in coil inductance, impedance, or coupling caused by the movement of a metal target.
An eddy current displacement sensor generates a high-frequency alternating magnetic field toward a conductive target. Eddy currents are induced in the target, which in turn change the impedance of the sensing coil. The output changes as the distance between the sensor and target changes.
These sensors provide non-contact measurement and fast frequency response. They are particularly suitable for small clearances, shaft vibration, axial movement, eccentricity, runout, and rotor displacement.
Typical applications include wind turbines, steam turbines, compressors, and high-speed motors.
Eddy current sensors normally measure conductive materials, and different materials, heat-treatment conditions, and surface coatings can affect calibration.
Installation must consider the effective target area, edge effects, nearby metal structures, backing materials, and mounting brackets. For rotating machinery, the complete probe, extension cable, and signal conditioner system should be evaluated according to the applicable project standards.
7. Capacitive Displacement Sensors
A capacitive displacement sensor measures changes in capacitance caused by changes in electrode area, distance, or dielectric constant:
C = εA/d
where A is the effective electrode area, d is the gap, and ε is the dielectric constant.
When the area and dielectric medium remain approximately constant, reducing the gap increases capacitance.
Capacitive sensors are suitable for very small displacement, micro-clearance, thin-film thickness, flatness, vibration, and precision positioning.
They can provide very high resolution and are useful in semiconductor equipment, precision machinery, material research, and high-end inspection equipment.
Their limitations include relatively small measuring ranges and sensitivity to humidity, contamination, target material, grounding, nearby conductive objects, and cable parasitic capacitance.
8. Laser Displacement Sensors
Laser displacement sensors commonly use the laser triangulation principle. A laser projects a spot onto the target, and a receiving lens forms the reflected light onto a CMOS or PSD receiver. A change in target distance causes the image position to change, allowing the electronics to calculate the distance according to the optical geometry.
Laser displacement sensors are suitable for measuring workpiece height, thickness, step differences, warpage, clearance, flatness, and other surface characteristics.
Typical applications include online dimensional inspection, battery electrode or coating thickness measurement, roll-material height measurement, weld tracking, and automotive component assembly.
Surface characteristics are important during selection. Reflective metal, transparent materials, black rubber, rough castings, multi-color workpieces, and inclined surfaces can create different measurement conditions and should be tested using the actual workpiece.
Laser triangulation is generally suitable for short- to medium-distance, high-precision measurement. Time-of-flight and phase-based methods are more suitable for longer-distance measurement.
9. Ultrasonic Displacement Sensors
Ultrasonic sensors calculate distance by transmitting sound waves and measuring the time required for the echo to return:
d = ct/2
where c is the speed of sound in air and t is the round-trip travel time.
Ultrasonic sensing does not depend strongly on target color, transparency, or optical reflectivity. It can therefore be useful for transparent films, glass, liquids, packaging materials, and targets with significant color variation.
However, sound velocity is affected by temperature, air pressure, humidity, and airflow. Measurement frequency, response speed, and accuracy are generally different from those of high-performance laser displacement sensors.
Soft sound-absorbing materials, inclined surfaces, small targets, and multiple reflections in confined spaces can also introduce measurement errors.
10. Draw-Wire Displacement Sensors
A draw-wire displacement sensor converts linear movement into rotational movement of a spool and then measures the spool angle using a potentiometer, encoder, or Hall-effect element.
The simplified relationship is:
x = rθ
In practical products, the effective radius can change when multiple layers of wire are wound onto the spool. High-precision designs therefore use specific mechanical structures or compensation methods.
Draw-wire sensors offer long measuring ranges, straightforward mechanical installation, and relatively advantageous cost. They are suitable for telescopic arms, stacker cranes, lifting platforms, gates, large travel mechanisms, test benches, and construction machinery.
The wire should not be continuously subjected to excessive lateral pulling, bending, wear, or interference with edges. Spring return mechanisms, spool life, wire protection, and installation angle all affect reliability.

Displacement Sensor Types and Applications
| Sensor Type | Contact | Typical Range | Main Advantage | Main Limitation | Typical Applications |
|---|---|---|---|---|---|
| Potentiometric | Contact | Tens of mm to about 1 m | Low cost, simple interface | Brush wear and limited service life | Valve position, linkages, slides |
| LVDT | Contact rod / non-friction electromagnetic coupling | mm to hundreds of mm | Accuracy, reliability, vibration resistance | Alignment and signal conditioning | Valve spools, servo hydraulics, testing machines |
| Magnetostrictive | Non-contact | Tens of mm to several m | Absolute position, long service life | Magnet, installation, and magnetic environment requirements | Hydraulic cylinders, injection molding, presses |
| Optical scale / linear encoder | Non-contact | Tens of mm to tens of m | High resolution and dynamic performance | Protection and installation requirements | CNC, precision platforms, semiconductor equipment |
| Magnetic scale | Non-contact | Tens of mm to tens of m | Resistant to industrial contamination | Magnetic fields, metal debris, air gap | Machine tools, logistics, automation |
| Eddy current | Non-contact | Typically 0.1–10 mm | High frequency response and small-gap measurement | Conductive targets and short range | Shaft vibration, runout, clearance |
| Capacitive | Non-contact | µm to mm | Very high resolution | Environmental and grounding sensitivity | Wafers, films, precision gaps |
| Laser triangulation | Non-contact | mm to hundreds of mm | High speed and high precision | Sensitive to surface condition | Height, thickness, flatness, inspection |
| Laser ToF / phase | Non-contact | Hundreds of mm to tens or hundreds of m | Long-distance measurement | Generally lower precision than short-range triangulation | Logistics, lifting equipment, distance positioning |
| Ultrasonic | Non-contact | cm to several m | Not strongly dependent on color | Temperature, airflow, and echo effects | Level, packaging, transparent materials |
| Draw-wire | Mechanical contact | Hundreds of mm to tens of m | Long range and simple structure | Wire wear and lateral-pull risk | Lifting platforms, telescopic mechanisms |
I
ndustrial Applications of Displacement Sensors
Hydraulic Cylinders and Servo Hydraulics
Common hydraulic-cylinder position feedback solutions include internal magnetostrictive sensors, internal LVDTs, external rod-type potentiometers, and draw-wire sensors.
For applications requiring reliable absolute position feedback, long stroke, power-loss position retention, and closed-loop control, magnetostrictive technology can be evaluated.
For short-stroke, high-response servo valve or precision control applications, LVDT technology is commonly used.
For equipment modifications where installation space is limited, external draw-wire, potentiometric, or magnetic-scale solutions may be considered, provided that piston-rod movement, impact, and protection requirements are evaluated.
For an internal hydraulic-cylinder displacement sensor, the effective stroke, non-measuring zones, pressure rating, temperature range, rod diameter, mounting thread, magnet dimensions, dead zone, and connector orientation should be confirmed.
Injection Molding, Extrusion, and Rubber Processing Equipment
Injection molding machines can use magnetostrictive sensors, rod-type potentiometers, optical scales, or magnetic scales to measure mold, injection unit, ejector, and platen positions.
For screw movement, melt-pressure-related control, and mold opening repeatability, sensor dynamic response must be evaluated together with the PLC scan cycle, hydraulic valve response, and mechanical clearance.
For online thickness, edge, and roll-material height measurement, laser triangulation, capacitive, or ultrasonic technologies can be selected according to material transparency, surface reflectivity, and production speed.
Machine Tools and Precision Motion Platforms
A servo motor encoder measures motor-side position. If the screw, coupling, gearbox, or mechanical structure has elastic deformation or backlash, motor-side position does not necessarily equal the actual worktable position.
High-precision machine tools, grinders, gantry platforms, and other precision systems can therefore use linear optical scales for direct closed-loop feedback based on actual worktable position.
In environments with oil mist, chips, and coolant, sealed optical scales or more contamination-resistant magnetic scales should be evaluated.
Rotating Machinery and Condition Monitoring
Eddy current displacement probes are commonly used to monitor radial vibration, axial movement, eccentricity, and other rotor characteristics relative to the bearing.
The complete measurement system includes the probe, extension cable, and signal conditioner. Replacing only the probe based on the same diameter does not necessarily guarantee compatibility because changing any part of the system can affect the original calibration.
Automotive, New Energy, and Electric Drive Testing
Displacement sensing is used in several automotive and new-energy applications.
Battery-module assembly can use laser measurement for height, clearance, press-fit displacement, and electrode thickness.
Electric motor and gearbox testing can use eddy current displacement sensors to monitor rotor vibration, axial movement, and runout.
Robotic pressing and tightening systems can use encoders or linear scales for position control, while displacement and force sensors can be combined to identify press-fit completion, jamming, or missing components.
In vehicle body manufacturing, laser displacement sensors can be used for weld inspection, overlap clearance, stamped-part height differences, and assembly-surface inspection.
Lifting, Logistics, and Large Equipment
Stacker cranes, lifting platforms, and scissor lifts can use draw-wire sensors, absolute encoders, magnetic scales, or laser distance measurement.
Port machinery and bridge cranes can use long-distance laser measurement, encoders, or magnetic scales for travel and positioning. Additional considerations include collision protection, safety redundancy, vibration, rain, fog, dust, and electromagnetic compatibility.
Wind turbine pitch and yaw systems can use absolute encoders and magnetic angular sensors, with requirements for salt spray, low temperature, vibration, lightning, and surge protection.
How to Select a Displacement Sensor
The correct selection process should follow:
Operating conditions → Measurement target → Performance requirements → Mechanical installation → Electrical interface → Verification testing
rather than starting with a brand or a single accuracy specification.
1. Define What Needs to Be Measured
First determine whether the application measures linear displacement, angular displacement, clearance, thickness, runout, vibration, or surface height.
The target material should also be identified as metal, non-metal, transparent material, liquid, magnetic material, or conductive material.
Then determine whether the application requires continuous analog measurement, position feedback, end-position detection, or high-frequency dynamic measurement.
For example:
Shaft vibration → eddy current.
Transparent film distance → ultrasonic or a specialized optical sensor verified for transparent targets.
Absolute hydraulic-cylinder position → magnetostrictive or internal LVDT.
Micrometer-level metal clearance → capacitive or eddy current.
High-speed surface-height measurement → laser triangulation.
Several-meter lifting travel → draw-wire, magnetic scale, absolute encoder, or long-distance laser.
2. Determine Measurement Range and Mechanical Margin
The rated sensor range should not simply equal the mechanical travel.
Consider mechanical end clearance, thermal expansion, structural deformation, abnormal overtravel, non-linear zones, mechanical dead zones, probe collision, piston end position, wire overextension, and cable bending.
For example, a hydraulic cylinder with a 500 mm working stroke should not automatically be matched with a 500 mm sensor. The effective measuring range, dead zones, installation dimensions, and cylinder cushioning distance must also be checked.
3. Understand Accuracy Specifications Correctly
At minimum, compare:
Resolution
Linearity
Repeatability
Hysteresis
Temperature coefficient
Zero-point drift
Long-term stability
Response time
Sampling frequency
Bandwidth
Noise or output ripple
For a sensor with a 1000 mm measuring range and linearity of ±0.05% F.S.:
±1000 × 0.05% = ±0.5 mm
This value represents only the deviation associated with that specified linearity. It does not represent the complete system error. Installation error, mechanical clearance, temperature drift, signal acquisition error, and controller processing error can also contribute.
4. Evaluate Dynamic Performance
Dynamic applications require more than static accuracy.
The sensor selection should consider:
Measurement speed and maximum acceleration.
Sensor bandwidth and response frequency.
PLC scan time.
Analog input module refresh rate.
Communication update cycle and synchronization.
Filter settings and their associated delay.
Mechanical resonance of the measured system.
In high-speed stamping, servo pressing, vibration testing, and rotor monitoring, a slow-response sensor may fail to reproduce the actual transient process even if its static accuracy is high.
5. Evaluate the Operating Environment
Important environmental factors include:
Operating temperature and rate of temperature change.
Humidity, condensation, cleaning fluids, oil mist, and coolant.
Dust, fibers, metal chips, coal dust, or corrosive gases.
Shock, vibration, and mechanical stress.
Electromagnetic interference from inverters, servo drives, welding machines, high-current busbars, and solenoid valves.
IP65, IP67, IP68, IP69K, or other protection requirements.
Explosion protection, functional safety, food or pharmaceutical hygiene requirements where applicable.
Non-contact measurement does not automatically mean higher reliability. A laser sensor avoids mechanical wear, but in heavy dust, oil mist, or steam, contamination of the optical window can create greater maintenance requirements than a sealed magnetostrictive sensor.
6. Match the Output to the Control System
| Output | Advantages | Important Considerations | Typical Application |
|---|---|---|---|
| 0–10 V / ±10 V | Simple, fast, low cost | More sensitive to cable voltage drop and EMI | Short-distance internal equipment control |
| 4–20 mA | Good noise immunity, open-circuit fault detection | Analog-module resolution and load resistance must be considered | Long-distance PLC measurement |
| SSI | Digital absolute position | Clock frequency, bit width, cable length, and PLC compatibility | Absolute encoders and magnetostrictive sensors |
| Incremental A/B/Z | High speed and real-time response | Position is lost after power failure | Servo and motion control |
| IO-Link | Parameterization and diagnostics | Not normally a high-speed closed-loop bus | Smart sensors and condition monitoring |
| CANopen / EtherCAT / Profinet | Network integration, diagnostics, synchronization | Protocol, device files, topology, and cycle time must be compatible | Advanced automation and distributed control |
For a new system with an existing fieldbus architecture, a sensor compatible with the existing communication protocol can simplify wiring and maintenance. For high-dynamic closed-loop control, the bus update cycle and synchronization mechanism must first be confirmed.
7. Mechanical Installation Is Critical
Regardless of sensing technology, check:
Whether the measurement direction is aligned with the motion direction.
Whether lateral force, eccentricity, oscillation, or binding exists.
Whether the mounting reference is stable.
Whether the bracket can deform under temperature or load.
Whether the sensor can be exposed to impact, contamination, water, or entanglement.
Whether the cable may be repeatedly bent, pulled, or routed parallel to power cables.
Whether sufficient space is available for calibration, cleaning, replacement, and troubleshooting.
Whether mechanical limits are independent of the sensor's electrical limits.
For LVDT, contact probes, and draw-wire sensors in particular, the sensor should not be responsible for guiding, limiting, or carrying the mechanical load. Independent guides and mechanical limit structures should perform these functions.
Quick Displacement Sensor Selection Guide
- Continuous hydraulic-cylinder position control: Evaluate internal magnetostrictive sensors first; LVDT is commonly considered for short-stroke, high-response valve applications.
- General mechanical travel feedback with limited budget: Potentiometric or draw-wire sensors can be considered, with appropriate attention to wear and service life.
- CNC machines, precision linear platforms, and direct closed-loop control: Sealed linear optical scales; magnetic scales can be evaluated for heavier contamination.
- Rotating-shaft vibration, runout, and small clearances: Eddy current displacement sensors.
- Micrometer-level displacement, film thickness, and precision gaps: Capacitive sensors, with careful attention to shielding, grounding, and environmental control.
- Online height, step, flatness, and thickness inspection: Laser triangulation, with testing on the actual workpiece.
- Transparent targets, large color variations, and packaging applications: Ultrasonic sensors; specialized optical solutions can be compared for high-speed or high-precision applications.
- Several-meter to tens-of-meter travel: Draw-wire sensors, long-distance laser sensors, magnetic scales, or absolute encoders, depending on accuracy, environment, and mechanical structure.
Conclusion
A displacement sensor converts mechanical movement, position, clearance, thickness, vibration, or other mechanical quantities into signals that can be processed by industrial control and measurement systems. Different technologies-including potentiometric sensors, LVDTs, magnetostrictive sensors, optical scales, magnetic scales, eddy current sensors, capacitive sensors, laser sensors, ultrasonic sensors, and draw-wire sensors-are designed for different measurement requirements.
The correct choice depends on the complete application rather than one specification. Measurement target, range, accuracy, repeatability, dynamic performance, installation method, environmental conditions, mechanical structure, power supply, output interface, controller compatibility, cable length, and electromagnetic environment should all be considered before purchasing.
For a practical selection process, prepare a sensor specification sheet covering the measurement target and material, measuring range, required accuracy, repeatability, speed or frequency, installation space, operating temperature, protection rating, power supply, output interface, controller model, cable length, electromagnetic environment, absolute-position requirement, and acceptable maintenance interval. This helps prevent situations where a sensor appears to meet the catalog specifications but cannot be properly installed or cannot achieve the required measurement performance in the actual application.










