|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Using the optical sensors is rather easy to follow the line on the ground. All you need is 2 optical sensors. 3 would be more fail-safe and would allow you to travel at a faster speed.
Basically, just mount the optical sensors fairly close to eachother so that they can hit the tape when the tape is between them. Testing will be needed to be done to determine the best "gap" between the sensors. Mount them facing the ground so that one is on the right side of the line, and one is on the left. Then, basically program your robot to move at reduced speed. Program it to do this: if right_sensor_senses AND left_sensor_doesn't_sense: turn_left if right_sensor_doesn't_sense AND left_sensor_senses: turn_right else (otherwise) move_both_wheels_same_speed Basically, the robot will turn, while still going straight, and follow the line if one sensor can't see anything, until both do. Do do the last part as an "if" statement. This is the most basic way of programming the robot to follow the line. It allows the robot to still move while seeking out the line. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What Should Be Done With Autonomous? | xavior06 | FRC Game Design | 91 | 28-04-2005 19:00 |
| How do you approach your animation? | Koko Ed | 3D Animation and Competition | 7 | 27-01-2003 21:42 |
| Autonomous Period | Andy Grady | General Forum | 73 | 20-01-2003 21:34 |
| EduRobot autonomy | dlavery | Robotics Education and Curriculum | 3 | 02-12-2002 10:08 |
| Proactive approach to scoring dilemmas | reisser | 3D Animation and Competition | 0 | 02-07-2002 21:54 |