Hi all! I have a quadrature encoder that is used to calculate displacement based from the formula "displacement = (pi*d*count)/ppr" where count is the counter of pulses A vs B and ppr is 256.
I'd like to ask if there's any way that I'd know that the sensor shaft is moved while power off?
For reference, the above image is an example. The sensor is attached to a walkway. Say the last position of the star is 30, and then the power goes off, then the walkway was manually moved, and now the position of the star is 90.
As of now, I'm saving the last position (from displacement) before power off using eeprom.
Is there anyway that I'd know that the sensor shaft was moved from last position saved to current position?
I have an AS5040 sensor (can be a quadrature encoder or an absolute position sensor). I tried doing this using the absolute position mode but it has very limited range
of detection that the sensor is moved (only 512 bits, that's like 18.81mm), otherwise, microcontroller won't know the correct direction the sensor moved during power off.
That's why I'm considering using the quadrature output mode.