A /very/ simple and straightforward method of reading a rotary encoding is: If A is high when B goes high it went one position in one direction. If A is low when B goes high it went one position in the other direction. If you want to double or quadruple your resolution you can do so using one of the many quadrature reading schemes discussed in the past (and undoubtedly in the future) on this list - search the archives. If you don't need the resolution then this is a very simple, cheap way of reading one. A little more discussion on rotary encoder types is here http://www.ubasics.com/adam/electronics/doc/rotryenc.shtml but it hasn't been updated with info on getting more resolution from them yet. -Adam Colin Constant wrote: > I've just ordered one of those A & B channel mechanical rotary encoders, > just because I figure it will fit well with a PIC. Of course, I have no > idea how to wire this thing up. Can anyone offer any pointers? > > TIA > > Colin > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > . > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics