d-nano WROTE:how to calculate speed for dc geared motor SPG50-20K using rotary encoder B106??
bcoz encoder output will be in pulse form which has 2 channel (A and B).
so if i want to convert the pulse to rpm, which pulse should i refer? A or B?
or should i combine both pulse to become 1 pulse output only?
You can read 1 output pulse for speed detection.
The 2 output pulse is for determine the motor rotation. If the motor rotation control by your program, you don't need detect the pulse rotation again.
How to read speed pulse, you can see
here. The tips is, you count how many pulse during a specific time you are choose.