dilluns, 29 de maig del 2017

EXERCISE 86

Sound sensor

Program a robot that works as follows:

- It goes straight on during 3 seconds after making a loud noise
- It stops.
- It makes a U-turn
- It returns to the original position
- It makes a U-turn


EXERCISE 85

Touch sensor

Program a robot that works as follows:

Use the touch sensor to detect an object. If that happens, program the robot to avoid the impact.


EXERCISE 84

Ultrasonic sensor

Program a robot that works as follow:

If an object is detected (less than 20cm), the motors start to move during 2 seconds.