I have a Flauhauber micro motor with 27:1 gear reduction, on my desk. I attach the encoder (a) & (b) to pins 2 & 3 Arduino NANO interrupt pins. Load a test-sketch, with the "ENCODER" library, enable interrupts:
BEFORE I move on to my H-bridge testing, I manually move the motor without power on the drive leads, just powering the onboard encoder to test the readings. I spin this with my fingers, and the encoder counts go WAY HIGH past what I'm expecting. I turn this thing maybe 5 or 10 degrees, and thousands of counts register.
I then start powering the motor, too see how many counts it actually wants to perform. My test results find (1) 360 degree revolution is 102400 encoder COUNTS . This is nowhere near what the data-sheet explains as what I believe was "512 PPR" (pulse-per-revolution).
Can someone help me figure out what is going on and why my calculations are so far off? If this is a quadrature encoder signal, MAYBE it's 512 x 4 = 2,048 counts if the library counts each rise & fall on the a & b signal (or 512 x 8 = 4096), as step movement. I would have to multiply 512 x 200 in order to get 102400, which does not make any sense to me. I was hoping someone else knew more of what was going on, probably has a simple explanation, please.