Sep 18, 2018 #1 E Electonics_knowledge Newbie level 5 Joined Aug 8, 2018 Messages 10 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 94 I am using absolute encoder which has *** code output. After reading on internet I have got to know that it it single-track gray code. Gray code output: Code: 0000000000 0000000001 0000000011 0000000010 0000000110 0000000111 0000000101 0000000100 0000001100 0000001101 0000001111 0000001110 0000001010 0000001011 0000001001 0000001000 0000011000 0000011001 0000011011 0000011010 0000011110 0000011111 0000011101 0000011100 0000010100 0000010101 0000010111 0000010110 0000010010 0000010011 0000010001 0000010000 0000110000 0000110001 0000110011 0000110010 0000110110 0000110111 so on... Encoder output: Code: 0000000000 0000000001 0000000101 0000000100 0000000110 0000000111 0000010111 0000010110 0000010100 0000010101 0000010001 0000010000 0000010010 0000010011 0000011011 0000011010 0000011000 0000011001 0000011101 0000011100 0000011110 0000011111 0001011111 0001011110 0001011100 0001011101 0001011001 0001011000 0001011010 0001011011 0001010011 0001010010 0001010000 0001010001 0001010101 0001010100 0001010110 0001010111 so on... Please suggest any conversion to binary or decimal. Last edited by a moderator: Sep 18, 2018
I am using absolute encoder which has *** code output. After reading on internet I have got to know that it it single-track gray code. Gray code output: Code: 0000000000 0000000001 0000000011 0000000010 0000000110 0000000111 0000000101 0000000100 0000001100 0000001101 0000001111 0000001110 0000001010 0000001011 0000001001 0000001000 0000011000 0000011001 0000011011 0000011010 0000011110 0000011111 0000011101 0000011100 0000010100 0000010101 0000010111 0000010110 0000010010 0000010011 0000010001 0000010000 0000110000 0000110001 0000110011 0000110010 0000110110 0000110111 so on... Encoder output: Code: 0000000000 0000000001 0000000101 0000000100 0000000110 0000000111 0000010111 0000010110 0000010100 0000010101 0000010001 0000010000 0000010010 0000010011 0000011011 0000011010 0000011000 0000011001 0000011101 0000011100 0000011110 0000011111 0001011111 0001011110 0001011100 0001011101 0001011001 0001011000 0001011010 0001011011 0001010011 0001010010 0001010000 0001010001 0001010101 0001010100 0001010110 0001010111 so on... Please suggest any conversion to binary or decimal.
Sep 18, 2018 #2 barry Advanced Member level 7 Joined Mar 31, 2005 Messages 6,333 Helped 1,194 Reputation 2,400 Reaction score 1,389 Trophy points 1,393 Location California, USA Activity points 34,477 Cut and paste the following into any search engine: "gray code to binary conversion" You don't say if you're trying to do this with software, an FPGA or discrete circuitry.
Cut and paste the following into any search engine: "gray code to binary conversion" You don't say if you're trying to do this with software, an FPGA or discrete circuitry.
Sep 19, 2018 #3 E Electonics_knowledge Newbie level 5 Joined Aug 8, 2018 Messages 10 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 94 I am using controller so software is required. or any simple circuit also will do like logic GATES.