We're building an 6dof joystick, and we need to accurately measure the displacement of our central device. We can easily use a mechanical connection to the edges, but there has been some discussion about what the best way to achieve this is. The range of motion will be fairly small, but accuracy is incredibly important for us.

Which sensors are most easily and accurately measured?

My impulse response is that rotational and linear potentiometers are the most reliable, but others have been arguing for using gyros/accelerometers. I've also heard that hall effect sensors can be used to great effect.

  • 2
    $\begingroup$ If possible, can you add some more information on what kind of system you are working with, what size it is and the motion you are dealing with? As of right now your question is a little vague, and I'm a firm believer in matching the right tool for a particular task. $\endgroup$
    – wyverniv
    Aug 7, 2015 at 8:16
  • $\begingroup$ How many dimensions? What kind of dimensions (rotation or translation)? $\endgroup$ Aug 7, 2015 at 14:09

2 Answers 2


I would use linear or rotary encoders - the difference in terminology, encoder vs. potentiometer, is in the fact that any linear potentiometer could be used as a linear encoder, but not all linear encoders are potentiometers. From the Wikipedia article on linear encoders: Optical linear encoders, "following interpolation, can provide resolutions as fine as a nanometre."

I've worked on full-scale vehicle autonomy projects before, and I can say that, for the same cost, sealed (IP-67) linear potentiometers are far less expensive and easier to attach than are other forms of linear encoders, but you haven't commented on your application so I don't know if water resistance (or cost for that matter) makes a difference for you.

As a final note, there is typically a degree of temperature dependence in resistive elements, so again, be sure to take your expected operating conditions into account when making this selection. A resistive element can provide absolute position but will require a range calibration to correlate readings to position, but other forms of absolute linear position indicators typically do not. You may or may not need absolute position, but again, this all depends on your application.

  • 1
    $\begingroup$ one more note on temperature and accuracy: if temperature rises, materials expand. Depending on the accuracy required, this can play a big role. $\endgroup$ Aug 7, 2015 at 16:59

I have experience with potentiometers and hall effect sensors. Both are easy to use. I am not sure which one is more precise.

I have a robot hand using hall effect sensors to measure finger position. The advantage, compared with potentiometers, is compacter size and non-contact measurement.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.