Shop OBEX P1 Docs P2 Docs Learn Events
Serial Data from stamp(rev 1) — Parallax Forums

Serial Data from stamp(rev 1)

ArchiverArchiver Posts: 46,084
edited 2003-12-19 14:21 in General Discussion
In the debug mode I have to toggle the dtr Line to get my led to flash,,
??
When I run it just by turning on the power I get one blink and that's
it



'{$STAMP BS2}
'{$PORT COM1}
' $PBASIC 2.5}

idx VAR Word
field3 VAR Word

Setup:
idx = 1

Main:
DO
RANDOM field3
field3 = field3 // 10 + 90
DEBUG DEC4 idx, ",+032,12.1,-", DEC3 field3, ",-095,04.3,1,014,015",
CR
PULSOUT 0,5000 'My Led blinking
idx = idx + 1
PAUSE 200
LOOP

END

Original Message
From: Brian E Boothe [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=nKWZXqWMGtlBq851XIojqi2PKvRCS-6Nz_jIDSEtTBUdZFgZmqkvwqOuGHkvow_Zac3Y-sCDoR5kCJ8]subrian@m...[/url
Sent: Thursday, December 18, 2003 2:15 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Serial Data from stamp

I NEED TO HOOK AN LED TO PORT0 TO SEE THE Polls im still not getting
anything from my stamp in my vb program it is setup For COM1 in my
program
In VB. I wanna blink an LED every poll

Original Message
From: Jon Williams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=h3aUM2bcP0JaCILQXpIB8HCkDOSvkNeqhEwv009o384s6p-h3BIQNZzhWNQbbMjduCNWiMv8L3STi0R0cD1Htw]jwilliams@p...[/url
Sent: Thursday, December 18, 2003 2:08 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Serial Data from stamp

If you run the program in your BASIC Stamp editor it will open a DEBUG
window and you'll see the data -- yes, ASCII strings. Now, close the
BASIC Stamp editor (which will free the programming comm port) and run
your VB program selecting the comm port you use for programming. The
baud rate will be 9600.

It will be up to your VB program to parse and process the data.

The example below was not intended to be THE answer, just something to
get you started. Now that you can see how the "simulator" is done, you
can adjust any way you choose.

-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office


Original Message
From: Brian E Boothe [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=nKWZXqWMGtlBq851XIojqi2PKvRCS-6Nz_jIDSEtTBUdZFgZmqkvwqOuGHkvow_Zac3Y-sCDoR5kCJ8]subrian@m...[/url
Sent: Thursday, December 18, 2003 1:35 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Serial Data from stamp


I need it to change the 0001 field also

Original Message
From: Jon Williams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=h3aUM2bcP0JaCILQXpIB8HCkDOSvkNeqhEwv009o384s6p-h3BIQNZzhWNQbbMjduCNWiMv8L3STi0R0cD1Htw]jwilliams@p...[/url
Sent: Thursday, December 18, 2003 8:55 AM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Serial Data from stamp

Do you care about baud rate? If your PC program will work with the
Stamp's DEBUG output (9600 baud) then you can use this as-is, otherwise
change it to SEROUT (on pin 16 if you want to use the programming port)
for the baud you need.

In your example the only fields that changed were the index and the
third so this little demo does that (using RANDOM to change field 3).

' {$STAMP BS2}
' $PBASIC 2.5}

idx VAR Word
field3 VAR Word

Setup:
idx = 1

Main:
DO
RANDOM field3
field3 = field3 // 10 + 90
DEBUG DEC4 idx, ",+032,12.1,-", DEC3 field3, ",-095,04.3,1,014,015",
CR
idx = idx + 1
PAUSE 2000
LOOP

END




Original Message
From: Brian E Boothe [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=nKWZXqWMGtlBq851XIojqi2PKvRCS-6Nz_jIDSEtTBUdZFgZmqkvwqOuGHkvow_Zac3Y-sCDoR5kCJ8]subrian@m...[/url
Sent: Thursday, December 18, 2003 8:27 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Serial Data from stamp



I Need the basic stamp the Input into my Serial port on my PC the
following String, 0001,+032,12.1,-093,-095,04.3,1,014,015
{Then a Pause For 2 Seconds}
0003,+032,12.1,-092,-091,04.3,1,014,015
{Then a Pause For 2 Seconds}
0004,+032,12.1,-098,-097,04.3,1,014,015
0005,+032,12.1,-095,-099,04.3,1,014,015
0006,+032,12.1,-091,-092,04.3,1,014,015
0007,+032,12.1,-099,-090,04.3,1,014,015
.
. ect ect




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/



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/



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/

Comments

Sign In or Register to comment.