Hi there,
after i spend some time thinking if i am to stupid to find the right parameters for the pulse count + gearbox ratio for my encoder motor, i found that there is a bug in the Arduino Encoder library:
The setRatio method is defined with an int parameter:
void MeEncoderOnBoard::setRatio(int16_t RatioValue);
Of course this has to be a float. otherwise you cannot set the right gearbox ratio value:
void MeEncoderOnBoard::setRatio(float RatioValue);
Files: MeEncoderOnBoard.cpp + .h
Best,
Ben