Quote:
|
Originally Posted by Pattyta
Sorry for that.. Thanks for your help. its just that i am really stressed about this and i feel i can't handle it anymore
ok here i go again
i think i have the code working for the line following with two sensors.
is there any way of knowing when to stop other than just timing it with like a stopwatch? to avoid the robot to hit the wall and be stuck to it ?
|
There's 2 ways you can detect the end of travel:
1. Your time and stop watch idea.
2. You could install a microswitch (digital switch) and a bumper to the front of your robot. If you were following the line, and the bumper sensing switch was closed, you would know you hit the wall.