Control the basic stamp with my PC
solix
Posts: 7
Hi, I have a BoeBot using the basic stamp and I wish to control it with a program I'll make using C++.
I'd just like to be able to know what's in the "debug terminal" and to be able to send a "signal" to the basic stamp to tell him I'm ready.
If any one knows the answer, that would be really cool
I'd just like to be able to know what's in the "debug terminal" and to be able to send a "signal" to the basic stamp to tell him I'm ready.
If any one knows the answer, that would be really cool
Comments
But i'm stuck at the really beginning : I don't know how to send "signals" to my BoeBot with my C++ program. I must use the basic stamp editor but it's not what I want [noparse];)[/noparse]
Do you have any idea ?
As for communicating with the BASIC Stamp, you could take a look at the BASIC Stamp Tools for Linux source code, but I don't know how portable it is.
On the BS2 side, you need to use a "SERIN" statement to recieve data from your PC.
SERIN 16, 16468, [noparse][[/noparse]DEC MyVar]
On the PC side, you need to send out the serial port some data.
The BS2 will 'pend' waiting for the data from the PC.
Oh, and note everything the PC sends to the BS2 will be 'echoed' back by the BS2 hardware, so
if you want to recieve data from the BS2, you'll need to 'filter' out that echo in your C++ program.
Typically people use 9600 baud to talk to the BS2.
http://www.serialporttool.com/NCD/R8X_VB2008.htm
Brian
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Imagination is more important than knowledge..." Albert Einstein