Shop OBEX P1 Docs P2 Docs Learn Events
Control BS2 from PC — Parallax Forums

Control BS2 from PC

Tronic (Greece)Tronic (Greece) Posts: 130
edited 2004-08-27 14:12 in Robotics
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!

·

Comments

Sign In or Register to comment.