Abstract
Smart car is an integrates system ,which is a collection of functions such as perception, planning and decision making,automatic running,applicated to several subjects as automatic control, pattern recognition and sensor technology, automobile electronics, electrical, computer,machinery and so on,and it is a typical high-tech complexes,which has an important military and civilian value.The paper introduces the overall framework,hardware design,camera image acquisition module,photo electrical encoder speed acquisition module,implementation module circuit design, power management module and system software design of the racing car. As for the hardware design, the racing car system, with single-chip MC9S12XS128 as its system control processor,uses CMOS digital camera to obtain the real-time track information, extracts the black line on the contest lane with the edge detection method, and calculates position deviation between the car and the black line, distinguishes the different shape of the lane, then PD control algorithm for steering engine steering control was given in this paper. Through the photo electrical encoder named YZ30D4S-2NA-200 to attain the real-time car speed, and uses incremental P strategy to achieve the speed closed-loop control.