Shop OBEX P1 Docs P2 Docs Learn Events
Newbie With a Progect — Parallax Forums

Newbie With a Progect

ArchiverArchiver Posts: 46,084
edited 2003-10-09 18:20 in General Discussion
hi all, i would like to know if anyone has done anything like this
before, i have a Widband Oxygen sensor controler that will output
from 0-5volts, i want to take this and display it on an lcd.

http://www.diy-wb.com/v_out.htm

Above is a table of voltage VS AFR wich is what i would like to
display, how ever i do not know how i would go about this, i am
guessing i would need a ADC to interface with the 0-5v signal and the
basic stamp, but code is where i am falling down here....

Can any one give me any ideas on this or some where to look ????

Thanks..

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-10-08 21:33
    We have ADC0831 (simple 8-bit ADC) code on our web site [noparse][[/noparse]in several
    places]. If the voltage vs AFR relationship is linear you can use Stamp
    math to convert to AFR, otherwise you can create a look-up table in DATA
    statements.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: mazda_gtx_man [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=X-YQeKSQmZYK9xRoTbyulVf_R1PPpYxjlaznB0t0_v1I8KF1LsMjN_jB7C4n-bLTsQcYNUHKGzSfJwyB2mAkvuE]mazda_gtx_man@y...[/url
    Sent: Wednesday, October 08, 2003 2:51 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Newbie With a Progect


    hi all, i would like to know if anyone has done anything like this
    before, i have a Widband Oxygen sensor controler that will output
    from 0-5volts, i want to take this and display it on an lcd.

    http://www.diy-wb.com/v_out.htm

    Above is a table of voltage VS AFR wich is what i would like to
    display, how ever i do not know how i would go about this, i am
    guessing i would need a ADC to interface with the 0-5v signal and the
    basic stamp, but code is where i am falling down here....

    Can any one give me any ideas on this or some where to look ????

    Thanks..


    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-09 14:29
    no it is not a liner out put, that is why i am having the problems, i
    do not know how to do a lookup table i have only ever done very basic
    stuff with the stamp...

    Also what kinda refesh rate could i get, i need a max of 1 second.
    do you thibnk that would be possible..???

    Thanks
    Jason

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > We have ADC0831 (simple 8-bit ADC) code on our web site [noparse][[/noparse]in several
    > places]. If the voltage vs AFR relationship is linear you can use
    Stamp
    > math to convert to AFR, otherwise you can create a look-up table in
    DATA
    > statements.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > Sent: Wednesday, October 08, 2003 2:51 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Newbie With a Progect
    >
    >
    > hi all, i would like to know if anyone has done anything like this
    > before, i have a Widband Oxygen sensor controler that will output
    > from 0-5volts, i want to take this and display it on an lcd.
    >
    > http://www.diy-wb.com/v_out.htm
    >
    > Above is a table of voltage VS AFR wich is what i would like to
    > display, how ever i do not know how i would go about this, i am
    > guessing i would need a ADC to interface with the 0-5v signal and
    the
    > basic stamp, but code is where i am falling down here....
    >
    > Can any one give me any ideas on this or some where to look ????
    >
    > Thanks..
    >
    >
    > 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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p...
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-09 15:27
    Here you go. If a picture is worth a 1000 words, a demo program beats
    the tar out of a long-winded explanation. This little program uses
    values from your chart and shows how to do a lookup table in DATA
    statements using Word values. Note that the Get_AFR expects a value of
    at least 140


    '{$STAMP BS2}
    '{$PBASIC 2.5}

    vOut VAR Byte ' 100 = 1.00 volts
    afr VAR Word ' fuel ratio (?)a
    eePntr VAR Word ' pointer into EE table


    AFRTable DATA Word 1008, Word 1023, Word 1038, Word 1053
    DATA Word 1069, Word 1086, Word 1103, Word 1120


    Demo:
    FOR vOut = 140 TO 175 STEP 5
    GOSUB Get_AFR
    DEBUG DEC vOut / 100, ".", DEC2 vOut, TAB
    DEBUG DEC2 afr / 100, ".", DEC2 afr, CR
    next
    END


    Get_AFR: ' convert vOut to AFR
    eePntr = vOut / 5 - 28 * 2 ' create table pointer
    READ (AFRTable + eePntr), Word afr ' read AFR from table
    RETURN



    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office




    Original Message
    From: mazda_gtx_man [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ic1TYxE7zbQ3KazgyORfNYgIAuSNzPatSHuBaxFEiznhv0owgspi__B_t44hcNpDVUN0PkrX4tr5o5RWTA]mazda_gtx_man@y...[/url
    Sent: Thursday, October 09, 2003 8:30 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect


    no it is not a liner out put, that is why i am having the problems, i
    do not know how to do a lookup table i have only ever done very basic
    stuff with the stamp...

    Also what kinda refesh rate could i get, i need a max of 1 second. do
    you thibnk that would be possible..???

    Thanks
    Jason

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > We have ADC0831 (simple 8-bit ADC) code on our web site [noparse][[/noparse]in several
    > places]. If the voltage vs AFR relationship is linear you can use
    Stamp
    > math to convert to AFR, otherwise you can create a look-up table in
    DATA
    > statements.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > Sent: Wednesday, October 08, 2003 2:51 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Newbie With a Progect
    >
    >
    > hi all, i would like to know if anyone has done anything like this
    > before, i have a Widband Oxygen sensor controler that will output
    > from 0-5volts, i want to take this and display it on an lcd.
    >
    > http://www.diy-wb.com/v_out.htm
    >
    > Above is a table of voltage VS AFR wich is what i would like to
    > display, how ever i do not know how i would go about this, i am
    > guessing i would need a ADC to interface with the 0-5v signal and
    the
    > basic stamp, but code is where i am falling down here....
    >
    > Can any one give me any ideas on this or some where to look ????
    >
    > Thanks..
    >
    >
    > 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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p...


    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-09 16:22
    Wow you answer fast, thanks [noparse]:)[/noparse]
    that is a lot simpler than i thought it would be....!!!!
    but the values in the AFRTable are what?? they do not seem to relate
    to anything i can see off hand, just want to know before i get into
    somthing i can not do here, but it dos not look like it is going to
    be to dificult.

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Here you go. If a picture is worth a 1000 words, a demo program
    beats
    > the tar out of a long-winded explanation. This little program uses
    > values from your chart and shows how to do a lookup table in DATA
    > statements using Word values. Note that the Get_AFR expects a
    value of
    > at least 140
    >
    >
    > '{$STAMP BS2}
    > '{$PBASIC 2.5}
    >
    > vOut VAR Byte ' 100 = 1.00 volts
    > afr VAR Word ' fuel ratio (?)a
    > eePntr VAR Word ' pointer into EE
    table
    >
    >
    > AFRTable DATA Word 1008, Word 1023, Word 1038, Word 1053
    > DATA Word 1069, Word 1086, Word 1103, Word 1120
    >
    >
    > Demo:
    > FOR vOut = 140 TO 175 STEP 5
    > GOSUB Get_AFR
    > DEBUG DEC vOut / 100, ".", DEC2 vOut, TAB
    > DEBUG DEC2 afr / 100, ".", DEC2 afr, CR
    > next
    > END
    >
    >
    > Get_AFR: ' convert vOut to
    AFR
    > eePntr = vOut / 5 - 28 * 2 ' create table
    pointer
    > READ (AFRTable + eePntr), Word afr ' read AFR from
    table
    > RETURN
    >
    >
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    >
    >
    Original Message
    > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > Sent: Thursday, October 09, 2003 8:30 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect
    >
    >
    > no it is not a liner out put, that is why i am having the problems,
    i
    > do not know how to do a lookup table i have only ever done very
    basic
    > stuff with the stamp...
    >
    > Also what kinda refesh rate could i get, i need a max of 1 second.
    do
    > you thibnk that would be possible..???
    >
    > Thanks
    > Jason
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > We have ADC0831 (simple 8-bit ADC) code on our web site [noparse][[/noparse]in
    several
    > > places]. If the voltage vs AFR relationship is linear you can use
    > Stamp
    > > math to convert to AFR, otherwise you can create a look-up table
    in
    > DATA
    > > statements.
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    Original Message
    > > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > > Sent: Wednesday, October 08, 2003 2:51 PM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] Newbie With a Progect
    > >
    > >
    > > hi all, i would like to know if anyone has done anything like this
    > > before, i have a Widband Oxygen sensor controler that will output
    > > from 0-5volts, i want to take this and display it on an lcd.
    > >
    > > http://www.diy-wb.com/v_out.htm
    > >
    > > Above is a table of voltage VS AFR wich is what i would like to
    > > display, how ever i do not know how i would go about this, i am
    > > guessing i would need a ADC to interface with the 0-5v signal and
    > the
    > > basic stamp, but code is where i am falling down here....
    > >
    > > Can any one give me any ideas on this or some where to look ????
    > >
    > > Thanks..
    > >
    > >
    > > 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/
    > >
    > >
    > >
    > >
    > > This message has been scanned by WebShield. Please report SPAM to
    > > abuse@p...
    >
    >
    > 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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p...
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-09 16:36
    The values in AFRTable come from the link you posted at the beginning of
    this thread. In that table the left-most column is voltage, the third
    column is AFR -- which I thought you wanted to extract. Didn't you? I
    only used the first eight values, you can fill in the rest. There is a
    slight trick in calculating the address, but only slight. I noticed
    that the voltages in that table were in increments of 0.05 -- so I
    divided the voltage by five, then offset for the table starting at 1.40
    (hence the -28). Since the AFR table holds Word (two byte) values, the
    pointer is multiplied by two to for correct alignment.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: mazda_gtx_man [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wZpGT-V6or4mJOzZ06T4UngO-eQeUlMkRZ6pNxqaO2BnEW3pXATw4dClTZCe0tt4tiO0mNdTY0psf943TYuNHQM]mazda_gtx_man@y...[/url
    Sent: Thursday, October 09, 2003 10:23 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect


    Wow you answer fast, thanks [noparse]:)[/noparse]
    that is a lot simpler than i thought it would be....!!!!
    but the values in the AFRTable are what?? they do not seem to relate
    to anything i can see off hand, just want to know before i get into
    somthing i can not do here, but it dos not look like it is going to
    be to dificult.

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Here you go. If a picture is worth a 1000 words, a demo program
    beats
    > the tar out of a long-winded explanation. This little program uses
    > values from your chart and shows how to do a lookup table in DATA
    > statements using Word values. Note that the Get_AFR expects a
    value of
    > at least 140
    >
    >
    > '{$STAMP BS2}
    > '{$PBASIC 2.5}
    >
    > vOut VAR Byte ' 100 = 1.00 volts
    > afr VAR Word ' fuel ratio (?)a
    > eePntr VAR Word ' pointer into EE
    table
    >
    >
    > AFRTable DATA Word 1008, Word 1023, Word 1038, Word 1053
    > DATA Word 1069, Word 1086, Word 1103, Word 1120
    >
    >
    > Demo:
    > FOR vOut = 140 TO 175 STEP 5
    > GOSUB Get_AFR
    > DEBUG DEC vOut / 100, ".", DEC2 vOut, TAB
    > DEBUG DEC2 afr / 100, ".", DEC2 afr, CR
    > next
    > END
    >
    >
    > Get_AFR: ' convert vOut to
    AFR
    > eePntr = vOut / 5 - 28 * 2 ' create table
    pointer
    > READ (AFRTable + eePntr), Word afr ' read AFR from
    table
    > RETURN
    >
    >
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    >
    >
    Original Message
    > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > Sent: Thursday, October 09, 2003 8:30 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect
    >
    >
    > no it is not a liner out put, that is why i am having the problems,
    i
    > do not know how to do a lookup table i have only ever done very
    basic
    > stuff with the stamp...
    >
    > Also what kinda refesh rate could i get, i need a max of 1 second.
    do
    > you thibnk that would be possible..???
    >
    > Thanks
    > Jason
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > We have ADC0831 (simple 8-bit ADC) code on our web site [noparse][[/noparse]in
    several
    > > places]. If the voltage vs AFR relationship is linear you can use
    > Stamp
    > > math to convert to AFR, otherwise you can create a look-up table
    in
    > DATA
    > > statements.
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    Original Message
    > > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > > Sent: Wednesday, October 08, 2003 2:51 PM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] Newbie With a Progect
    > >
    > >
    > > hi all, i would like to know if anyone has done anything like this
    > > before, i have a Widband Oxygen sensor controler that will output
    > > from 0-5volts, i want to take this and display it on an lcd.
    > >
    > > http://www.diy-wb.com/v_out.htm
    > >
    > > Above is a table of voltage VS AFR wich is what i would like to
    > > display, how ever i do not know how i would go about this, i am
    > > guessing i would need a ADC to interface with the 0-5v signal and
    > the
    > > basic stamp, but code is where i am falling down here....
    > >
    > > Can any one give me any ideas on this or some where to look ????
    > >
    > > Thanks..
    > >
    > >
    > > 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/
    > >
    > >
    > >
    > >
    > > This message has been scanned by WebShield. Please report SPAM to
    > > abuse@p...
    >
    >
    > 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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p...


    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-09 16:45
    OK i got you [noparse]:)[/noparse] thanks for your help sofar i will be getting my hands
    on the controller in about a week, so i will com back and let you
    know then...

    and yes you use the right to colums....
    i have a LTC1286 would this be ok for the ADC ?? as i already have it.
    and i also have a few graphical LCDs handing around, are these hard
    to control with the stamp ????


    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > The values in AFRTable come from the link you posted at the
    beginning of
    > this thread. In that table the left-most column is voltage, the
    third
    > column is AFR -- which I thought you wanted to extract. Didn't
    you? I
    > only used the first eight values, you can fill in the rest. There
    is a
    > slight trick in calculating the address, but only slight. I noticed
    > that the voltages in that table were in increments of 0.05 -- so I
    > divided the voltage by five, then offset for the table starting at
    1.40
    > (hence the -28). Since the AFR table holds Word (two byte) values,
    the
    > pointer is multiplied by two to for correct alignment.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > Sent: Thursday, October 09, 2003 10:23 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect
    >
    >
    > Wow you answer fast, thanks [noparse]:)[/noparse]
    > that is a lot simpler than i thought it would be....!!!!
    > but the values in the AFRTable are what?? they do not seem to
    relate
    > to anything i can see off hand, just want to know before i get into
    > somthing i can not do here, but it dos not look like it is going to
    > be to dificult.
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > Here you go. If a picture is worth a 1000 words, a demo program
    > beats
    > > the tar out of a long-winded explanation. This little program
    uses
    > > values from your chart and shows how to do a lookup table in DATA
    > > statements using Word values. Note that the Get_AFR expects a
    > value of
    > > at least 140
    > >
    > >
    > > '{$STAMP BS2}
    > > '{$PBASIC 2.5}
    > >
    > > vOut VAR Byte ' 100 = 1.00 volts
    > > afr VAR Word ' fuel ratio (?)a
    > > eePntr VAR Word ' pointer into EE
    > table
    > >
    > >
    > > AFRTable DATA Word 1008, Word 1023, Word 1038, Word 1053
    > > DATA Word 1069, Word 1086, Word 1103, Word 1120
    > >
    > >
    > > Demo:
    > > FOR vOut = 140 TO 175 STEP 5
    > > GOSUB Get_AFR
    > > DEBUG DEC vOut / 100, ".", DEC2 vOut, TAB
    > > DEBUG DEC2 afr / 100, ".", DEC2 afr, CR
    > > next
    > > END
    > >
    > >
    > > Get_AFR: ' convert vOut to
    > AFR
    > > eePntr = vOut / 5 - 28 * 2 ' create table
    > pointer
    > > READ (AFRTable + eePntr), Word afr ' read AFR from
    > table
    > > RETURN
    > >
    > >
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    > >
    > >
    Original Message
    > > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > > Sent: Thursday, October 09, 2003 8:30 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect
    > >
    > >
    > > no it is not a liner out put, that is why i am having the
    problems,
    > i
    > > do not know how to do a lookup table i have only ever done very
    > basic
    > > stuff with the stamp...
    > >
    > > Also what kinda refesh rate could i get, i need a max of 1 second.
    > do
    > > you thibnk that would be possible..???
    > >
    > > Thanks
    > > Jason
    > >
    > > --- In basicstamps@yahoogroups.com, "Jon Williams"
    <jwilliams@p...>
    > > wrote:
    > > > We have ADC0831 (simple 8-bit ADC) code on our web site [noparse][[/noparse]in
    > several
    > > > places]. If the voltage vs AFR relationship is linear you can
    use
    > > Stamp
    > > > math to convert to AFR, otherwise you can create a look-up table
    > in
    > > DATA
    > > > statements.
    > > >
    > > > -- Jon Williams
    > > > -- Applications Engineer, Parallax
    > > > -- Dallas Office
    > > >
    > > >
    > > >
    Original Message
    > > > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > > > Sent: Wednesday, October 08, 2003 2:51 PM
    > > > To: basicstamps@yahoogroups.com
    > > > Subject: [noparse][[/noparse]basicstamps] Newbie With a Progect
    > > >
    > > >
    > > > hi all, i would like to know if anyone has done anything like
    this
    > > > before, i have a Widband Oxygen sensor controler that will
    output
    > > > from 0-5volts, i want to take this and display it on an lcd.
    > > >
    > > > http://www.diy-wb.com/v_out.htm
    > > >
    > > > Above is a table of voltage VS AFR wich is what i would like to
    > > > display, how ever i do not know how i would go about this, i am
    > > > guessing i would need a ADC to interface with the 0-5v signal
    and
    > > the
    > > > basic stamp, but code is where i am falling down here....
    > > >
    > > > Can any one give me any ideas on this or some where to look ????
    > > >
    > > > Thanks..
    > > >
    > > >
    > > > 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/
    > > >
    > > >
    > > >
    > > >
    > > > This message has been scanned by WebShield. Please report SPAM
    to
    > > > abuse@p...
    > >
    > >
    > > 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/
    > >
    > >
    > >
    > >
    > > This message has been scanned by WebShield. Please report SPAM to
    > > abuse@p...
    >
    >
    > 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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p...
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-09 18:20
    It sounds like you got all the parts you need and a start on the code.
    You just need to put your nose to the grindstone and do your project.
    Should be fun.

    -- Jon


    Original Message
    From: mazda_gtx_man [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=BmAm_-dbUvTMZINLLnl7xxUTM1WGzkW6zZbvtdYUZlUfDadJKw8Cjk8IACk_N5g0ZvOEKPE3Dp52dwE5JZ9BC_WI]mazda_gtx_man@y...[/url
    Sent: Thursday, October 09, 2003 10:45 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect


    OK i got you [noparse]:)[/noparse] thanks for your help sofar i will be getting my hands
    on the controller in about a week, so i will com back and let you
    know then...

    and yes you use the right to colums....
    i have a LTC1286 would this be ok for the ADC ?? as i already have it.
    and i also have a few graphical LCDs handing around, are these hard
    to control with the stamp ????


    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > The values in AFRTable come from the link you posted at the
    beginning of
    > this thread. In that table the left-most column is voltage, the
    third
    > column is AFR -- which I thought you wanted to extract. Didn't
    you? I
    > only used the first eight values, you can fill in the rest. There
    is a
    > slight trick in calculating the address, but only slight. I noticed
    > that the voltages in that table were in increments of 0.05 -- so I
    > divided the voltage by five, then offset for the table starting at
    1.40
    > (hence the -28). Since the AFR table holds Word (two byte) values,
    the
    > pointer is multiplied by two to for correct alignment.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > Sent: Thursday, October 09, 2003 10:23 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect
    >
    >
    > Wow you answer fast, thanks [noparse]:)[/noparse]
    > that is a lot simpler than i thought it would be....!!!!
    > but the values in the AFRTable are what?? they do not seem to
    relate
    > to anything i can see off hand, just want to know before i get into
    > somthing i can not do here, but it dos not look like it is going to
    > be to dificult.
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > Here you go. If a picture is worth a 1000 words, a demo program
    > beats
    > > the tar out of a long-winded explanation. This little program
    uses
    > > values from your chart and shows how to do a lookup table in DATA
    > > statements using Word values. Note that the Get_AFR expects a
    > value of
    > > at least 140
    > >
    > >
    > > '{$STAMP BS2}
    > > '{$PBASIC 2.5}
    > >
    > > vOut VAR Byte ' 100 = 1.00 volts
    > > afr VAR Word ' fuel ratio (?)a
    > > eePntr VAR Word ' pointer into EE
    > table
    > >
    > >
    > > AFRTable DATA Word 1008, Word 1023, Word 1038, Word 1053
    > > DATA Word 1069, Word 1086, Word 1103, Word 1120
    > >
    > >
    > > Demo:
    > > FOR vOut = 140 TO 175 STEP 5
    > > GOSUB Get_AFR
    > > DEBUG DEC vOut / 100, ".", DEC2 vOut, TAB
    > > DEBUG DEC2 afr / 100, ".", DEC2 afr, CR
    > > next
    > > END
    > >
    > >
    > > Get_AFR: ' convert vOut to
    > AFR
    > > eePntr = vOut / 5 - 28 * 2 ' create table
    > pointer
    > > READ (AFRTable + eePntr), Word afr ' read AFR from
    > table
    > > RETURN
    > >
    > >
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    > >
    > >
    Original Message
    > > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > > Sent: Thursday, October 09, 2003 8:30 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] Re: Newbie With a Progect
    > >
    > >
    > > no it is not a liner out put, that is why i am having the
    problems,
    > i
    > > do not know how to do a lookup table i have only ever done very
    > basic
    > > stuff with the stamp...
    > >
    > > Also what kinda refesh rate could i get, i need a max of 1 second.
    > do
    > > you thibnk that would be possible..???
    > >
    > > Thanks
    > > Jason
    > >
    > > --- In basicstamps@yahoogroups.com, "Jon Williams"
    <jwilliams@p...>
    > > wrote:
    > > > We have ADC0831 (simple 8-bit ADC) code on our web site [noparse][[/noparse]in
    > several
    > > > places]. If the voltage vs AFR relationship is linear you can
    use
    > > Stamp
    > > > math to convert to AFR, otherwise you can create a look-up table
    > in
    > > DATA
    > > > statements.
    > > >
    > > > -- Jon Williams
    > > > -- Applications Engineer, Parallax
    > > > -- Dallas Office
    > > >
    > > >
    > > >
    Original Message
    > > > From: mazda_gtx_man [noparse][[/noparse]mailto:mazda_gtx_man@y...]
    > > > Sent: Wednesday, October 08, 2003 2:51 PM
    > > > To: basicstamps@yahoogroups.com
    > > > Subject: [noparse][[/noparse]basicstamps] Newbie With a Progect
    > > >
    > > >
    > > > hi all, i would like to know if anyone has done anything like
    this
    > > > before, i have a Widband Oxygen sensor controler that will
    output
    > > > from 0-5volts, i want to take this and display it on an lcd.
    > > >
    > > > http://www.diy-wb.com/v_out.htm
    > > >
    > > > Above is a table of voltage VS AFR wich is what i would like to
    > > > display, how ever i do not know how i would go about this, i am
    > > > guessing i would need a ADC to interface with the 0-5v signal
    and
    > > the
    > > > basic stamp, but code is where i am falling down here....
    > > >
    > > > Can any one give me any ideas on this or some where to look ????
    > > >
    > > > Thanks..
    > > >
    > > >
    > > > 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/
    > > >
    > > >
    > > >
    > > >
    > > > This message has been scanned by WebShield. Please report SPAM
    to
    > > > abuse@p...
    > >
    > >
    > > 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/
    > >
    > >
    > >
    > >
    > > This message has been scanned by WebShield. Please report SPAM to
    > > abuse@p...
    >
    >
    > 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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p...


    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
Sign In or Register to comment.