【正文】
economy, at the same time ,meeting the human for the growing material. This design takes the MCU as the car detection and Control Unit. Making up of DC motor, photoelectric sensors, dynamic scanning display circuit and power circuit and other circuit to form. The system is controlled by MCU and makes the car move forward, backward and steering, electric car tracing through the RPR220 type phototubes realized. Obstacle avoidance sensors and the ultrasonic reflecting type infrared sensor detection objects, by adjusting the sensor and the distance between the object and the installation position of sensor, can achieve precise detection. Based on these pleted and reliable hardware design, It will be able to control the car accurately. The design takes the key of MCU as data processing and output control unit. To make the car run through the sensors collecting signal which analysis by the SCM to control motor run. It will display the speed really from the digital, and adjust the speed by the button. Key words: Microcontroller DC motor Obstacle avoidance Reflective infrared sensor III 目 錄 摘要 ....................................................................................................................................... I Abstract ............................................................................................................................... II 目錄 ..................................................................................................................................... III 緒論 ...................................................................................................................................... 1 1 設(shè)計(jì)方案 ........................................................................................................................ 3 總體設(shè)計(jì) ..................................................................................................................... 3 單片機(jī)控制模塊 ......................................................................................................... 3 主控模塊 .................................................................................................................. 5 復(fù)位電路 .................................................................................................................. 6 時(shí)鐘電路 .................................................................................................................. 6 顯示模塊 .................................................................................................................. 7 電源的選擇 ................................................................................................................. 7 2 硬件設(shè)計(jì) ........................................................................................................................ 8 電機(jī)的驅(qū)動(dòng)模塊 ......................................................................................................... 8 避障模塊 ..................................................................................................................... 8 驅(qū)動(dòng)電路 ..................................................................................................................... 9 紅外對(duì)管尋跡模塊 ................................................................................................... 10 紅外線尋跡的原理 ................................................................................................ 10 紅外線模塊的安裝 .................................................................................................11 無(wú)線遙控模塊 ........................................................................................................... 12 無(wú)線遙控工作原理 ................................................................................................ 12 PT2262/2272 芯片 ................................................................................................. 13 伺服電機(jī)驅(qū)動(dòng)模塊 ................................................................................................... 14 3 軟件設(shè)計(jì) ...................................................................................................................... 17 總體軟件設(shè)計(jì) ........................................................................................................... 17