【正文】
//有下一句就不需要這句 //清空接收緩沖區(qū) RsPoint=0。=~0x01。 Send_AT()。 char *mystrstr(char *s, char *t)。j120。j++)。 //音調(diào) while(1) {if(key==0) //低電平輸入 {for(k=0。 //LED燈驅(qū)動口 sbit buzzer=P3^7。從硬件制作、調(diào)試以及論文的完成她投入了大量的心血。想借次機(jī)會感謝三年以來給過我們幫助的所有老師、同學(xué),你們的友誼是我人生的財富,是我們生命中不可或缺的一部分。 本設(shè)計的不足之處是振動傳感器模塊和 GSM模塊部分需要進(jìn)一步修改和優(yōu)化,短消息收發(fā)程序需再更正,以實現(xiàn)聲光和短信同步報警。 Proteus 具有和其他 EDA 工具一樣的原理編輯、印刷電路板( PCB)設(shè)計及電路仿真功能,最大的特色是其電路仿真的交互化和可視化。 N N Y Y Y Y N Y 系統(tǒng)初始化 設(shè)置用戶手機(jī)號碼 設(shè)置號碼? 開始 傳感采樣 振動? 報警數(shù)據(jù)分析 發(fā)送 GSM 報警系統(tǒng) 接收短信 ? 報警處理 結(jié)束 陜西工業(yè)職業(yè)技術(shù)學(xué)院畢業(yè)設(shè)計 第 13 頁 共 33 頁 短消息流程圖: 陜西工業(yè)職業(yè)技術(shù)學(xué)院畢業(yè)設(shè)計 第 14 頁 共 33 頁 第四章 設(shè)計調(diào)試 單片機(jī)編程常用的語言是 C語言和匯編語言,最終都要轉(zhuǎn)為 Intel HEX 格式或二進(jìn)制格式 (Binary)文件拷入單片機(jī)芯片內(nèi)。 PDU 格式簡介 目前, 發(fā)送短消息常用 Text 和 PDU(Protocol Data Unit)模式。 7 : RTS:請求發(fā)送;此腳由計算機(jī)來控制,用以通知 Modem 馬上傳送數(shù) 據(jù)至計算機(jī);否則,Modem 將收到的數(shù)據(jù)暫時放入緩沖區(qū)中。 RS232 信號的電平和單片機(jī)串口信號的電平不一致,兩者之間必須進(jìn)行電平轉(zhuǎn)換,電平轉(zhuǎn)換芯片要用單 +5V 電源供電的 MAX232 芯片,可以實現(xiàn) RS232 與 TTL 電平間的轉(zhuǎn)換。其特點是:(1)頻段為雙頻 GSM900MHz 和 GSM1800MHz(phase2/ 2+); (2)支持?jǐn)?shù)據(jù)、語音、短消息和傳真; (3)電源范圍寬; (4)具有 RS232 接口和語音接口。 AT89C51 的功能描述 AT89C51 是一種低功耗、高性能、 CNOS 八位微處理器,片內(nèi)有 4K字節(jié)的在線課重復(fù)編程、快速擦除快速寫入程序的存儲器,能重復(fù)寫入 /擦除 1000 次,數(shù)據(jù)保存時間為十年。 PSEN 外部程序存儲器讀選取通信號:在讀外部 ROM 時 PSEN 有效(低電平),以實現(xiàn)外部 ROM 單元的讀操作。 P1 口( 1 腳 ~8 腳): P1 口是一個具有內(nèi)部上拉電阻的 8 位雙向 I/O 口, P1 輸出緩沖器能驅(qū)動 4 個 TTL 邏輯電平。 應(yīng)用 /使用 電池供電 RS232 系統(tǒng) 接口轉(zhuǎn)換 低功耗調(diào)制解調(diào)器 多點 RS232 網(wǎng)絡(luò) 便攜式計算機(jī) MAX232 與 RS232的連接方式: p 3 . 1p 3 . 1p 3 . 0p 3 . 0T 1 I N11R1O UT12T 2 I N10R2O UT9T 1 O UT14R1I N13T 2 O UT7R2I N8C2 +4C25C1 +1C13VS+2V S 6U3M A X 2 3 2162738495J1CO NN D9FC41nFC51nFC61nFC71nF發(fā)出 MAX232 的工作原理: MAX232 是用來做電平轉(zhuǎn)換的 ,標(biāo)準(zhǔn) rs232 電平很高,達(dá)正負(fù) TTL 電平最高 5V。由 1 1 1 14腳構(gòu)成兩個數(shù)據(jù)通道。micro。 、管腳功能 電平轉(zhuǎn)換芯片( MAX232): MAX232 芯片簡介 MAX232 芯片是美信( MAXIM)公司專為 RS232 標(biāo)準(zhǔn)串口設(shè)計的單電源電平轉(zhuǎn)換芯片,使用 +5v 單電源供電。對周圍環(huán)境的聲音信號抑制并具有很強(qiáng)的抗干擾能力,其靈敏度通過 電容 可調(diào)。 電子防盜裝置的主要功能有以下四種:聲訊報警功能、安全提示功能、遙控尋車功能、中央門鎖遙控功能。防盜車窗還是能被打破,電子鎖照樣能被撬開,也就是汽車盜竊的物理途徑不能被完全切斷。 隨著中國經(jīng)濟(jì)的蓬勃發(fā)展,人們的生活水平日益提高,汽車的應(yīng)用發(fā)展迅速,各類汽車的擁有量不斷提高。 關(guān)鍵詞: AT89C51,振動傳感器 ,GSM 報警系統(tǒng) 陜西工業(yè)職業(yè)技術(shù)學(xué)院畢業(yè)設(shè)計 第 3 頁 共 33 頁 ABSTRACT With the rapid development of electronic technology, especially largescale integrated circuits, to human life has undergone fundamental changes. With the singlechip technology as the core of products into the tens of thousands of households, the car alarm occurrence is to people39。 畢業(yè)設(shè)計論文 設(shè)計(論文)題目: 汽車防盜報警系統(tǒng) 下 達(dá) 日 期: 2021 年 9 月 26 日 開 始 日 期: 2021 年 9 月 26 日 完 成 日 期: 2021 年 11 月 23 日 . 陜西工業(yè)職業(yè)技術(shù)學(xué)院畢業(yè)設(shè)計 第 2 頁 共 33 頁 摘 要 隨著電子技術(shù)的迅速發(fā)展,特別是大規(guī)模集成電路的出現(xiàn),人類生活發(fā)生了根本性的變化。s lives a lot of convenience, in this paper, based on AT89C51 MCU automobile antitheft alarm design. The design AT89C51 microcontroller as the core technology, with all kinds of hardware circuit software based, prepared using C language, in order to facilitate the expansion and change, modular programming methods, make the logic relation of designing program more concise, more simple and convenient system upgrade. Using single chip puter to realize the alarm has the advantages of small volume, low price, high integration advantages, at the same time, the use of singlechip microputer to the development of antitheft system can make the system easy to operate, and much smaller, so it has wide application. This design is to solve the traditional automobile antitheft method and the shortings and the development of a new integrated sensing, control and alarm functions of the three modules of automobile antitheft alarm system through GSM, the alarm is arranged in the car, when the sensor receives the vehicle vibration, mobile signal, using GSM work as a channel, the alarm information through SMS / phone users, so as to realize the accurate, realtime alarm. System for vibration sensor module carrier with a buzzer alarm, so it can better protect the safety car. Owners can rest assured that the car park. KEY WORDS: AT89C51,vibration sensor module,system through GSM 目錄 陜西工業(yè)職業(yè)技術(shù)學(xué)院畢業(yè)設(shè)計 第 4 頁 共 33 頁 第一章 緒論 ...................................................................................................................................................1 單片機(jī)的發(fā)展 .....................................................................................................................................1 設(shè)計意義 ..............................................................................................................................................1 設(shè)計方案思路 .....................................................................................................................................1 系統(tǒng)工作原理 .....................................................................................................................................2 第二章 硬件電路設(shè)計 ..................................................................................................................................3 硬件原理框圖 .....................................................................................................................................3 系統(tǒng)硬件概述 .....................................................................................................................................3 振動傳感器 ...................................................................................