Question 5:

Time for some driving. Using the wait for rotation again, figure out how far to rotate to make the car turn right. Then add to the program to make the car drive in a square(forward, right turn, forward, right turn, etc.)

 

 

Problem 5 is just some practice with motors. Remember that to turn, one motor goes forward and one goes backward. To shorten the program, write a section that goes straight for 12 inches and then a section that causes the robot to turn. Enclose both sections in a loop that executes 4 times.

 

 

Question 6

All Questions