Problem with EMG49 Encoder Pulses

Hi
I’ve EMG49 Motors, and until now could’nt understand how can I read 588 or 980 p/r.
I try to use interrupt of AVR to read signals from Hall sensor, But every round i just read 245 pulse!
in the Datasheet says that they(encoder) are powerd from 12 volts and pulled up to 5 volt for the signal. this means that I should give 12 v to encoder Vcc? because i run them by 5v.
please help me to know what should I do?
Thanks alot

Hi,

We have contacted the manufacturer to obtain more information and clarify this situation. We will get back to you as soon as we receive a reply.

Sincerely,

The encoders will accept voltages in the range of 3.5V to 20V for the supply and pull up voltage, the pull up on the output needs to be around 1k.
There are two outputs at 90 degrees relative to the shaft generating 245 pulses per turn each, which is 490 transitions so 490*2 = 980 counts per revolution.

If you need more help with writing code to use / read the encoders, we found the following interesting link with a quick online search:

  1. playground.arduino.cc/Main/RotaryEncoders
  2. pjrc.com/teensy/td_libs_Encoder.html
  3. en.wikipedia.org/wiki/Rotary_encoder