Have you a link to the product datasheet ? I don't see one on the EBay page,
Does it really matter if it is only 250Hz ? I presume (without the datasheet) that the mark-space ratio is what matters. The lower frequency would give the Arduino more time to detect it.
Robin2:
Have you a link to the product datasheet ? I don't see one on the EBay page,
Does it really matter if it is only 250Hz ? I presume (without the datasheet) that the mark-space ratio is what matters. The lower frequency would give the Arduino more time to detect it.
I'm not an expert on PWM, but I assume the underlying PWM clock is 1kHz. If that's the case, with 12-bits (4096 counts) a PWM value of 1 would be high for 1ms and low for 4095ms.
I've used similar encoders before. You have a choice: do you want 12-bit precision or do you want 1kHz updates? You CANNOT have both with a 16MHz Arduino. You would need a much faster processor and a much more expensive encoder to get both.
500Hz is a good frequency to be updating a motor with current feedback but if you got position feedback at half that rate, that would usually be sufficient.