> The trick is that there are two sensors for each wheel > so you will get 2 impulsstreams out of one wheel > the phases are 90 degrees shifted > > to make an encoding you have to look which edge comes > first and then you read the second egde depending on the > direction one of the egdes comes before the other one Exactly. It creates four distinct combinations in a repeating sequence like this: 00 01 11 10 It will always be in this order for one direction, and the reverse order for the other direction. This yields a resolution 4 times the number of slots in the wheel. --- Peace, William Kitchen bill@iglobal.net The future is ours to create.