Question 10:

Write a program that makes the car go forward until something is closer than 25 cm then turn right to avoid object.



Problem 10 uses the same sensor to avoid the object. Start the motors forward, when you detect an object within 25 cm, turn right using the rotation sensor to know when you have made a full right turn. Turn on the motors forward again and loop.



Question 11

All Questions