fustrated beginer, easy loop question
Archiver
Posts: 46,084
Please help a frustrated beginer.
I just got a Parallax BASIC Stamp HomeWork Board, and
I can't even get thru Chapter #2!!
Why in the heck won't this thing LOOP! All it does is
14 goes "high" for just a second or two, then it quits!!
' Turn LED on and off. Repeat 1 time per second indefinitely.
' {$STAMP BS2}
' {$PBASIC 2.5}
DO
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
LOOP
I know this seems real simple, but whats wrong?!?!?!?!
Thanks to all
Electrajim
I just got a Parallax BASIC Stamp HomeWork Board, and
I can't even get thru Chapter #2!!
Why in the heck won't this thing LOOP! All it does is
14 goes "high" for just a second or two, then it quits!!
' Turn LED on and off. Repeat 1 time per second indefinitely.
' {$STAMP BS2}
' {$PBASIC 2.5}
DO
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
LOOP
I know this seems real simple, but whats wrong?!?!?!?!
Thanks to all
Electrajim
Comments
Based on the description you provided, I'm sure there is some problem in
your PBASIC 2.5 compiler directive.
At this point your instructions should be in black, because they're not
recognized by the editor.
Please try clicking in the PBASIC 2.5 button (just by ID button) or going to
Directive>PBASIC>Version 2.5
The instructions now will be highlighted in blue (including DO and LOOP) and
the program will start blinking the LED as soon as you download it again.
Saludos,
Aristides Alvarez
International Education Program Developer
aalvarez@p...
Parallax, Inc. www.parallax.com
California, USA
Original Message
From: <Electragn@h...>
To: <basicstamps@yahoogroups.com>
Sent: Sunday, December 21, 2003 9:31 PM
Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
> Please help a frustrated beginer.
> I just got a Parallax BASIC Stamp HomeWork Board, and
> I can't even get thru Chapter #2!!
>
> Why in the heck won't this thing LOOP! All it does is
> 14 goes "high" for just a second or two, then it quits!!
>
> ' Turn LED on and off. Repeat 1 time per second indefinitely.
>
> ' {$STAMP BS2}
> ' {$PBASIC 2.5}
>
> DO
>
> HIGH 14
> PAUSE 500
> LOW 14
> PAUSE 500
>
> LOOP
>
>
> I know this seems real simple, but whats wrong?!?!?!?!
>
> Thanks to all
> Electrajim
>
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
the compiler complain? If so, you may need to upgrade to our latest
release (Version 2.1, Beta 1). Does the LED not blink? Check your
connections -- you may have the LED in backwards (common error). The
negative (cathode) lead is identified with a flat edge on the body of
the LED. The positive (anode) side connects to P14 through a resistor
(typically 470 ohms).
Happy Holidays.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Electragn@h... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=N1Ii-wAzd5G9avqJITJuA2-UfbPaPGMBCdBSuMCifmQWWOq_bAXs3rHpEPc2Gg_DANNWtjpMberkM5E]Electragn@h...[/url
Sent: Sunday, December 21, 2003 11:32 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
Please help a frustrated beginer.
I just got a Parallax BASIC Stamp HomeWork Board, and
I can't even get thru Chapter #2!!
Why in the heck won't this thing LOOP! All it does is
14 goes "high" for just a second or two, then it quits!!
' Turn LED on and off. Repeat 1 time per second indefinitely.
' {$STAMP BS2}
' {$PBASIC 2.5}
DO
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
LOOP
I know this seems real simple, but whats wrong?!?!?!?!
Thanks to all
Electrajim
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
your description of what's happening. Do you have the proper resistor
installed between the pin and the Stamp? If yes, the problem is a weird
one that has to do with your serial port (I saw this while giving a
class last year in Europe).
For a reason that I can't explain, some serial ports seem to let a
program run once then stop; this is especially true of laptops. One
thing to try is to change your serial port FIFO settings to minimum
values, this usually does the trick.
-- Jon Williams
-- Parallax
Original Message
From: Jon Williams
Sent: Monday, December 22, 2003 10:18 AM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
There is nothing wrong with your code. What are you experiencing? Does
the compiler complain? If so, you may need to upgrade to our latest
release (Version 2.1, Beta 1). Does the LED not blink? Check your
connections -- you may have the LED in backwards (common error). The
negative (cathode) lead is identified with a flat edge on the body of
the LED. The positive (anode) side connects to P14 through a resistor
(typically 470 ohms).
Happy Holidays.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Electragn@h... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=7FlsJpnVAIwN_-Q9Jb90DKN6sQXhRpAlzlkvJkfnr4so1qahDRi5YnIlRDwdzut48HRRxNNJSTkiUFGBKdE]Electragn@h...[/url
Sent: Sunday, December 21, 2003 11:32 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
Please help a frustrated beginer.
I just got a Parallax BASIC Stamp HomeWork Board, and
I can't even get thru Chapter #2!!
Why in the heck won't this thing LOOP! All it does is
14 goes "high" for just a second or two, then it quits!!
' Turn LED on and off. Repeat 1 time per second indefinitely.
' {$STAMP BS2}
' {$PBASIC 2.5}
DO
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
LOOP
I know this seems real simple, but whats wrong?!?!?!?!
Thanks to all
Electrajim
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
wrote:
> Sorry ... I have too many things on my desk this morning, and I
missed
> your description of what's happening. Do you have the proper
resistor
> installed between the pin and the Stamp?
Absolutely! No doubt, I've been able to wire up LED's since
the 80's! [noparse]:)[/noparse] I really feel that there is no wiring problem,
or LED polarity issue, correct resistor. The breadboarded LED does
blink, usually only once when the program is run, and it blinks along
with the surface mounted power LED every time.
............but just once, no loop! ever!!
Isn't that totally strange or what?!?
The laptop I have is a Dell Inspirion 7600 w W98.
Where do I change serial port FIFO settings to minimum values
anyway?
BTW, thank you very much for the prompt reply.
This is especially nice for a fustrated beginner.
If yes, the problem is a weird
> one that has to do with your serial port (I saw this while giving a
> class last year in Europe).
>
> For a reason that I can't explain, some serial ports seem to let a
> program run once then stop; this is especially true of laptops. One
> thing to try is to change your serial port FIFO settings to minimum
> values, this usually does the trick.
>
> -- Jon Williams
> -- Parallax
>
>
>
Original Message
> From: Jon Williams
> Sent: Monday, December 22, 2003 10:18 AM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
>
>
> There is nothing wrong with your code. What are you experiencing?
Does
> the compiler complain? If so, you may need to upgrade to our latest
> release (Version 2.1, Beta 1). Does the LED not blink? Check your
> connections -- you may have the LED in backwards (common error).
The
> negative (cathode) lead is identified with a flat edge on the body
of
> the LED. The positive (anode) side connects to P14 through a
resistor
> (typically 470 ohms).
>
> Happy Holidays.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Electragn@h... [noparse][[/noparse]mailto:Electragn@h...]
> Sent: Sunday, December 21, 2003 11:32 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
>
>
> Please help a frustrated beginer.
> I just got a Parallax BASIC Stamp HomeWork Board, and
> I can't even get thru Chapter #2!!
>
> Why in the heck won't this thing LOOP! All it does is
> 14 goes "high" for just a second or two, then it quits!!
>
> ' Turn LED on and off. Repeat 1 time per second indefinitely.
>
> ' {$STAMP BS2}
> ' {$PBASIC 2.5}
>
> DO
>
> HIGH 14
> PAUSE 500
> LOW 14
> PAUSE 500
>
> LOOP
>
>
> I know this seems real simple, but whats wrong?!?!?!?!
>
> Thanks to all
> Electrajim
>
>
>
wrote:
> There is nothing wrong with your code. What are you experiencing?
Does
LED blinks once. That's it! no loop or continous blinking.
> the compiler complain?
Nope. Not at all.
>If so, you may need to upgrade to our latest
> release (Version 2.1, Beta 1).
I did, first thing.
>Does the LED not blink?
Yes, only once.
Check your
> connections -- you may have the LED in backwards (common error).
The
> negative (cathode) lead is identified with a flat edge on the body
of
> the LED. The positive (anode) side connects to P14 through a
resistor
> (typically 470 ohms).
That's the EASY part for me. It's all wired 100% correct!
> Happy Holidays.
>
..and the same to you and everyone!
Electrajim
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Electragn@h... [noparse][[/noparse]mailto:Electragn@h...]
> Sent: Sunday, December 21, 2003 11:32 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
>
>
> Please help a frustrated beginer.
> I just got a Parallax BASIC Stamp HomeWork Board, and
> I can't even get thru Chapter #2!!
>
> Why in the heck won't this thing LOOP! All it does is
> 14 goes "high" for just a second or two, then it quits!!
>
> ' Turn LED on and off. Repeat 1 time per second indefinitely.
>
> ' {$STAMP BS2}
> ' {$PBASIC 2.5}
>
> DO
>
> HIGH 14
> PAUSE 500
> LOW 14
> PAUSE 500
>
> LOOP
>
>
> I know this seems real simple, but whats wrong?!?!?!?!
>
> Thanks to all
> Electrajim
> blink, usually only once when the program is run, and it blinks along
> with the surface mounted power LED every time.
If the power LED is blinking as the other LED comes on, you might have a
weak battery that is unable to provide sufficient voltage when the Stamp
turns on the LED. Do you have a voltmeter that you can use to monitor the
battery voltage *while* the program is running and the LED is on? If not,
how about a new/fresh battery?
Randy
www.glitchbuster.com
> > The breadboarded LED does
> > blink, usually only once when the program is run, and it blinks along
> > with the surface mounted power LED every time.
>
>If the power LED is blinking as the other LED comes on, you might have a
>weak battery that is unable to provide sufficient voltage when the Stamp
>turns on the LED. Do you have a voltmeter that you can use to monitor the
>battery voltage *while* the program is running and the LED is on? If not,
>how about a new/fresh battery?
>
>Randy
>www.glitchbuster.com
Electrajim,
In addition to Randys suggestion as a sanity check, try modifying your
code slightly to produce 2 blinks before the loop. That way if there
is a power requirement problem with driving the LED, your program
should still only blink once.
DO
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
LOOP
Make DO a label with a colon after it ie... DO:
make your LOOP a GOTO DO and see what happens.
looks like your program is not looping and stopping at LOOP
Original Message
From: <Electragn@h...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, December 22, 2003 1:34 PM
Subject: [noparse][[/noparse]basicstamps] Re: fustrated beginer, easy loop question
> --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
> wrote:
> > Sorry ... I have too many things on my desk this morning, and I
> missed
> > your description of what's happening. Do you have the proper
> resistor
> > installed between the pin and the Stamp?
>
> Absolutely! No doubt, I've been able to wire up LED's since
> the 80's! [noparse]:)[/noparse] I really feel that there is no wiring problem,
> or LED polarity issue, correct resistor. The breadboarded LED does
> blink, usually only once when the program is run, and it blinks along
> with the surface mounted power LED every time.
>
> ............but just once, no loop! ever!!
>
> Isn't that totally strange or what?!?
>
> The laptop I have is a Dell Inspirion 7600 w W98.
>
> Where do I change serial port FIFO settings to minimum values
> anyway?
>
> BTW, thank you very much for the prompt reply.
> This is especially nice for a fustrated beginner.
>
> If yes, the problem is a weird
> > one that has to do with your serial port (I saw this while giving a
> > class last year in Europe).
> >
> > For a reason that I can't explain, some serial ports seem to let a
> > program run once then stop; this is especially true of laptops. One
> > thing to try is to change your serial port FIFO settings to minimum
> > values, this usually does the trick.
> >
> > -- Jon Williams
> > -- Parallax
> >
> >
> >
Original Message
> > From: Jon Williams
> > Sent: Monday, December 22, 2003 10:18 AM
> > To: basicstamps@yahoogroups.com
> > Subject: RE: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
> >
> >
> > There is nothing wrong with your code. What are you experiencing?
> Does
> > the compiler complain? If so, you may need to upgrade to our latest
> > release (Version 2.1, Beta 1). Does the LED not blink? Check your
> > connections -- you may have the LED in backwards (common error).
> The
> > negative (cathode) lead is identified with a flat edge on the body
> of
> > the LED. The positive (anode) side connects to P14 through a
> resistor
> > (typically 470 ohms).
> >
> > Happy Holidays.
> >
> > -- Jon Williams
> > -- Applications Engineer, Parallax
> > -- Dallas Office
> >
> >
> >
Original Message
> > From: Electragn@h... [noparse][[/noparse]mailto:Electragn@h...]
> > Sent: Sunday, December 21, 2003 11:32 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
> >
> >
> > Please help a frustrated beginer.
> > I just got a Parallax BASIC Stamp HomeWork Board, and
> > I can't even get thru Chapter #2!!
> >
> > Why in the heck won't this thing LOOP! All it does is
> > 14 goes "high" for just a second or two, then it quits!!
> >
> > ' Turn LED on and off. Repeat 1 time per second indefinitely.
> >
> > ' {$STAMP BS2}
> > ' {$PBASIC 2.5}
> >
> > DO
> >
> > HIGH 14
> > PAUSE 500
> > LOW 14
> > PAUSE 500
> >
> > LOOP
> >
> >
> > I know this seems real simple, but whats wrong?!?!?!?!
> >
> > Thanks to all
> > Electrajim
> >
> >
> >
>
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
wrote:
> > The breadboarded LED does
> > blink, usually only once when the program is run, and it blinks
along
> > with the surface mounted power LED every time.
>
> If the power LED is blinking as the other LED comes on, you might
have a
> weak battery that is unable to provide sufficient voltage when the
Stamp
> turns on the LED. Do you have a voltmeter that you can use to
monitor the
> battery voltage *while* the program is running and the LED is on?
If not,
> how about a new/fresh battery?
I'm pretty sure the battery is fresh. I opened the new pkg
myself. Tested 9.38V I think. Under "load" I tested too. I don't
remember what the voltage was, but if it was anything under 9V,
I would have swapped it out. I _wish_ the snafu was that easy to
fix. I'll test it and report the result.
Jim
keyword and cannot be used as a label in PBASIC 2.5.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Eric Adams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=TW8p7p2GWuNyLMmyo3p1mzePucu_39rDWtpeNe8-0wpfCJc-59isCyH6iNwpTG9BE-UEeCWZVy26emfEBtRvxA]hugs102@b...[/url
Sent: Monday, December 22, 2003 1:10 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Re: fustrated beginer, easy loop question
You might try changing your program around a little.
Make DO a label with a colon after it ie... DO:
make your LOOP a GOTO DO and see what happens.
looks like your program is not looping and stopping at LOOP
Original Message
From: <Electragn@h...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, December 22, 2003 1:34 PM
Subject: [noparse][[/noparse]basicstamps] Re: fustrated beginer, easy loop question
> --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
> wrote:
> > Sorry ... I have too many things on my desk this morning, and I
> missed
> > your description of what's happening. Do you have the proper
> resistor
> > installed between the pin and the Stamp?
>
> Absolutely! No doubt, I've been able to wire up LED's since the 80's!
> [noparse]:)[/noparse] I really feel that there is no wiring problem, or LED polarity
> issue, correct resistor. The breadboarded LED does blink, usually only
> once when the program is run, and it blinks along with the surface
> mounted power LED every time.
>
> ............but just once, no loop! ever!!
>
> Isn't that totally strange or what?!?
>
> The laptop I have is a Dell Inspirion 7600 w W98.
>
> Where do I change serial port FIFO settings to minimum values anyway?
>
> BTW, thank you very much for the prompt reply.
> This is especially nice for a fustrated beginner.
>
> If yes, the problem is a weird
> > one that has to do with your serial port (I saw this while giving a
> > class last year in Europe).
> >
> > For a reason that I can't explain, some serial ports seem to let a
> > program run once then stop; this is especially true of laptops. One
> > thing to try is to change your serial port FIFO settings to minimum
> > values, this usually does the trick.
> >
> > -- Jon Williams
> > -- Parallax
> >
> >
> >
Original Message
> > From: Jon Williams
> > Sent: Monday, December 22, 2003 10:18 AM
> > To: basicstamps@yahoogroups.com
> > Subject: RE: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
> >
> >
> > There is nothing wrong with your code. What are you experiencing?
> Does
> > the compiler complain? If so, you may need to upgrade to our latest
> > release (Version 2.1, Beta 1). Does the LED not blink? Check your
> > connections -- you may have the LED in backwards (common error).
> The
> > negative (cathode) lead is identified with a flat edge on the body
> of
> > the LED. The positive (anode) side connects to P14 through a
> resistor
> > (typically 470 ohms).
> >
> > Happy Holidays.
> >
> > -- Jon Williams
> > -- Applications Engineer, Parallax
> > -- Dallas Office
> >
> >
> >
Original Message
> > From: Electragn@h... [noparse][[/noparse]mailto:Electragn@h...]
> > Sent: Sunday, December 21, 2003 11:32 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
> >
> >
> > Please help a frustrated beginer.
> > I just got a Parallax BASIC Stamp HomeWork Board, and
> > I can't even get thru Chapter #2!!
> >
> > Why in the heck won't this thing LOOP! All it does is
> > 14 goes "high" for just a second or two, then it quits!!
> >
> > ' Turn LED on and off. Repeat 1 time per second indefinitely.
> >
> > ' {$STAMP BS2}
> > ' {$PBASIC 2.5}
> >
> > DO
> >
> > HIGH 14
> > PAUSE 500
> > LOW 14
> > PAUSE 500
> >
> > LOOP
> >
> >
> > I know this seems real simple, but whats wrong?!?!?!?!
> >
> > Thanks to all
> > Electrajim
> >
> >
> >
>
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
> > The breadboarded LED does
> > blink, usually only once when the program is run, and it blinks along
> > with the surface mounted power LED every time.
>
> If the power LED is blinking as the other LED comes on, you might have a
> weak battery that is unable to provide sufficient voltage when the Stamp
> turns on the LED. Do you have a voltmeter that you can use to monitor the
> battery voltage *while* the program is running and the LED is on? If not,
> how about a new/fresh battery?
The connection of the LED in the HomeWork Board is a little different than
in the Board of Education.
In the BOE the power LED is on all the time the power is connected to the
board.
In the HWB, the LED is on only meanwhile the BASIC Stamp is executing a
program.
When the execution is done, the BASIC Stamp goes to sleep mode and the power
LED turns off.
This was implemented as a power saver feature, because the board is intended
to be powered with a 9V battery.
In this example, the problem is that the Editor is not recognizing the
DO...LOOP command.
So, this snippet is executed only once:
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
Then, the BASIC Stamp goes to sleep mode and the power LED goes off.
As Eric suggested, Electrajim can solve the problem with this code:
Repeat:
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
GOTO Repeat
Or simply inserting the PBASIC 2.5 directive using the PBASIC 2.5 button or
going to Directive>PBASIC>Version 2.5.
I'm assuming that Electrajim is using the latest Editor, as recommended in
the book (What's a Microcontroller? V2.0 or 2.1).
Saludos,
Aristides Alvarez
International Education Program Developer
aalvarez@p...
Parallax, Inc. www.parallax.com
California, USA
in Win98:
1) Go to your desktop.
2) Right-click the "My Computer" icon
3) Left-click "Properties"
4) Left-click the "Device Manager" tab
5) Find "Ports (COM & LPT)" in the hardware list; expand by
left-clicking "[noparse][[/noparse]+]"
6) Select (left-click) your programming port (i.e., Com1)
7) Left-click the "Properties" button (bottom of dialog)
8) Left-click to "Port Settings" tab
9) Left-click the "Advanced..." button
10) Move the Receive and Transmit sliders left to the Low (1) position
11) Left-click (Advanced) "OK" button
12) Left-click (Properties) "OK" button
13) Left-click (System Properties) "OK" button
You may want to restart the Stamp editor and try your code again. This
is a very peculiar thing that has to do with the port not resetting
itself correctly after the your program is downloaded, so the program
runs once and stops. Like I said earlier, I've seen this first-hand.
Happy Holidays -- and have fun with your BASIC Stamp!
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Electragn@h... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=axOjqXhnR-n6K0v5b0jR-znqdKJTl972g2In0OlNOwCBfAz7Gv-noP9Q9ZraWArBiDvBMTJ1K55TMYhu_-8]Electragn@h...[/url
Sent: Monday, December 22, 2003 12:34 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: fustrated beginer, easy loop question
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> Sorry ... I have too many things on my desk this morning, and I
missed
> your description of what's happening. Do you have the proper
resistor
> installed between the pin and the Stamp?
Absolutely! No doubt, I've been able to wire up LED's since
the 80's! [noparse]:)[/noparse] I really feel that there is no wiring problem,
or LED polarity issue, correct resistor. The breadboarded LED does
blink, usually only once when the program is run, and it blinks along
with the surface mounted power LED every time.
............but just once, no loop! ever!!
Isn't that totally strange or what?!?
The laptop I have is a Dell Inspirion 7600 w W98.
Where do I change serial port FIFO settings to minimum values anyway?
BTW, thank you very much for the prompt reply.
This is especially nice for a fustrated beginner.
If yes, the problem is a weird
> one that has to do with your serial port (I saw this while giving a
> class last year in Europe).
>
> For a reason that I can't explain, some serial ports seem to let a
> program run once then stop; this is especially true of laptops. One
> thing to try is to change your serial port FIFO settings to minimum
> values, this usually does the trick.
>
> -- Jon Williams
> -- Parallax
>
>
>
Original Message
> From: Jon Williams
> Sent: Monday, December 22, 2003 10:18 AM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
>
>
> There is nothing wrong with your code. What are you experiencing?
Does
> the compiler complain? If so, you may need to upgrade to our latest
> release (Version 2.1, Beta 1). Does the LED not blink? Check your
> connections -- you may have the LED in backwards (common error).
The
> negative (cathode) lead is identified with a flat edge on the body
of
> the LED. The positive (anode) side connects to P14 through a
resistor
> (typically 470 ohms).
>
> Happy Holidays.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Electragn@h... [noparse][[/noparse]mailto:Electragn@h...]
> Sent: Sunday, December 21, 2003 11:32 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
>
>
> Please help a frustrated beginer.
> I just got a Parallax BASIC Stamp HomeWork Board, and
> I can't even get thru Chapter #2!!
>
> Why in the heck won't this thing LOOP! All it does is
> 14 goes "high" for just a second or two, then it quits!!
>
> ' Turn LED on and off. Repeat 1 time per second indefinitely.
>
> ' {$STAMP BS2}
> ' {$PBASIC 2.5}
>
> DO
>
> HIGH 14
> PAUSE 500
> LOW 14
> PAUSE 500
>
> LOOP
>
>
> I know this seems real simple, but whats wrong?!?!?!?!
>
> Thanks to all
> Electrajim
>
>
>
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
--- Original Message ---
>> Sorry ... I have too many things on my desk this
morning, and I
>missed
>> your description of what's happening. Do you have
the proper
>resistor
>> installed between the pin and the Stamp?
>
>Absolutely! No doubt, I've been able to wire up LED's
since
>the 80's! [noparse]:)[/noparse] I really feel that there is no wiring
problem,
>or LED polarity issue, correct resistor. The
breadboarded LED does
>blink, usually only once when the program is run, and
it blinks along
>with the surface mounted power LED every time.
>
>............but just once, no loop! ever!!
>
>Isn't that totally strange or what?!?
>
>The laptop I have is a Dell Inspirion 7600 w W98.
>
>Where do I change serial port FIFO settings to
minimum values
>anyway?
>
>BTW, thank you very much for the prompt reply.
>This is especially nice for a fustrated beginner.
>
> If yes, the problem is a weird
>> one that has to do with your serial port (I saw
this while giving a
>> class last year in Europe).
>>
>> For a reason that I can't explain, some serial
ports seem to let a
>> program run once then stop; this is especially true
of laptops. One
>> thing to try is to change your serial port FIFO
settings to minimum
>> values, this usually does the trick.
--- Original Message ---
From: Electragn@h...
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop
question
>Please help a frustrated beginer.
>I just got a Parallax BASIC Stamp HomeWork Board, and
>I can't even get thru Chapter #2!!
>
>Why in the heck won't this thing LOOP! All it does is
>14 goes "high" for just a second or two, then it
quits!!
>
>' Turn LED on and off. Repeat 1 time per second
indefinitely.
>
>' {$STAMP BS2}
>' {$PBASIC 2.5}
>
>DO
>
> HIGH 14
> PAUSE 500
> LOW 14
> PAUSE 500
>
>LOOP
>
>
>I know this seems real simple, but whats wrong?!?!?!?!
>
>Thanks to all
>Electrajim
>
>
>
>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
>
>To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
>To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
>Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
Original Message
From: <daweasel@s...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, December 23, 2003 12:23 PM
Subject: Re: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
> Did you add the debug statement?
>
> --- Original Message ---
> From: Electragn@h...
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop
> question
>
> >Please help a frustrated beginer.
> >I just got a Parallax BASIC Stamp HomeWork Board, and
> >I can't even get thru Chapter #2!!
> >
> >Why in the heck won't this thing LOOP! All it does is
> >14 goes "high" for just a second or two, then it
> quits!!
> >
> >' Turn LED on and off. Repeat 1 time per second
> indefinitely.
> >
> >' {$STAMP BS2}
> >' {$PBASIC 2.5}
> >
> >DO
> >
> > HIGH 14
> > PAUSE 500
> > LOW 14
> > PAUSE 500
> >
> >LOOP
> >
> >
> >I know this seems real simple, but whats wrong?!?!?!?!
> >
> >Thanks to all
> >Electrajim
> >
> >
> >
> >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
> >
> >To visit your group on the web, go to:
> > http://groups.yahoo.com/group/basicstamps/
> >
> >To unsubscribe from this group, send an email to:
> > basicstamps-unsubscribe@yahoogroups.com
> >
> >Your use of Yahoo! Groups is subject to:
> > http://docs.yahoo.com/info/terms/
> >
> >
>
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
>
[noparse][[/noparse]Non-text portions of this message have been removed]
DEBUG activates the port and keeps the DTR from putting the Stamp in
reset. Yes, putting a DEBUG statement into a program with a finicky
port will often solve the problem.
Happy Holidays.
-- Jon Williams
-- Parallax
Original Message
From: daweasel@s... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ORotS7bvHKKbPI5FMdWtkzg4LSYVWX2WLjkixJTF9oMICJLgn5bZBZX21Y2tOO9al-XEAszftgNQ]daweasel@s...[/url
Sent: Monday, December 22, 2003 5:24 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop question
Did you add the debug statement?
--- Original Message ---
From: Electragn@h...
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] fustrated beginer, easy loop
question
>Please help a frustrated beginer.
>I just got a Parallax BASIC Stamp HomeWork Board, and
>I can't even get thru Chapter #2!!
>
>Why in the heck won't this thing LOOP! All it does is
>14 goes "high" for just a second or two, then it
quits!!
>
>' Turn LED on and off. Repeat 1 time per second
indefinitely.
>
>' {$STAMP BS2}
>' {$PBASIC 2.5}
>
>DO
>
> HIGH 14
> PAUSE 500
> LOW 14
> PAUSE 500
>
>LOOP
>
>
>I know this seems real simple, but whats wrong?!?!?!?!
>
>Thanks to all
>Electrajim
>
>
>
>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
>
>To visit your group on the web, go to:
>http://groups.yahoo.com/group/basicstamps/
>
>To unsubscribe from this group, send an email to:
>basicstamps-unsubscribe@yahoogroups.com
>
>Your use of Yahoo! Groups is subject to:
>http://docs.yahoo.com/info/terms/
>
>
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....