Your robot will turn when one side moves faster than the other side, and it will turn toward the side that moves slowest. This includes sides moving backwards. (What?!) When only one side moves its called a pivot, like a move in Basketball. So here’s a tiny program for making your robot turn in place (called ‘spin‘) to the right (clockwise) for 2 seconds.
This tells the left motor (on port 3) to run at full (100%) power: motor(3,100) and the right motor (on port 0) to run backwards ( – ) at full (100%) power: motor(0,-100), then wait for 2 seconds: msleep(2000) before turning all the motors off: ao() It should look like the video below. http://www.youtube.com/watch?v=45uZ-PxkVLI
Problems? Click here.