How does one detect sensor errors without having multiple sensors?
However I notice that there are no error detection nor Z (index) reading in the library.
QuoteHow does one detect sensor errors without having multiple sensors? Generally you are write, however:-In this case the two bits have a pattern. For any one pattern there are two valid patterns that happen next, one for clockwise and the other for anti clockwise. This leaves one transition that is not valid. If you see that, it is an error.
Also most commercial quadrature encoders has the following 6 outputs, A, A Not, B, B Not, Z, and Z Not.I'm not sure if the "A" and "A Not" signals are just inverted (but otherwise aligned) of the same signal or if they are in fact a separate measurement/signal, but by comparing both signals you should be able to guard against some errors at least.
Make sure the errors can't get in is generally easier than trying to figure out how to catch errors and correct them.