Hi Lex,
As far as I know, there are two types of encoders widely used for precise measurement of movement…
optical (wheel or tape with slits) and magnetic.
Those two methods operate inherently free of slippage (electronic or mechanical) and they are repeatable, in both incremental and absolute versions.
The problem with
optical mouse is the method used for “coupling” with the moving part which can be anything. This is OK for a
mouse… However, this feature makes the outcome somewhat dependent of surface texture, colour and contrast and algorithm used in
mouse… And I am not sure the repeatability can be controlled properly (obviously, if you move in one direction x metres, and then back the same x metres, your encoded readout should be the same. One count less or more and you have slippage.
In my view this can be achieved only by using the repeatable pattern on the moving surface and simple detector circuitry and this is exactly what was used in
optical and /or magnetic encoders
J
So, I would recommend sticking to reliable methods.
Some time ago I have seen on the web one such application for Bartel’s scope program, the author built an interface box to read two optical mice (one for each axis), but I can not find the page any more….
Have a look at this document, it may be interesting...
http://www.oru.se/oru-upload/Institu.../rapport21.pdf