Serial to Computer
Dan Previte
Posts: 3
I have a Basic Stamp 2 on a Homework Board connected to my PC with the serial port. I have been trying to get the stamp to send a string to the pc every couple of seconds to emulate call logs from a phone system. So far I'm lost.
I can't find much on the SEROUT command, and I am not sure how to test to see if it is sending the string at all.
What I have so far looks like this:
It's just code I saw on a website. No idea what most of it means.
So basically, what do I do to send a string to the PC, and how to I watch it being sent on the PC?
Thanks
I can't find much on the SEROUT command, and I am not sure how to test to see if it is sending the string at all.
What I have so far looks like this:
'{$STAMP BS2} 'STAMP directive (specifies a BS2) '{$PBASIC 2.5} DO N9600 CON $4054 ' 9600 baud, inverted. SEROUT 0,N9600,[noparse][[/noparse]"Hello!"] PAUSE 500 DEBUG "Looping", CR LOOP
It's just code I saw on a website. No idea what most of it means.
So basically, what do I do to send a string to the PC, and how to I watch it being sent on the PC?
Thanks
Comments
When adressed to 'pin' 16 SEROUT will go to your serial programming cable. (see the help files for more info on this)
Succes,
Klaus
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Try the Stamp Tester
http://hometown.aol.com/newzed/index.html
·
http://www.rentron.com/VisualBasic.htm
Hope it helps!
·
You should be able to apply the tuts over at rentron to your project using VB.Net, again if you have any questions I will gladly try to help!