PDA

View Full Version : line follower to follow both white and black line.



gau3tam
01-18-2009, 10:12 AM
friends i need help from u
i am makin a line follower that must follow both white and black line in the same event i.e for half the track it follows white line and then follows black line.
i will be using a sensor array having 5 sensors
plz let me know wat modifications must i make to ensure completion of the task
well i have made a simple line follower that follows either a white or a black line alone but not both of them simultaneously

tijoseymathew
01-19-2009, 06:07 AM
are you using a uC then its a simple case of identifying the background color from the sensor farthest away from the central sensor.
If you are not then use the farthest sensor to control the signal from the middle sensor, so that the control lines will feel that its always on a single coloured line.

gau3tam
01-19-2009, 08:18 PM
thank u very much
yes i am using atmega16
i hav used a condition to check dat the farthest sensors are of opposite color to dat detected by center and accordin to the color of center sensor the appropriate(white or black line) line follower algo is called.