' Copyright 2002 Pololu Corporation. ' ' F R O N T B U M P E R R O B O T ' This program demonstrates how to use the Pololu micro dual serial motor ' controller with a BASIC Stamp II. A basic circuit is mounted on a LEGO ' chassis with differential drive and two front bumpers. ' ' The program makes the robot drive forward until a bumper hits something, ' at which point the robot backs away and turns from the obstacle. For ' more details, see http://www.pololu.com/projects/prj0002/ ' *** Disclaimer *** ' This program is intended solely as an example of how to use ' Pololu products. Although we try our best to test the functionality of ' sample code, it is provided "as is", and we provide no guarantees that it ' is error free or follows good programming practices. Please be careful ' whenever you are building or playing with robots and electronics. If you ' have any comments or questions, please contact support@pololu.com. '{$stamp BS2} 'Let the editor know this code is for a Basic Stamp 2 '---------***I/O lines RBUMP var IN6 'right front bumper input (0=hit something) LBUMP var IN7 'left front bumper input MC_RESET con 8 'Pololu micro dual serial motor controller reset line MC_SOUT con 10 'serial line to motor controller dirs = (1<