Shop OBEX P1 Docs P2 Docs Learn Events
I need to read resistance! HELP!! PLEASE QUICK — Parallax Forums

I need to read resistance! HELP!! PLEASE QUICK

ArchiverArchiver Posts: 46,084
edited 2003-04-27 18:32 in General Discussion
I need to be able to read resistance in the debug screen. i am using
a 10k thermisistor and all i see in the screen i a 1. When in actual
it about 9k. i am using rctime. i also have a photocell with a small
resistor which does the same as the thermistor, and the usual reading
is 4k in normal light, and all i see is numbers 1 and 0 for that.
Please help as soon as you can please! i need to finish soon.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-04-27 17:52
    In a message dated 4/27/2003 9:40:51 AM Pacific Daylight Time, vea@v...
    writes:

    >
    > I need to be able to read resistance in the debug screen. i am using
    > a 10k thermisistor and all i see in the screen i a 1. When in actual
    > it about 9k. i am using rctime. i also have a photocell with a small
    > resistor which does the same as the thermistor, and the usual reading
    > is 4k in normal light, and all i see is numbers 1 and 0 for that.
    > Please help as soon as you can please! i need to finish soon.
    >


    post your code


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-27 18:31
    Assuming you're using the recommended circuit, this code will measure a
    display your RCTIME value:

    RCpin CON 0

    rcVal VAR Word

    Main:
    HIGH RCpin
    PAUSE 1
    RCTIME RCpin, 1, rcVal
    DEBUG Home, DEC5 rcVal
    PAUSE 100
    GOTO Main


    -- Jon Williams
    -- Parallax


    In a message dated 4/27/2003 11:40:51 AM Central Standard Time,
    vea@v... writes:

    > I need to be able to read resistance in the debug screen. i am using
    > a 10k thermisistor and all i see in the screen i a 1. When in actual
    > it about 9k. i am using rctime. i also have a photocell with a small
    > resistor which does the same as the thermistor, and the usual reading
    > is 4k in normal light, and all i see is numbers 1 and 0 for that.
    > Please help as soon as you can please! i need to finish soon.



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-27 18:32
    Anything else i need to do? I'll put the code up in a few minutes,
    any other ways of helping me??



    --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > In a message dated 4/27/2003 9:40:51 AM Pacific Daylight Time,
    vea@v...
    > writes:
    >
    > >
    > > I need to be able to read resistance in the debug screen. i am
    using
    > > a 10k thermisistor and all i see in the screen i a 1. When in
    actual
    > > it about 9k. i am using rctime. i also have a photocell with a
    small
    > > resistor which does the same as the thermistor, and the usual
    reading
    > > is 4k in normal light, and all i see is numbers 1 and 0 for that.
    > > Please help as soon as you can please! i need to finish soon.
    > >
    >
    >
    > post your code
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.