【正文】
1 摘要 本文介紹了本次畢業(yè)設(shè)計的課題汽車防盜報警器的設(shè)計。 整個系統(tǒng)的功能是通過檢 測來實現(xiàn)汽車防盜,當(dāng)沒有振動時,保持預(yù)警狀態(tài),有振動時就報警。 本系統(tǒng)主要包括三個部分的電路:振動檢測電路、單片機控制電路、報警電路。振動檢測電路的主要功能是:檢測汽車是否有振動,當(dāng)沒有振動時,輸出保持低電平,當(dāng)有振動時,檢測電路產(chǎn)生數(shù)字脈沖信號,送到單片機控制電路。單片機控制電路是整個 系統(tǒng)的核心部分,它接收檢測電路傳來的信號,并通過程序來加以處理和控制報警電路, 當(dāng)它接收到的是低電平時,就保持報警電路關(guān)閉狀態(tài),當(dāng)它一旦接收到脈沖信號 時就開 啟報警電路。報警電路主要實現(xiàn)聲音和光兩種報警。本文首先說明了本次設(shè)計所能夠采用的方案,接著介紹了芯片的功能及其它器件的特性,例如, AT89S5振動傳感器等。然后描述了該系統(tǒng)的組成及其結(jié)構(gòu)。接下來分析了各個電路及整個系統(tǒng)的工作原理及具體工作過程。最后闡述了調(diào)試方法以及電路的改進方案,以確保整個系統(tǒng)更加有效地工作和很好地完成本次設(shè)計。 關(guān)鍵詞: 振動檢測電路 單片機控制 電路報警 電路振動 傳感器 2 Abstract This paper introduces the design of automobile antitheft alarm system of this graduation function of the system is realized by detecting car alarm,when there is no vibration, keep alert,avibration system mainlyincludes circuit of three parts:the vibration detection circuit,singlechip microputer control circuit,alarm main function of the vibration detection circuit is: testing whether the automobile vibration, when there is novibration, the output remains low, when the vibration detection circuit, digital pulse signal, is sent to the MCU control circuit. MCU control circuit is the corepart of the whole system, it receives the signal detection circuit came, and through the procedures to handle and control alarm circuit, when it receives islow, keep the alarm circuit closed state,when it receives the pulse signal whenopening the alarm circuit. The alarm circuit is mainly to achieve sound and lightalarm two. This paper first explains to the design options, then introduces thecharacteristics, the function of the chip and other devices for example AT89S52 vibration sensor. Then it describes the position and structure of the system. Then analyzed the working principle of the circuit and the whole system and the specific work ,the debugging method and the improved scheme of the circuit, so as to ensure the whole system work more effectively and perform well in the design. KEY WORDS:the vibration test electrical circuit the control electrical circuit of themicroputer the alarm electrical circuit the vibration sensor 3 目 錄 第一章 引言 ............................................................................................................................. 1 第一節(jié) 振動信息檢測 ...................................................................................................... 1 第二節(jié) 車輛信息的傳輸與控制 ...................................................................................... 2 第二章 系統(tǒng)概述 ..................................................................................................................... 3 第一節(jié) 系統(tǒng)設(shè)計目標(biāo) ...................................................................................................... 3 第二節(jié) 系統(tǒng)結(jié)構(gòu)框圖 ...................................................................................................... 3 第二節(jié) 系統(tǒng)的改進與展望 .............................................................................................. 4 第三章 系統(tǒng)硬件 ..................................................................................................................... 5 第一節(jié) MC9S08QG8 單片機及其外圍電路 ........................