Confused
Archiver
Posts: 46,084
I'm new to the stamp and am a little confused. Let me start with a
snippet of my source:
check:
if in7 = 1 then new
GOTO check
new:
serout 0,n9600,[noparse][[/noparse]I,CLR]
pause 1
serout 0,n9600,[noparse][[/noparse]"Don't eat poo!"]
GOTO main
It seems ANY contact with pin 7 will be accepted as a high. At first
I thought it was my push button but then I noticed even just touching
it with a finger will be seen as a high and cuase the program to move
to "new:"
What am I missing?
snippet of my source:
check:
if in7 = 1 then new
GOTO check
new:
serout 0,n9600,[noparse][[/noparse]I,CLR]
pause 1
serout 0,n9600,[noparse][[/noparse]"Don't eat poo!"]
GOTO main
It seems ANY contact with pin 7 will be accepted as a high. At first
I thought it was my push button but then I noticed even just touching
it with a finger will be seen as a high and cuase the program to move
to "new:"
What am I missing?
Comments
10K resistor (brown-black-orange) between the pin and ground (Vss). This
will hold the input to ground (0) until you close the switch connected
between the pin and five volts (Vdd).
Without a pull-down, the Stamp input pin will be sensitive to static buildup
on your skin that is transferred to the switch.
-- Jon Williams
-- Applications Engineer, Parallax
In a message dated 7/6/02 8:40:43 PM Central Daylight Time,
christophermcummings@y... writes:
> I'm new to the stamp and am a little confused. Let me start with a
> snippet of my source:
>
>
> check:
> if in7 = 1 then new
> GOTO check
>
> new:
> serout 0,n9600,[noparse][[/noparse]I,CLR]
> pause 1
> serout 0,n9600,[noparse][[/noparse]"Don't eat poo!"]
> GOTO main
>
>
> It seems ANY contact with pin 7 will be accepted as a high. At first
> I thought it was my push button but then I noticed even just touching
> it with a finger will be seen as a high and cuase the program to move
> to "new:"
>
> What am I missing?
>
[noparse][[/noparse]Non-text portions of this message have been removed]
I'll try it.
-Chris
Original Message
From: <jonwms@a...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, July 06, 2002 8:01 PM
Subject: Re: [noparse][[/noparse]basicstamps] Confused
> You probably need to "pull-down" the input; typically done by connecting a
> 10K resistor (brown-black-orange) between the pin and ground (Vss). This
> will hold the input to ground (0) until you close the switch connected
> between the pin and five volts (Vdd).
>
> Without a pull-down, the Stamp input pin will be sensitive to static
buildup
> on your skin that is transferred to the switch.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
>
>
>
> In a message dated 7/6/02 8:40:43 PM Central Daylight Time,
> christophermcummings@y... writes:
>
>
> > I'm new to the stamp and am a little confused. Let me start with a
> > snippet of my source:
> >
> >
> > check:
> > if in7 = 1 then new
> > GOTO check
> >
> > new:
> > serout 0,n9600,[noparse][[/noparse]I,CLR]
> > pause 1
> > serout 0,n9600,[noparse][[/noparse]"Don't eat poo!"]
> > GOTO main
> >
> >
> > It seems ANY contact with pin 7 will be accepted as a high. At first
> > I thought it was my push button but then I noticed even just touching
> > it with a finger will be seen as a high and cuase the program to move
> > to "new:"
> >
> > What am I missing?
> >
>
>
>
>
> [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.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>