Let's Make Robots!

Line follower on changing contrast

I am making a line follower using an ATmega8

Now the problem is the testing of line follower, there is a black line over a white surface and then after a while, there is a white line over a black surface....

The robot will make a start on any of the corners...so it is  impossible to tell whether it is a white line or black line...and also in middle, the contrast will change...

I have to make the program in such a way that it will detect the change in contrast and continue its work

I thot this can be done in programming part..so posted here...

Line Follower using Atmega8

Hi all, I am new here and about to make a debut in robotics with a simple line follower robot.

I have chose AVR ATmega8 as my microcontroller because I found out that we can chose which pins we want as input and which ones as output. So this seems pretty cool for a microcontroller. Also i figured out that it is cheaply available here.