Shop OBEX P1 Docs P2 Docs Learn Events
decoding a gray code. — Parallax Forums

decoding a gray code.

ArchiverArchiver Posts: 46,084
edited 2003-05-16 15:43 in General Discussion
OK, I give up. I have looked everywhere and need a shove in the
right direction.

An aircraft blind encoder puts out an 8 bit gray code for the
altitude its pressure transducer sees. The gray scale is in 100 ft
increments and all I want to do is read the code, look up the
altitude and then display it in 4 digits on some kind of screen.

I saw this someplace and I just can find it.

Any help would be appreciated.

tia

Jim

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-05-16 03:20
    This should explain the gray code:

    http://www.opticalencoder.com/pdf/CP300%20size%2015%20encoder.PDF

    Nuts & Volts article #8 explains how to read a 2-bit encoder, so it should
    give you a start. Might also check the LOSA (list of Stamp Applications) to
    see if its been done.

    http://www.hth.com/losa/


    Original Message

    > OK, I give up. I have looked everywhere and need a shove in the
    > right direction.
    >
    > An aircraft blind encoder puts out an 8 bit gray code for the
    > altitude its pressure transducer sees. The gray scale is in 100 ft
    > increments and all I want to do is read the code, look up the
    > altitude and then display it in 4 digits on some kind of screen.
  • ArchiverArchiver Posts: 46,084
    edited 2003-05-16 14:18
    That's why I LOVE this group!

    --- In basicstamps@yahoogroups.com, Rodent <daweasel@s...> wrote:
    > This should explain the gray code:
    >
    > http://www.opticalencoder.com/pdf/CP300%20size%2015%20encoder.PDF
    >
    > Nuts & Volts article #8 explains how to read a 2-bit encoder, so it
    should
    > give you a start. Might also check the LOSA (list of Stamp
    Applications) to
    > see if its been done.
    >
    > http://www.hth.com/losa/
    >
    >
    >
    Original Message
    >
    > > OK, I give up. I have looked everywhere and need a shove in the
    > > right direction.
    > >
    > > An aircraft blind encoder puts out an 8 bit gray code for the
    > > altitude its pressure transducer sees. The gray scale is in 100
    ft
    > > increments and all I want to do is read the code, look up the
    > > altitude and then display it in 4 digits on some kind of screen.
  • ArchiverArchiver Posts: 46,084
    edited 2003-05-16 15:43
    Also check out

    http://www.emesystems.com/BS2fsm.htm

    There is a stamp routine for conversion binary<--->gray.



    >This should explain the gray code:
    >
    >http://www.opticalencoder.com/pdf/CP300%20size%2015%20encoder.PDF
    >
    >Nuts & Volts article #8 explains how to read a 2-bit encoder, so it should
    >give you a start. Might also check the LOSA (list of Stamp Applications) to
    >see if its been done.
    >
    >http://www.hth.com/losa/
    >
    >
    >
    Original Message
    >
    > > OK, I give up. I have looked everywhere and need a shove in the
    > > right direction.
    > >
    > > An aircraft blind encoder puts out an 8 bit gray code for the
    > > altitude its pressure transducer sees. The gray scale is in 100 ft
    > > increments and all I want to do is read the code, look up the
    > > altitude and then display it in 4 digits on some kind of screen.
    >
    >
    >
    >
    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the
    >Subject and Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.