【正文】
e RW_CLR PORTBamp。具體電路如圖所示:圖312 蜂鳴器報警電路 電機驅(qū)動電路采用集成芯片L298驅(qū)動電路電路控制電機,簡單方便,如圖所示。方案 2:采用霍爾傳感器,計算輪子的圈數(shù),優(yōu)點操作簡單,電路容易實現(xiàn),缺點只能記車輪的整圈數(shù)。經(jīng)過兩個方案對比,應選擇方案2,半臂A/D采集光強。方案 1:采用超聲波模塊避障,優(yōu)點避障距離精確,操作復雜,實現(xiàn)較困難。第3章 硬件設計方案 1:采用 ATmeg16單片機對信號處理,優(yōu)點速度快,功能強大,但價格貴,操作較復雜,不適合初學者方案 2:采用 AT89c51單片機對信號處理,優(yōu)點操作簡單,接口方便,具備所有單片機的基本功能,容易學,價格便宜。 設計的目的和意義隨著數(shù)字技術(shù)的快速發(fā)展,數(shù)字技術(shù)被廣泛應用于智能控制的領域中。它適合于實時控制,可構(gòu)成工業(yè)控制器、智能儀表、智能接口、智能武器裝置以及通用測控單元等。關鍵詞 單片機 傳感器 L298 A/D LCD12864 AbstractWith the development of the digital technology, digital technology has been widely applied in the field of intelligent control. MCU with small volume, plete functions, low price, convenient development advantage by many electronic system designers favor. It is suitable for realtime control, can form industrial controllers, intelligent instruments, intelligent interface, intelligent weapon device and universal measurement and control unit.To STC89C52 microcontroller as the core design of intelligent robot system, this robot can walk in a region along the guide line, automatic winding Zhang, walking along the light conditions of a light guide. Able to detect buried in the underground metal sheets, audible and visual knowledge and information, and realtime storage, display the number of breakpoints detected and the distance between each breakpoint to the starting line, the final stop at the designated locations, to show the entire run time.Key words Singlechipmicroputer