I was wondering if any one had any ideas of how i could measure the pulses outputed from the quatrature signal of an optical mouse.
Basicially what i am trying to do is adapt an optical mouse a speedometer, the chip inside the mouse is agilents hdns2000. This generates 4 quatrature o/p that are designed to be exactly the same as that of the output from the optomechanical encoder of a ps2 mouse.
The idea i have is a count of these pulses which are equivalent to diplacement will me a measurement of velocity.
I have already examined the idea of using a dtype flip flop as a switch between counting up or down on a four bit counter based on which edge is leading on the quatrature signal.
The application is to measure the velocity of a loud speaker...the overall movement would be about +-5mm at a frequency of <= 200hz.
If you can imagine the speaker moving in a motion left to right, the circuit would have to count these pulses, a remember the count.The circcuit would also have to do the same when moving in the opposit direction.
These measurements of diplacement would be then turned into pulses that would be sent through a low pass filter.
Any help/advice would be great.