Ping Servo Programming
Hi I have been trying to write a program to make my Boe-Bot Robot be able to avoid obstacles without stopping to Ping Around. I want it to navigate smoothly and I was wondering how you would write the program to make the bot turn left/right AND have the Ping Servo fave right/left. please post any ideas or thoughts thanks.

Comments
The one downside to this approach is your robot is looking and moving, so it's possible to be looking the wrong way when an obstacle is encountered.
Heck, I like that, I'll try it myself. Forget I even mentioned it. This conversation never happened! erco? Dunno him. He never worked here.
http://www.youtube.com/watch?v=_roaoDC7NyQ
My video of simple BoeBot S-turns at http://www.youtube.com/watch?v=Z_YUsDeuT-c
You'll tweak the code to make your bot run similarly (curve L/R the same amount) and add the PING routine during/instead of the PAUSE 20, and decide when/how long/which direction to turn. Let us know how you make out.
' {$STAMP BS2} ' {$PBASIC 2.5} 'boebot S turns 'left wheel pin 13 slow 775 fast 850 'right wheel pin 12 slow 725 fast 650 left: FOR B0=1 TO 100 PULSOUT 13,780 PULSOUT 12,650 PAUSE 20 NEXT right: FOR B0=1 TO 100 PULSOUT 13,900 PULSOUT 12,735 PAUSE 20 NEXT GOTO left