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. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC/EMC CNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending Craftsman AA 109 restoration Shizuoka ST-N/EMC CNC) ------------------------------------------------------------------------- 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