Thursday, November 18, 2010

Follow the Guidelines

1. The robot is trying to sense light and dark.
2. It should turn right when it sees light because it needs to go back on the line.
3. It should turn left when it sees dark because it needs to go back to the left edge of the line.
4. (56+35)/2 = 46
5.
i. dark
ii. light
iii. light
iv. dark
6.
i.






ii.  




iii. 

iv.

7.
i. left (dark)
ii. left (dark)
iii. right (light)
iv. left (dark)
8. To make the robot follow the line, it must turn to the right when it sees light and turn to the left when it sees dark. Once it completes this action, it starts over again.
9. The room is probably lighter in the morning, so it is not able to easily distinguish the difference between the line and the floor. The weather and ambiance of the room that day could also affect the sensor readings. She needs to recalculate the threshold value and adjust her programming accordingly.
10. 
i. yes
ii. Instead of starting the robot on the left side of the line, you would have to start it on the right side of the line, assuming that the threshold values are the same. It would turn off the right side of the line rather than the left side of the line, tracing the right side of the line.
11.
i. Yes, if the sensor was not placed at the front of the robot, it would not be able to sense the line as well and would not turn properly. The robot would go way off the curve before it sensed that it needed to turn.
ii. If you raise the sensor, the threshold will have to be higher because more light would be sensed. If you lower the sensor, the threshold will have to be lower because less light would be sensed.
iii. It will work if you place the robot on the right side of the line to begin with.
12. It tracks the right side of the line because when the robot sees light, it will turn to the left. When it sees dark, it will turn to the right. We switched the behaviors when the robot senses light and dark.
13. It would be useful if the robot is near the edge of a cliff and might track the edge on the right side in order to stay on the cliff.

No comments:

Post a Comment