Shop OBEX P1 Docs P2 Docs Learn Events
Integration of BS2 into C++ — Parallax Forums

Integration of BS2 into C++

Kh3ldrinKh3ldrin Posts: 11
edited 2008-09-03 05:15 in BASIC Stamp
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

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-08-30 17:47
    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.
  • Kh3ldrinKh3ldrin Posts: 11
    edited 2008-09-03 05:15
    ok thanks i will try on that.
Sign In or Register to comment.