Shop OBEX P1 Docs P2 Docs Learn Events
SERIN is not constant — Parallax Forums

SERIN is not constant

ArchiverArchiver Posts: 46,084
edited 2003-04-20 22:43 in General Discussion
Hello,

I try to read voltage from a ADC0832, based on the Experiment #27 (of
course, I adapt for the original 831 to 832).

But the reading are fluctuating: 0, then 128, then 255...

I try to get the Data (where the SERIN is performed) unhooked: same
reading.

Did I damage my BS2X? Should the SERIN returns always 0 if the pin in
not connected?

Thank you for your advice,

Worried Eric

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-04-20 22:43
    1. It is a Good Idea to put a 220 ohm resistor in series
    with the data pin, to reduce the current which happens
    when the Stamp has told the 0832 to start talking, but
    has not released the pin to input.

    2. The big difference between the 0831 and 0832 is you
    have to select which pin you are monitoring -- you have
    to command the 0832 which pin value to use. This is
    very different from the 0831, where the command is
    'listen only'

    3. It sounds like you have not correctly told the
    0832 which pin to monitor yet.

    --- In basicstamps@yahoogroups.com, "ericgibert" <ericgibert@y...>
    wrote:
    > Hello,
    >
    > I try to read voltage from a ADC0832, based on the Experiment #27
    (of
    > course, I adapt for the original 831 to 832).
    >
    > But the reading are fluctuating: 0, then 128, then 255...
    >
    > I try to get the Data (where the SERIN is performed) unhooked: same
    > reading.
    >
    > Did I damage my BS2X? Should the SERIN returns always 0 if the pin
    in
    > not connected?
    >
    > Thank you for your advice,
    >
    > Worried Eric
Sign In or Register to comment.