When you power up, you read the 8 bit value (for a 256 position absolute encoder). That will give you an unambiguous position.
Ken Kirk Wallace wrote: > On Sun, 2008-07-20 at 14:04 -0400, Kenneth Lerman wrote: >> Kirk, >> >> See: http://en.wikipedia.org/wiki/Gray_code >> >> Gray codes have the property that every position is a valid value. Each >> change in position involves a change in only a single bit. >> >> Absolute rotary encoders typically use gray code (or something like it). >> They are available in many resolutions. >> >> Ken > > I think this works for transitioning from a known state to another > state, where you can bridge the discontinuity by storing the last valid > state and only updating when the next valid state comes along. The > problem, I think, is in coming up with a sensor that never has an > unknown state, even immediately after power up. I probably need to lower > my expectations a little, and allow for a state resolution procedure. > -- Kenneth Lerman Mark Kenny Products Company, LLC 55 Main Street Newtown, CT 06470 888-ISO-SEVO 203-426-7166 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users