> I need to read resistance! HELP!! PLEASE QUICK
Archiver
Posts: 46,084
This is the same code that i have and it is still not doing anything
execpt for showing 1 and 0. the average resistance is 4k ohms, 5k is
my guess where the number becomes 0
--- In basicstamps@yahoogroups.com, jonwms@a... wrote:
> 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]
execpt for showing 1 and 0. the average resistance is 4k ohms, 5k is
my guess where the number becomes 0
--- In basicstamps@yahoogroups.com, jonwms@a... wrote:
> 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]
Comments
rebuilding (especially if on a breadboard) since unseen bad connections are
often blamed for software troubles. Trust me, I know this from experience.
-- Jon Williams
-- Parallax
In a message dated 4/27/2003 12:35:56 PM Central Standard Time,
vea@v... writes:
> This is the same code that i have and it is still not doing anything
> execpt for showing 1 and 0. the average resistance is 4k ohms, 5k is
> my guess where the number becomes 0
[noparse][[/noparse]Non-text portions of this message have been removed]
see numbers go like up to 6000 but then it goes back to 1. i have
tried that and also i have a bs2 and b.o.e. bread board. also i would
like to know if i can do a if x > 5000 - 8000 then run1..? and also
about the 10k thermisitor if i can read it the same in the debug
screen like the photocell. this will help me alot if i can figure out
the problem soon: why i just see 1 or 0?
waiting to recieve more info...
--- In basicstamps@yahoogroups.com, jonwms@a... wrote:
> Then check your connection. Since the circuit is simple, I'd
suggest
> rebuilding (especially if on a breadboard) since unseen bad
connections are
> often blamed for software troubles. Trust me, I know this from
experience.
>
> -- Jon Williams
> -- Parallax
>
> In a message dated 4/27/2003 12:35:56 PM Central Standard Time,
> vea@v... writes:
>
> > This is the same code that i have and it is still not doing
anything
> > execpt for showing 1 and 0. the average resistance is 4k ohms, 5k
is
> > my guess where the number becomes 0
>
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
In PBASIC you can jump to an address based on a condition with IF-THEN.
-- Jon Williams
-- Parallax
In a message dated 4/27/2003 12:55:04 PM Central Standard Time,
vea@v... writes:
> oh, i forgot to say, sometimes, which is like 1 out of 100 runs, i
> see numbers go like up to 6000 but then it goes back to 1. i have
> tried that and also i have a bs2 and b.o.e. bread board. also i would
> like to know if i can do a if x >5000 - 8000 then run1..? and also
> about the 10k thermisitor if i can read it the same in the debug
> screen like the photocell. this will help me alot if i can figure out
> the problem soon: why i just see 1 or 0?
>
> waiting to recieve more info...
[noparse][[/noparse]Non-text portions of this message have been removed]
marker so you won't get burned twice...
Original Message
> Then check your connection. Since the circuit is simple, I'd suggest
> rebuilding (especially if on a breadboard) since unseen bad connections
are
> often blamed for software troubles. Trust me, I know this from
experience.