Shop OBEX P1 Docs P2 Docs Learn Events
ADC — Parallax Forums

ADC

ArchiverArchiver Posts: 46,084
edited 2004-03-18 21:47 in General Discussion
OK- show me code to read a GP2D12 with rctime.

Larry



you wrote
>
> POT and RCTIME -- Some folks call it poor-man's ADC.
>
> **********
>
> > on board ADC with a BS2? When did that show up?
>
>



[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-11-06 11:11
    Might try the RCTIME circuit example B in the latest Stamp manual except use
    the output of the sensor as Vdd.

    *******

    > OK- show me code to read a GP2D12 with rctime.

    > > POT and RCTIME -- Some folks call it poor-man's ADC.
    > >
    > > **********
    > >
    > > > on board ADC with a BS2? When did that show up?
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-07 06:39
    Tha example won't give you anything like 10 bit resolution (or 12 bit )or
    keep up with the refresh rate of the sensor itself. The explanation of tau
    and charge times after the example will show why. It takes too long. It's
    simply not the same as real ADC

    In a message dated 11/6/02 10:05:40 PM Pacific Standard Time,
    basicstamps@yahoogroups.com writes:


    > From: Rodent <daweasel@s...>
    > Subject: Re: ADC
    >
    > Might try the RCTIME circuit example B in the latest Stamp manual except
    > use
    > the output of the sensor as Vdd.
    >
    > *******
    >
    > > OK- show me code to read a GP2D12 with rctime.
    >
    > > > POT and RCTIME -- Some folks call it poor-man's ADC.
    > > >
    > > > **********
    > > >
    > > > > on board ADC with a BS2? When did that show up?
    >
    >
    >
    >
    >
    >



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-07 11:00
    No kidding? Like I said -- its a *POOR MAN'S* ADC. If you want the real
    thing, buy an ADC chip and let a Stamp talk to it.

    **********

    > Tha example won't give you anything like 10 bit resolution (or 12 bit )or
    > keep up with the refresh rate of the sensor itself. The explanation of
    tau
    > and charge times after the example will show why. It takes too long. It's
    > simply not the same as real ADC

    > > Might try the RCTIME circuit example B in the latest Stamp manual except
    > > use
    > > the output of the sensor as Vdd.
    > >
    > > *******
    > >
    > > > OK- show me code to read a GP2D12 with rctime.
    > >
    > > > > POT and RCTIME -- Some folks call it poor-man's ADC.
    > > > >
    > > > > **********
    > > > >
    > > > > > on board ADC with a BS2? When did that show up?
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-07 12:27
    In the kit/pamplet that comes in the kit that www.acroname.com sells, they
    have code
    for a Basic Stamp to use the Sharp unit.
    You can check their website for the manual there.

    Original Message
    From: Rodent [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=D2TdJ2pemicq1nLP11zYGMrcKICBUGO2aGwyGtvde5lbkDpsnMp08NErrrDOBjwcgheKKa9R511YUQ]daweasel@s...[/url
    Sent: Thursday, November 07, 2002 5:01 AM
    To: basicstamps@yahoogroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] ADC


    No kidding? Like I said -- its a *POOR MAN'S* ADC. If you want the real
    thing, buy an ADC chip and let a Stamp talk to it.

    **********

    > Tha example won't give you anything like 10 bit resolution (or 12 bit )or
    > keep up with the refresh rate of the sensor itself. The explanation of
    tau
    > and charge times after the example will show why. It takes too long. It's
    > simply not the same as real ADC

    > > Might try the RCTIME circuit example B in the latest Stamp manual except
    > > use
    > > the output of the sensor as Vdd.
    > >
    > > *******
    > >
    > > > OK- show me code to read a GP2D12 with rctime.
    > >
    > > > > POT and RCTIME -- Some folks call it poor-man's ADC.
    > > > >
    > > > > **********
    > > > >
    > > > > > on board ADC with a BS2? When did that show up?




    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/
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-07 13:18
    Exactly. it offers a simple exercise in function, offers more
    resolution than on/off and is cheap. besides if you have an app that
    has a narrow band, you can use an op-amp to get the part of the band
    you want to measure very cheaply.

    if you are looking for 12 bit, get a dedicated ADC.

    Dave





    --- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > No kidding? Like I said -- its a *POOR MAN'S* ADC. If you want the
    real
    > thing, buy an ADC chip and let a Stamp talk to it.
    >
    > **********
    >
    > > Tha example won't give you anything like 10 bit resolution (or 12
    bit )or
    > > keep up with the refresh rate of the sensor itself. The
    explanation of
    > tau
    > > and charge times after the example will show why. It takes too
    long. It's
    > > simply not the same as real ADC
    >
    > > > Might try the RCTIME circuit example B in the latest Stamp
    manual except
    > > > use
    > > > the output of the sensor as Vdd.
    > > >
    > > > *******
    > > >
    > > > > OK- show me code to read a GP2D12 with rctime.
    > > >
    > > > > > POT and RCTIME -- Some folks call it poor-man's ADC.
    > > > > >
    > > > > > **********
    > > > > >
    > > > > > > on board ADC with a BS2? When did that show up?
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-16 15:20
    Any recomendations for a 12 bit serial ADC that interfaces nicely to a BS2?


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-16 15:24
    LTC1298.

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


    Original Message
    From: smartdim@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=zHNI_huV4TyUcmPZPqb3V6MNfSWYqfy5LvHAjTA6yn_rn0bAmu3TE3BbdhbPjxuLhoe32iC4O-TcVPk]smartdim@a...[/url
    Sent: Tuesday, March 16, 2004 9:20 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] ADC


    Any recomendations for a 12 bit serial ADC that interfaces nicely to a
    BS2?


    [noparse][[/noparse]Non-text portions of this message have been removed]



    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.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-16 15:27
    In a message dated 3/16/2004 10:23:35 AM Eastern Standard Time,
    smartdim@a... writes:


    > Any recomendations for a 12 bit serial ADC that interfaces nicely to a BS2?
    >

    TLC2543 - 11 channels, 12-bit. If you need the code let me know.
    Sid Weaver
    W4EKQ
    Port Richey, FL


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-16 15:31
    Thank you for the quick responce.

    Ken

    LTC1298.

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


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-16 15:32
    Yes, you can post here so everybody benefits, or email me directly off list.
    Up to you.

    Thank you.

    Ken
    TLC2543 - 11 channels, 12-bit. If you need the code let me know.


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-16 20:57
    Maxim has lots. I've used both the MAX127 (2 wire I2C) and the
    MAX186 (4 wire SPI).

    Mike


    --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > Any recomendations for a 12 bit serial ADC that interfaces nicely
    to a BS2?
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-18 06:48
    LTC 1298. There are a lot of post at parallax regarding this one.


    upand_at_them <upand_at_them@y...> wrote:
    Maxim has lots. I've used both the MAX127 (2 wire I2C) and the
    MAX186 (4 wire SPI).

    Mike


    --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > Any recomendations for a 12 bit serial ADC that interfaces nicely
    to a BS2?
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]




    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.

    Yahoo! Groups Links





    Do you Yahoo!?
    Yahoo! Mail - More reliable, more storage, less spam

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-18 14:10
    --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > Any recomendations for a 12 bit serial ADC that interfaces nicely
    to a BS2?
    >
    >
    My recomendations are to search the Parallax Application notes and
    see if the units they cover in detail will work. IIRC, they offer an
    8bit and 12 bit the LTC1298 is covered in good detail with programing.

    If you need more channels, search the archives of the list to get
    more data on the TLC2543 ADC that Sid mentioned.

    You can get free samples of chips that you may not be able to
    purchase or afford later on.

    So if you are looking for recomendations, go with what is proven and
    check your suppliers for availability and costs.

    Dave
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-18 14:12
    And here's one for using the MAX186:

    http://www.geocities.com/SiliconValley/Orchard/6633/max186.html

    Mike


    --- In basicstamps@yahoogroups.com, gooey <cantyant@y...> wrote:
    > LTC 1298. There are a lot of post at parallax regarding this one.
    >
    >
    > upand_at_them <upand_at_them@y...> wrote:
    > Maxim has lots. I've used both the MAX127 (2 wire I2C) and the
    > MAX186 (4 wire SPI).
    >
    > Mike
    >
    >
    > --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > > Any recomendations for a 12 bit serial ADC that interfaces nicely
    > to a BS2?
    > >
    > >
    > > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    >
    >
    > 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.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    > Do you Yahoo!?
    > Yahoo! Mail - More reliable, more storage, less spam
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-18 15:48
    --- In basicstamps@yahoogroups.com, "upand_at_them"
    <upand_at_them@y...> wrote:
    > And here's one for using the MAX186:
    >
    > http://www.geocities.com/SiliconValley/Orchard/6633/max186.html
    >
    > Mike



    Not that the MAX186 is a bad chip, but I would never design for a
    $22.00 chip when there are similar chips for lots less.

    Dave
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-18 21:47
    Oh, man, I forgot...I got mine for free.

    Nevermind the 186.

    Mike


    --- In basicstamps@yahoogroups.com, "Dave Mucha" <davemucha@j...>
    wrote:
    > --- In basicstamps@yahoogroups.com, "upand_at_them"
    > <upand_at_them@y...> wrote:
    > > And here's one for using the MAX186:
    > >
    > > http://www.geocities.com/SiliconValley/Orchard/6633/max186.html
    > >
    > > Mike
    >
    >
    >
    > Not that the MAX186 is a bad chip, but I would never design for a
    > $22.00 chip when there are similar chips for lots less.
    >
    > Dave
Sign In or Register to comment.