<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 9, 2019 at 6:22 PM <<a href="mailto:rsdio@audiobanshee.com">rsdio@audiobanshee.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Have you ever used a set of digital calipers? They have a pattern that is read optically, so the system knows where the slider is positioned at any time. 0-calibration is usually necessary on the affordable ones. I believe that the pattern is basically the same as the quadrature in a rotary encoder, except that it’s straight - not circular. I’m not sure how easy it would be to build something like this, but if possible then it would be a lot less problematic than something with long rubber bands.<br></blockquote><div><br></div><div><br></div><div>Google gets me lots of hits for "linear optical encoder" that involves transmissive sensors, i.e. it's clear with stripes and you have an LED on one side and a sensor on the other.<br><br>Not having as much luck yet finding anything where both the light source and the sensor are on the same side, but still digging through various links.  This really seems like a good way to go, aside from the whole question of absolute positioning -- when I power on, where is it at?  It can be saved in non-volatile space but I honestly don't trust that very far, in terms of long term tracking. </div></div></div>