Frank Bemelman said:
Vishay (and no doubt others) has linear displacement sensors, basically
just a potentiometer. $100 perhaps.
I wonder what laser displacement sensors cost these days (like the ones
from Keyence).
A couple of other ideas.
If the motion is very slow/infrequent, consider a digital caliper. The
plastic versions of these are available in the UK, for under £20, and give
resolutions in the order of 1thou. Most designs don't draw power from (or
need) their internal batteries if connected to an external data cable. These
have four connections for power, and serial data. The sensor on these is a
strip of PCB, cut to form a 'tooth' pattern, which couples to a second
similar strip inside the sensor head, with the tooth pattern at a slightly
different spacing. The strips don't have to touch, so in fact the head can
be positioned over a different sensor strip, and arranged so there is no
contact at all. For the cost, they are unbeatable.
Another alternative, is to use a mouse. Provided you have an ability to
'resync' at intervals (a limit switch perhaps), you can either use a normal
mouse ball, or connect a drive directly to the optical sensor spindle. Again
the price (even with some added hardware), is the real 'feature'.
Third alternative, is to use a optical encoder strip. Honeywell make the
quadrature encoders used inside some mice, as a complete assembly. This has
the pair of decoders, and the quadrature decoder itself, to give a pair of
'step/direction' signals, from a slotted strip at the right interval passing
through the decoder. Look at 'hlc2705'. These are under £2, in 'one off'
quantities. The 'strip' to operate these sensors, can be made on plastic
film designed for printing slides for overhead projectors on laser printers.
I have printed such strips in the past, using a basic CAD package to make a
sheet of the lines, and printing an entire A4 sheet, then cutting strips
about 1/4" wide off this. I usually end up throwing away a couple of strips
with visible 'faults' (dust etc.). The entire system, then becomes the
optical detector, a suitable IR LED, with a gap between, and the strip
mounted onto the moving components (I usually 'hard mount' the strip at one
end, and pull the other with a rubber band or spring). Total cost is well
under £10. Resolution is in the order of 0.5mm with the system as described
(less than you need). However you can 'cheat', and improve the resolution on
this (provided the system that prints the sensor strip is accurate enough).
What you do, is instead of printing a 'linear' strip, you print the lines
angled. So, instead of a strip like:
||||||||||
you generate a strip with the lines like:
//////////
Then if the sensor sits parallel to the lines, you get an increased
positional signal change as the strip moves. At 30 degrees, you can get
resolutions of about 0.25mm. This approaches the sort of accuracy you need,
and for the price, might well be worth considering.
Best Wishes