|
|
|
|
4
|
Connecting the Components
MOTOR CONNECTION
- The left motor is connected to M1 port of Auton shield.
- The right motor is connected to the M2 port.
LINE ARRAY CONNECTION
Connect the line array sensor to the Auton shield with a 7 pin RMC.
|
|
5
|
Line Tracer Logic
- The line array sensor has 5 sensors, so it should have 32 combinations.
- Practically not all combinations comes into working scenario, so only the required combinations are marked and programmed.
- To avoid unnecessary confusion priority is given.
- At junctions either right or left can be programmed, but for the whole priority should remain the same.
|
|
6
|
Line Tracer Programming Tips
- First the outer most sensors S1 and S5 are checked, depending on their output the inner sensors are checked.
- if S1 & S5 are low then the inner sensors S2,S3,S4 are checked for various combinations.
- if S1 & S5 are high then the priority is introduced by checking the inner sensors.
- if S1 is high and all other sensors are low then the robot turns left.
- if S5 is high and all others are low then the robot turns right.
|
|
7
|
Line Tracer Sample Program
Below is the program for simple line tracer. Click the below button and upload the program.
sample program
|
|
|