【正文】
畢業(yè)設(shè)計(jì)說(shuō)明書(shū) 基于單片機(jī) 的遠(yuǎn)程監(jiān)控 系統(tǒng)設(shè)計(jì) 專(zhuān)業(yè) 自動(dòng)化 學(xué)生姓名 班級(jí) 自動(dòng)化 112 學(xué)號(hào) 指導(dǎo)教師 完成日期 2020 年 6 月 5 日 鹽城工學(xué)院本科生畢業(yè)設(shè)計(jì)說(shuō)明書(shū) ( 2020) 畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(畢業(yè)論文) 獨(dú)創(chuàng)性聲明 本人聲明所呈交的畢業(yè)設(shè)計(jì)說(shuō)明書(shū) (畢業(yè)論文 )是本人在導(dǎo)師指導(dǎo)下進(jìn)行的研究、設(shè)計(jì)工作后獨(dú)立完成的。除了文中特別加以標(biāo)注和致謝的地方外,說(shuō)明書(shū)中不包含其他人己經(jīng)發(fā)表或撰寫(xiě)過(guò)的研究成果。對(duì)本文的研究所做貢獻(xiàn) 集體和個(gè)人,均己在說(shuō)明書(shū)中作了明確的說(shuō)明并表示謝意。本人完全意識(shí)到本聲明的法律后果由本人承擔(dān)。 畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(畢業(yè)論文)作者簽名 (手寫(xiě) ): 日期 : 年 月 日 指導(dǎo)教師簽名 (手寫(xiě) ): 日期 : 年 月 日 鹽城工學(xué)院本科生畢業(yè)設(shè)計(jì)說(shuō)明書(shū) ( 2020) 基于 單片機(jī)的遠(yuǎn)程監(jiān)控系統(tǒng) 設(shè)計(jì) 摘 要 : 以 STC89C52 單片機(jī)為控制核心進(jìn)行遠(yuǎn)程監(jiān)控系統(tǒng)的設(shè)計(jì)。實(shí)時(shí)監(jiān)控高塔液位變化,監(jiān)控過(guò)程智能化, LCD 顯示器實(shí)時(shí)顯示液位值,當(dāng)液位超過(guò)設(shè)定值的上限或下限時(shí)蜂鳴器報(bào)警, LED 燈閃 爍報(bào)警。 根據(jù)遠(yuǎn)程監(jiān)控系統(tǒng)的主要功能,提出了設(shè)計(jì)方案并進(jìn)行了論證。設(shè)計(jì)包括硬件設(shè)計(jì)和軟件設(shè)計(jì)兩大部分。硬件部分包括單片機(jī)最小系統(tǒng)、矩陣鍵盤(pán)模塊、無(wú)線收發(fā)模塊、顯示模塊、報(bào)警模塊五個(gè)部分。單片機(jī)選用宏晶科技公司的 STC89C52;用矩陣鍵盤(pán)將輸入的模擬液位數(shù)據(jù)值傳給無(wú)線模塊,并進(jìn)行數(shù)據(jù)處理;用 1602 液晶顯 示器顯示高塔液位信息,并與輸入值進(jìn)行比較;用發(fā)光二極管和蜂鳴器對(duì)異常情況報(bào)警。軟件采用了模塊化的設(shè)計(jì)方法,主要分為主程序、無(wú)線發(fā)射模塊子程序、無(wú)線接收子程序、按鍵檢測(cè)子程序、液晶顯示子程序、報(bào)警模塊子程序 六部分。對(duì)系統(tǒng)進(jìn)行軟硬件聯(lián)調(diào),實(shí)現(xiàn)了將模擬液位數(shù)據(jù)通過(guò) nrf24l01 模塊模塊傳輸?shù)搅硪粋€(gè) nrf24l01 無(wú)線模塊,通過(guò)單片機(jī)解碼顯示在 LCD 顯示器上,當(dāng)接收到的數(shù)值超過(guò) 1000 或 小于 10 的 時(shí)候 蜂鳴器和發(fā)光二極管同時(shí)報(bào)警。 關(guān)鍵詞: nrf24l01;單片機(jī);遠(yuǎn)程傳輸;顯示器 鹽城工學(xué)院本科生畢業(yè)設(shè)計(jì)說(shuō)明書(shū) ( 2020) Design of Remote Monitoring System Based on MCU Abstract: The design of the remote monitoring system based on the STC89C52 microcontroller core is designed. Real time monitoring of the tower liquid level changes, monitoring process intelligent, LCD display realtime display of liquid level, when the level exceeds the set value of the upper or lower buzzer alarm, LED lights flashing alarm. According to the main function of the remote monitoring system, the design scheme is presented and demonstrated. Design includes two parts of hardware design and software design. The hardware includes the smallest singlechip microputer, the matrix keyboard module, the wireless transceiver module, the display module and the alarm module of the five parts. Singlechip selection macro crystal STC STC89C52。 matrix keyboard input level simulating data value is passed to the wireless module, and data processing。 1602 LCD display tower liquid level information, and a parison with the input value。 lightemitting diode and the buzzer to alarm for abnormal situation. Software using modular design method, mainly divided into main program, wireless transmitting subprogram module, wireless receive subroutine, key detection subroutine, liquid crystal display subroutines, alarm module subroutine six parts. The system of hardware and software debugging, the simulation level of data through nrf24l01 module is transmitted to another nrf24l01 wireless module, through the microcontroller decoding display on the LCD display, when the numerical received more than 1000 or less than 10 ,the buzzer and the lightemitting will give an alarm. Key Words: Nrf24l01。MCU。 Remote transmission。 Display 鹽城工學(xué)院本科生畢業(yè)設(shè)計(jì)說(shuō)明書(shū) ( 2020) 目 錄 1 概述 ................................................................................................................................. 1 課題研究背景與意義 ........................................................................................... 1 課題設(shè)計(jì)內(nèi)容 ....................................................................................................... 1 2 方案設(shè)計(jì)選擇 ................................................................................................................. 2 單片機(jī)選擇 ........................................................................................................... 2 無(wú)線裝置選擇 ....................................................................................................... 3 顯示模塊選擇 ....................................................................................................... 4 總體方案 ............................................................................................................... 4 3 硬件電路設(shè)計(jì) ................................................................................................................. 5 最小系統(tǒng)模塊 ....................................................................................................... 5 矩陣鍵盤(pán)電路設(shè)計(jì) ............................................................................................... 6 無(wú)線收發(fā)電路設(shè)計(jì) ............................................................................................... 7 nrf24l01 概述 .............................................................................................. 8 引腳功能及描述 ......................................................................................... 8 工作模式 ..................................................................................................... 9 工作原理 ................................................................................................... 10 配置字 ....................................................................................................... 10 LCD 顯示模塊 .................................................................................................... 11 4 軟件系統(tǒng)設(shè)計(jì) ............................................................................................................... 13 總流程圖設(shè)計(jì) ..................................................................................................... 13 矩陣鍵盤(pán)電路軟件設(shè)計(jì) ..................................................................................... 14 無(wú)線發(fā)射模塊軟件設(shè)計(jì) ..................................................................................... 15 無(wú)線接收模塊軟件 設(shè)計(jì) ..................................................................................... 16 LCD1602 顯示器軟件設(shè)計(jì) ................................................................................ 17 蜂鳴器報(bào)警電路 ................................................................................................. 18 5 系統(tǒng)的調(diào)試及實(shí)驗(yàn)結(jié)果 ..........................