PDA

View Full Version : Integration of BS2 into C++



Kh3ldrin
08-31-2008, 12:05 AM
Hi guys, i managed to get my BS2 to run ultrasonic sensors and servos, but now i am stuck at that. My sensors and servos need to be installed on a robot thats controlled using C++ codes, so just wanna ask is there anyway of integrating BS2 into C++ codings? or rather just get C++ to read my BS2's received info? Thanks

Mike Green
08-31-2008, 12:47 AM
The BS2 can send and receive serial data. C++ programs can also send and receive serial data. You'll have to check with your C++ system to see how to do that. The chapters in the Stamp Basic Manual on the SERIN and SEROUT statements will show you what to do on the Stamp end.

There is no standard way to package the information back and forth. The Stamp could transmit the raw sensor information to the PC and the PC could send raw servo position information back to the Stamp or you could come up with some other scheme.

Kh3ldrin
09-03-2008, 12:15 PM
ok thanks i will try on that.