【正文】
一種具有 GSM 報(bào)警功能的電子儲(chǔ)物柜的設(shè)計(jì) 學(xué)院名稱 : 電氣信息工程學(xué)院 專 業(yè) : 電子信息工程 班 級(jí) : 學(xué) 號(hào) : 姓 名 : 指導(dǎo)教師姓名 : 指導(dǎo)教師職稱 : 二〇一三 年 六 月 JIANGSU UNIVERSITY OF TECHNOLOGY 本 科 畢 業(yè) 設(shè) 計(jì) ( 論 文 ) 江蘇理工學(xué)院畢業(yè)設(shè)計(jì)說明書(論文) I 一種具有 GSM 報(bào)警功能的電子儲(chǔ)物柜的設(shè)計(jì) 摘 要 : 本系統(tǒng)以 STC89C52 單片機(jī)為控制核心 , 利用 4*4 矩陣鍵盤檢查按鍵 , 當(dāng)用戶按下存包鍵時(shí) , 系統(tǒng)檢測(cè)到空柜并打開 , 同時(shí)記錄 5 位隨機(jī)密碼 ; 當(dāng)用戶按下取包鍵時(shí) , 用戶輸入 5 位密碼 , 系統(tǒng)自動(dòng)驗(yàn)證并打開柜門 , 若連續(xù)三次輸入密碼錯(cuò)誤 , 則蜂鳴器報(bào)警 ; 當(dāng)用戶按下求助鍵時(shí) , 系統(tǒng)通過 GSM 模塊向管理員手機(jī)發(fā)送短信 , 尋求幫助。此設(shè)計(jì)共有 16 個(gè)按鍵和 6 個(gè)數(shù)碼管顯示密碼 , 可以對(duì) 4 個(gè)柜子進(jìn)行控制。此論文重點(diǎn)描述 了自動(dòng)存包柜的設(shè)計(jì)思想及軟硬件電路的工作原理、設(shè)計(jì)過程 , 并敘述了調(diào)試過程中出現(xiàn)的問題 , 并做了相應(yīng)的分析。 關(guān)鍵詞 : 單片機(jī) ; GSM 模塊 ; 隨機(jī)密碼 ; 矩陣鍵盤 The Design of Electronics Cabi Alerted Based on GSM Abstract: This system takes the STC89C52 list slice machine as to control core and makes use of 4*4 matrix keyboard check keys, when the customer presses to save a pack of key, the system examines empty cabi and open, record 5 random passwords at the same time; When the customer presses to take a pack of key, the customer inputs 5 passwords, the system automatically verifies and open a cabi door; When the customer presses to ask for help key, the system passes a GSM mold piece to send out a message to managing person39。s cellular phone and looks for a design totally includes 16 keys and 6 piece code tube show a password, can carry on a control to 4 the customer three times inputs a password in a row mistake, the buzzer reports to the thesis particularly described to automatically save the design thought of a pack of cabi and the work principle of the soft hardware electric circuit, design process, and as for problem that described to adjust to try to appear in the process, and did homologous analysis. Keywords: STC89C52; GSM; Random password; Matrix keyboard 江蘇理工學(xué)院畢業(yè)設(shè)計(jì)說明書(論文) II 目 錄 第 1 章 緒論 ...........................................................................................................................1 概述 ......................................................................................................................................1 GSM的發(fā)展 ..........................................................................................................................2 無線電子存包柜的組成 ......................................................................................................3 課題的意義及研究的內(nèi)容 ..................................................................................................4 第 2章 系統(tǒng)硬件電路的設(shè)計(jì) ...........................................................................................5 整體電路的工作原理 ..........................................................................................................5 單片機(jī)最小系統(tǒng)電路設(shè)計(jì) ...................................................................................................5 GSM模塊 TC35i 電路設(shè)計(jì) ..................................................................................................7 GSM模塊的構(gòu)成 .......................................................................................................7 TC35i 的工作原理 .....................................................................................................9 TC35i 與單片機(jī)的連接 ...........................................................................................10 矩陣鍵盤電路設(shè)計(jì) ............................................................................................................11 6 位數(shù)碼管電路設(shè)計(jì) ..........................................................................................................12 LED 電路設(shè)計(jì) ....................................................................................................................14 蜂鳴器電路設(shè)計(jì) ................................................................................................................16 第 3 章 系統(tǒng)的軟件設(shè)計(jì) ..................................................................................................19 主程序設(shè)計(jì) ........................................................................................................................19 GSM模塊程序設(shè)計(jì) ............................................................................................................20 AT 指令介紹 ............................................................................................................21 程序介紹 ..................................................................................................................25 按鍵掃描及處理程序設(shè)計(jì) ................................................................................................27 按鍵掃描 .................................................................................................................27 江蘇理工學(xué)院畢業(yè)設(shè)計(jì)說明書(論文) III 按鍵處理 ................................................................................................................31 6 位數(shù)碼管程序設(shè)計(jì) ........................................................................................................34 LED 顯示及蜂鳴器報(bào)警程序設(shè)計(jì) ...................................................................................35 第 4 章 系統(tǒng)軟硬件調(diào)試及實(shí)驗(yàn)結(jié)果 .........................................................................36 硬件調(diào)試 ..........................................................................................................................36 軟件調(diào)試 ..........................................................................................................................39 實(shí)驗(yàn)結(jié)果 ..........................................................................................................................43 結(jié)束語 ....................................................................................................................................44