... | ... | @@ -263,6 +263,7 @@ class Escape extends Thread |
|
|
The car behaves as expected. It starts driving according to the light readings, where it drives in the direction with the most light. However if an object comes close, the ultrasonic sensor takes control and the robot turns toward the area with the most space. If the object is not detected by the ultrasonic sensor the robot will detect the object through the touch sensors on the bumper and make the reverse and turn away from the encountered object. This behavior is seen in Fig.10:
|
|
|
|
|
|
[![image alt text](http://img.youtube.com/vi/q5wdHOUkjGo/0.jpg)](http://www.youtube.com/watch?v=q5wdHOUkjGo)
|
|
|
##### Fig.10 - Results from experiment
|
|
|
|
|
|
## Exercise 4: Add a third motor to turn the light sensor
|
|
|
|
... | ... | |