Introduction - If you have any usage issues, please Google them yourself
This is my first car tracing, the program is very simple, only a dozen lines. Mainly used two external interrupt. Follows is the black-white lines of the track. Sensor part of the circuit you can find online. The principle is if the sensor in a black background, the output high. If the white line is detected, the output low, the two received a single chip sensor P32, P33. Could be achieved through the functions of a white track. Sensor I use the ST168. ST178, ST188 can. Proteus simulation document used to replace the two switches, you can observe the motor response.