Moving with the motors.

Fill in this table to record the results of experimenting with the robot using the ForwardBackward program .

Value for setSpeed

Value for sleep time

How many seconds did it take?

How far did the robot travel?
(be specific, in cm, distance moved and degrees turned to which direction if any)

How close did it return to the same spot as it started? (in cm)

720

500

     

360

500

     

360

1500

     

180

250

     

Motor.B=180
Motor.C=0

500

     

Motor.B=180
Motor.C=360

1000

     
Motor.B=10
Motor.C=720
1500      

Use the table above to predict what values would be needed to make the robot move specific distances.
Test chairyour answers by writing a program to make the robot move as indicated.

Motor B speed Motor C speed Time
(in milliseconds)
Distance moved
360 360   1 foot (12 inches)
    3000 1 foot (12 inches)
0 360   turn around 180o
    2000 turn around 360o

Assignment: Make the robot move in a square around the leg of a chair.


Top Grade:
Make the robot travel in a "W" shaped path about 1 foot long on each side.