I'm using library PS2.h to interface a PS2 mouse with my UNO. I do this to obtain sensor outputs from its 2 encoders. The mouse's controller is EM84510F.
My problem is that the outputs are X and Y values. As a matter of fact, I don't care about the translational movement of the mouse, but the angular rate of the encoder wheel shaft. Anyway, looking up in the data sheet of EM84510F, I couldn't get any piece of info which telling me what the unit of X and Y is. Without understanding what X and Y really mean, I can't relate their values to the angular velocity.
There're some information I got from the data sheet: -Resolution: 2 dot/count---> I didn't understand this "dot/count" and not sure whether "dot" or "count" relates to X and Y values. -Sampling rate: 100/s. (These are the default values. Though according to the datasheet, I should be able to change the resolution : 1 ,2 ,4, 8 dot/count, or the sampling rate(Need 2-byte long for the argument). But the mouse.write() function built in the PS2.h library just has one byte-long argument.)
This is a piece of result sent to Serial monitor while I'm rotating the shaft. 1000 X=0 Y=0 1000 X=0 Y=0 1000 X=0 Y=0 1000 X=0 Y=0 11000 X=-2 Y=0 11000 X=-3 Y=0 11000 X=-2 Y=0 11000 X=-2 Y=0 11000 X=-1 Y=0 1000 X=0 Y=0 1000 X=0 Y=0 1000 X=0 Y=0 1000 X=0 Y=0
Hope someone being experienced with encoders could help me! Thanks!