Hello, I hope you can help me :).
I am working in a device that requires to measure the deep of an object when is inserted through a hole. Imagine you have a solid cube (7x7x7 cm) and in the center there is a hollow channel where a solid rod (Diameter 0.5 cm) passes. Initially I attached a wheel on the axis of a rotary encoder so that when the rod is inserted through cube, the rotary encoder registers the direction of the movement and the angle (according to the number of steps), but I am having troubles since the wheel and the rod are not always good couple and some times the rotary encoder does not register the movement besides that the rotary encoder is not very precise.
I am considering to change the way of how I am measuring the penetration distance but I don't know what other sensor I can use.
Could you please suggest me a sensor? I am avoiding to attach the sensor to the rod, so it's required only to attach the sensor to the cube.
Thanks in advance.