Comparison · Intermediate · 3 min read
Linear Position Sensors
Potentiometric, LVDT, Magnetostrictive and Draw-Wire
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Linear position sensors measure how far a rod or cable has moved. Potentiometric types are cheap and read with an ADC. LVDTs are very accurate for short strokes. Magnetostrictive sensors suit long strokes in hydraulic cylinders. Draw-wire sensors cover long travel with a cable. Pick by stroke length, accuracy, output (voltage, 4-20 mA, RS485) and environment.
Key specs at a glance
- Stroke
- A few mm to several metres
- Accuracy
- ±0.1% to ±1% of full scale
- Output
- Resistive, 0-10 V, 4-20 mA, RS485, SSI
- Supply
- 5 to 42 V depending on the sensor
- Types
- Potentiometric, LVDT, magnetostrictive, draw-wire, linear Hall
- Protection
- IP65 to IP67 on industrial parts
Sensor types compared
Choose by stroke and accuracy.
| Type | Stroke | Accuracy | Notes |
|---|---|---|---|
| Potentiometric (resistive) | 25 to 150 mm and longer | About ±1% | Cheap; read with a divider and ADC; contact wear |
| LVDT | Short to medium | Very high | Needs a signal conditioner; contactless |
| Magnetostrictive | Up to metres | High | Rod inside hydraulic or pneumatic cylinders |
| Draw-wire / string pot | Up to many metres | Good | Cable pulled off a spring-loaded drum |
| Linear Hall sensor | Short | Moderate | Compact and contactless |
- Potentiometric (resistive)
- Stroke:
- 25 to 150 mm and longer
- Accuracy:
- About ±1%
- Notes:
- Cheap; read with a divider and ADC; contact wear
- LVDT
- Stroke:
- Short to medium
- Accuracy:
- Very high
- Notes:
- Needs a signal conditioner; contactless
- Magnetostrictive
- Stroke:
- Up to metres
- Accuracy:
- High
- Notes:
- Rod inside hydraulic or pneumatic cylinders
- Draw-wire / string pot
- Stroke:
- Up to many metres
- Accuracy:
- Good
- Notes:
- Cable pulled off a spring-loaded drum
- Linear Hall sensor
- Stroke:
- Short
- Accuracy:
- Moderate
- Notes:
- Compact and contactless
Potentiometric sensors
A potentiometric sensor is a resistive track with a wiper. Wire the ends to supply and ground and read the wiper with an ADC; keep the current low and the signal clean. Models such as the Eurosensor ELPM and VLP series have a cylindrical or square body with a push rod. Use a spring or guided linkage so the rod is not forced sideways. See potentiometers and ADC basics.
Industrial outputs
Magnetostrictive and many industrial sensors use 4-20 mA, 0-10 V, RS485 or SSI. For 4-20 mA read with a shunt resistor across the ADC input; see the shunt resistor tool. For RS485 use a Modbus library and set the address; see Modbus. Check the supply voltage as many need 24 V.
Mounting and alignment
- 1Align the rod with the axis of motion so there is no side load.
- 2Use the supplied couplers or ball joints.
- 3Leave extra stroke at both ends; do not run to the mechanical stop.
- 4Check cable routing away from motor wires.
- 5Calibrate by recording the readings at both ends of the travel.
Other ways to measure position
Count steps with a stepper and lead screw; see lead screw calculator. Use an encoder on a motor or wheel; see rotary encoders and optical encoders. For a limit position only, a limit switch is enough.
Try it: Lead screw calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Side-loading a potentiometric rod and wearing the track.
- Driving the sensor to its end stops.
- Reading a 4-20 mA signal directly on an ADC.
- Powering a 24 V sensor from 5 V.
- Choosing a long-stroke sensor when the stroke is only a few millimetres.
Frequently asked questions
What is the best sensor for a hydraulic cylinder?
A magnetostrictive sensor, because it fits inside the cylinder.
Can I use a draw-wire sensor with Arduino?
Yes. Many have an analog output or a potentiometer you can read with an ADC.
What accuracy do I get from a potentiometric sensor?
About ±1% of full scale.
What is an LVDT?
A coil-based sensor that gives an accurate, contactless position over a short stroke.
Do I need a signal conditioner?
LVDTs usually do. Potentiometric sensors do not.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.





