Control BS2 from PC
Tronic (Greece)
Posts: 130
Hi I'm trying to control my basic stamp 2 in real time to move servos from a visual basic
program through Basic Stamps serial programming port the same way it does in GUIBOT
program·I found in parallax site.
The problem is that although I succesfully have send·serial data using the P16 I cannot
sent back data to PC. Can I guess that the out port from bs2 is P17 or I'm wrong?
I need the out port from the serial programming port to modify the code for handshaking
with visual basic and/or flow control.
the stamp source is:
pos VAR Byte
servo VAR Byte
start:
·· SERIN 16,16468,[noparse][[/noparse]servo,pos] 'get serial input from PC
move:
·· PULSOUT servo,pos ' send data to position servos
·· PAUSE 10
· GOTO start··· ' do it again
END
If someone can help!
·
program through Basic Stamps serial programming port the same way it does in GUIBOT
program·I found in parallax site.
The problem is that although I succesfully have send·serial data using the P16 I cannot
sent back data to PC. Can I guess that the out port from bs2 is P17 or I'm wrong?
I need the out port from the serial programming port to modify the code for handshaking
with visual basic and/or flow control.
the stamp source is:
pos VAR Byte
servo VAR Byte
start:
·· SERIN 16,16468,[noparse][[/noparse]servo,pos] 'get serial input from PC
move:
·· PULSOUT servo,pos ' send data to position servos
·· PAUSE 10
· GOTO start··· ' do it again
END
If someone can help!
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
of the existing serial port of my BS2 boebot board. That the reason I use P16 port for input.
But i can't find the port to output data (P17 maybe?) to use it in basic stamp code for flow control with data sended from visual basic.
for i.e:
serin 16\17 , 16468, [noparse][[/noparse]servo,pos] 'get serial input from PC
I saw real time control of servos implemeted in the "TEST" section of GUIBOT software that does something simular but there is no source code available to see how it is done.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
In the meantime enjoy a photo of my custom made boe bot crawler. (the cell phone is for comparison reasons)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
the cat on the movie is my sister's and is very attractive to my crawler (IR sees white things from far)
just unrar and enjoy the show (it is in ASF format).
ps: sorry about the rar & parts thing but i was not able to upload any file bigger than 300Kb!!!)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·