hi all,

need help here...im new in pic...
i would like to make a line tracer robot....the function would be like this....

there is a grid line field, i mean a lot of horizontal and vertical lines make a lot of square.
so the robot will first follow a straight vertical line, and after it pass through 7 horizontal lines, it will turn 90 degrees, and then it will go straight again and after it pass 4 horizontal lines, it will stop for few seconds and it will do some other jobs using different motor.
so basically the robot will move in 'L' shape.

im using power window motor, and pic16f877 as my controller....

thank you