Talking to the BS2
alnajjar1
Posts: 110
I am creating an exhibit where the visitor can decide what happens. for example: they can decide on how long they want a timer to go before a buzzer sounds. The BS2 does all the work while a simple Visual Basic application on a PC can take the user's input and relays it to the BS2.
I have done serial communication with the Stamp before but not like this. My thought is for the PC to send an alert to the BS2 that information is forthcoming. Then the Stamp queries the PC for the specific information it needs.
Anyone with experience doing this or can point me to examples?
Many thanks in advance,
Al
I have done serial communication with the Stamp before but not like this. My thought is for the PC to send an alert to the BS2 that information is forthcoming. Then the Stamp queries the PC for the specific information it needs.
Anyone with experience doing this or can point me to examples?
Many thanks in advance,
Al
Comments
Since the Basic Stamp also, can accept commands from the Serial port, I see no reason why this couldn't be done. Getting information from the computer and sending it to the COM port may not be an easy task though. Good luck!
To use Serin pin, buad, data, what would be the "pin" in order to accept data?
thanks
Note that you can't use DEBUG at the same time. http://forums.parallax.com/showthread.php?87697-BS2-SERIN-Pin-16-Problems
More useful general serial info at http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv16.pdf