How to use roborealm with a camera on your robot that is running a BS2 and sabertooth.
On the Basic Stamp put in a program that is a simple “controll” using the DEBUGIN function. Connect the Stamp to the Sabertooth like you would do normally using your preferance of serial communication or PULSOUT. Don’t forget to set the dip switches on the sabertooth to the proper function!
Then on the computer using the debug console/terminall test if your code works correctly by using keyboard keys to send a character to the basic stamp. I used the wasd idea, but instead of the letters I used the numbers 5,1,2,3 on the keypad.
All seems like the normall way to run a bot using the basic stamp 2 and the computer but this is where the roborealm comes in. In roborealm there is the option to run a VBScript and using that you type up a script that uses the WshShell.Sendkeys component. And then send the keys to the debug window of parallax’s software.
There you go, getting all the programs to interface correctly. I know that roborealm has the function to send serial data but I was not able to get it work correctly getting the error “Cannont stablish a connection”, also you could get rid of the BS2 and useing a TTL converter IC but then interfacing all the sensors would prove to be difficult and more work.