... | ... | @@ -325,6 +325,11 @@ The code makes sure that the tacho count is reset once the program is executed. |
|
|
|
|
|
#### Result:
|
|
|
|
|
|
The progam was executed in a darkened room. The goal was for the robot to drive towards the door where the light is brightest. The experiment is shown in the video (Fig.15):
|
|
|
|
|
|
##### Fig.15 - Results of using the light sensor with a motor
|
|
|
|
|
|
The video shows the robot drive and navigate from the back of the room where the light level is low. The motor turns the light sensor while conducting readings and the robot is successfully able to drive towards the door and exit the room. The video also shows the bumper and ultrasonic sensor at work. When the robot bumps into an object the 'escape' behavior is activated and when the robot hits an unseen object the 'avoid' behavior is used.
|
|
|
|
|
|
|
|
|
## References:
|
... | ... | |