View Full Version : Newbie question about PC-BS2 Serial interface

02-18-2005, 10:42 AM
Hello all - I'm new to these forums and BS2 programming, so I apologize if this is one of those common questions or anything.

I have a device which consists of a Parallax BS2 board to control two servo controllers moving a stationary object about an x-y plane. I can successfully load programs onto the BS2 and can control the servo controllers accurately and as desired using the BASIC Stamp Editor IDE.

I now need to set it up such that a C++ program I will write will issue commands to the BS2, presumably waiting in a "serin" loop, to control the device.

I have never dealt with using a C++ program to send out serial data to a BS2 and have the BS2 then execute several commands, and was wondering if there are any available online references or sections of sample code I might be able to use for reference. I'm an experienced c++ programmer but am unfamiliar with any serial
communication libraries and how to sync them up with the BS2.

Any help in this area you could provide, or pointing me in the right direction, would be greatly, greatly appreciated!

Thanks ahead of time for any help.