You only need 2 Photoresistors. Use one on one side and the other on the other side. If any of those touches the white line, then turn in that direction. Just connect them up to a microcontroller and program it or, connect each photoresistor in the path to the motor so it slows the motor when it sees white.http://www.radioshack.com/product/index.jsp?productId=2062590 (http://www.radioshack.com/product/index.jsp?productId=2062590)
You only need 2 Photoresistors. Use one on one side and the other on the other side. If any of those touches the white line, then turn in that direction. Just connect them up to a microcontroller and program it or, connect each photoresistor in the path to the motor so it slows the motor when it sees white.http://www.radioshack.com/product/index.jsp?productId=2062590 (http://www.radioshack.com/product/index.jsp?productId=2062590)
thanks for the reply..
sorry. i;m a real beginner to robotics.. do u mind explaining how this work?? thank you very much
You only need 2 Photoresistors. Use one on one side and the other on the other side. If any of those touches the white line, then turn in that direction. Just connect them up to a microcontroller and program it or, connect each photoresistor in the path to the motor so it slows the motor when it sees white.http://www.radioshack.com/product/index.jsp?productId=2062590 (http://www.radioshack.com/product/index.jsp?productId=2062590)
u mean something like this?
if left_photoresistor detects more light than right_photoresistor
then turn robot right
if right_photoresistor detects more light than left_photoresistor
then turn robot left
if right_photoresistor detects about the same as left_photoresistor
then robot goes straight
then how am i going to make the robot goes backward when it going nearer to the white line??
anymore, how the circuit design look like??
sorry for the troubles