Hades logoHades applet banner
Dual- to Gray-code converter

applet icon

The image above shows a thumbnail of the interactive Java applet embedded into this page. Unfortunately, your browser is not Java-aware or Java is disabled in the browser preferences. To start the applet, please enable Java and reload this page. (You might have to restart the browser.)

Circuit 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).

Print version | Run this demo in the Hades editor (via Java WebStart)
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German)
Impressum http://tams-www.informatik.uni-hamburg.de/applets/hades/webdemos/10-gates/15-graycode/dual2gray.html