Skip to content

VLSIFacts

Let's Program the Transistors

  • Home
  • DHD
    • Digital Electronics
    • Fault Tolerant System Design
    • TLM
    • Verification
    • Verilog
    • VHDL
    • Xilinx
  • Embedded System
    • 8085 uP
    • 8086 uP
    • 8051 uC
  • VLSI Technology
    • Analog Electronics
    • Memory Devices
    • VLSI Circuits
  • Interview
    • Interview Experience
    • Training Experience
    • Question Bank
  • Notifications
  • QUIZ
  • Community
  • Job Board
  • Contact Us

Use of Gray code in a Mechanical Encoding Disc

Posted on March 18, 2023June 19, 2025 By vlsifacts No Comments on Use of Gray code in a Mechanical Encoding Disc

Gray code is beneficial for multiple electromechanical applications of digital systems, such as shaft position encoders, autonomous braking systems, copiers etc. In all these applications, an input sensor produces a digital value that indicates a mechanical position. When continuous or analog information is converted to digital form, as in the case of the above applications, the error susceptibility increases with the number of bit changes between adjacent numbers in a sequence. Gray code provides a robust solution to this problem, as a single bit changes between adjacent numbers that makes error detection and correction easier.

A mechanical encoding disk using a 3-bit binary code

To understand this, let’s consider an example of a mechanical encoding disk. The above figure shows a conceptual mechanical encoding disk that uses binary encoding. The disk has three contacts that produce 3-bit code depending on the rotational position of the disk. The yellow areas are connected to a signal source corresponding to logic-1, and the white areas are connected to the ground corresponding to logic-0. In the above figure, the contact positions generate the code 001.

The problem arises when the disk is positioned at the boundaries of two regions, such as at the boundary of 001 and 010. Here, there are two bits change (two right bits) from the above region of the boundary to the below region of the boundary. However, because of the imperfection in the assembly of the mechanical system, both bits may not change simultaneously. So the intermediate incorrect values such as 011 or 000 may generate before the final value 010 becomes stabilized. Such scenarios can arise in cases where there are more than one bit change between two adjacent regions. Imagine the level of consequences with the presence of such transient errors in the case of an autonomous braking system. Such errors can lead to an accidental scenario. This problem can be resolved using the gray encoding in place of straight binary encoding, as shown in the below figure.

A mechanical encoding disk using a 3-bit gray code

The above mechanical encoding disk uses gray code. We already know that, in the case of gray code, a single-bit change happens between the adjacent sequences. Considering the adjacent regions 001 and 011, we can observe that only the middle bit is changing (single-bit change). Therefore, there is no intermediate incorrect code exists from one region to its adjacent region. Thus, the use of gray code eliminates the possibility of such errors. Moreover, if there is any such error exists, then it is very easy to find the faulty bit location.

Previous           Table of Content           Next

Spread the Word

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print

Like this:

Like Loading...

Related posts:

  1. All about Gray Code
  2. Binary to Gray Code Conversion and Vice Versa
  3. Applications of Gray Code
  4. Synopsys – Interview Questions – based on Synthesis and Simulation
Digital Electronics Tags:Autonomous Braking System, Binary Encoding, Gray Code, Mechanical Encoding Disk, single bit change

Post navigation

Previous Post: All about Gray Code
Next Post: Binary to Gray Code Conversion and Vice Versa

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Top Posts & Pages

  • ASCII Code
  • Different Coding Styles of Verilog Language
  • Truth Tables, Characteristic Equations and Excitation Tables of Different Flipflops
  • Circuit Design of a 4-bit Binary Counter Using D Flip-flops
  • NAND and NOR gate using CMOS Technology

Copyright © 2025 VLSIFacts.

Powered by PressBook WordPress theme

Subscribe to Our Newsletter

%d