Gray code Encoder

I am new for Arduino. I am working on the project that measure the position of the compressor using the 10bits gray code output absolute encoder(TRD-NA2014NWD). I am stuck on converting gray code to binary, but I dont have any ideas. Can anyone have experience on this. Please help... Thanks You

With gray code, you pretty much have to use a lookup table. There are MANY different gray codes.

Regards, Ray L.

A lookup table for 10 bits would be 2kb. That’s all the memory that an UNO has. There must be a better way. The gray code that the device uses may have a simple mathematical formula.

1 minute with google gave me this: http://en.wikipedia.org/wiki/Gray_code#Converting_to_and_from_Gray_code