On Mon, Apr 17, 2017 at 11:15 AM, Phil Keller wrote: > All, > Well it looks like all things being equal, they aren't. I purchased > an incremental encoder (PEC12R Incremental Encoder) and did a little > testing: > Good on you. When in doubt, measure something. World would be a better place if more people did that. > (A & B pulled to Vcc via a 10K, C connected to GND) > - The encoder puts out a single pulse for each detent position. > -- For clockwise rotation the A Signal falls while B is held high. > -- For counter-clockwise the A Signal falls while B is held low. > > POOR ASCII drawing: > Clockwise > A -----|____|-------|____|------- > B -------|_____|-------|_____|---- > Counter-Clockwise > A -----|____|-------|____|------- > B ---|_____|-----|_____|-------- > > No counting or multiple pulse between detents, just the phase shift > between A & B that indicate the direction of rotation. Looks to be pretty much in line with what was discussed a couple weeks ago. Also, note that these are mechanical encoders and - if not now, then eventually - will suffer from contact bounce just like any other mechanical switch. Plan now for some method of debouncing, or it will bite you in the backside at some point. -Denny --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .