Hades logo    Hades applet banner

TAMS / Java / Hades / applets (print version): contents | previous | next

Dual- to Gray-code converter

Dual- to Gray-code converter screenshot

Description

This circuit implements a 4-bit dual-code to Gray-code converter. Note that only one bit changes from one code word to the next in the Gray code.

One common use for the Gray-code is in position or angle-encoders, because the position (rotation) error due to misalignment is at most one bit. There is no such guarantee for a binary coded sensor, because the value at a position between the 00...0 and 11...1 states could be of any value.

The following image shows a 5-bit rotation encoder, using a Gray-code pattern in front of an optical sensor.
Gray-code rotation encoder
(The original page with more details and images about rotation angle sensors can be found here).

Run the applet | Run the editor (via Webstart)


Impressum | 24.11.06
http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/10-gates/15-graycode/dual2gray_print.html