【正文】
畢 業(yè) 設 計 說 明 書基于單片機的遠程監(jiān)控系統(tǒng)設計專業(yè) 自動化學生姓名班級 自動化 112學號指導教師完成日期 2022 年 6 月 5 日鹽城工學院本科生畢業(yè)設計說明書( 2022)畢業(yè)設計說明書(畢業(yè)論文)獨創(chuàng)性聲明本人聲明所呈交的畢業(yè)設計說明書(畢業(yè)論文) 是本人在導師指導下進行的研究、設計工作后獨立完成的。除了文中特別加以標注和致謝的地方外,說明書中不包含其他人己經發(fā)表或撰寫過的研究成果。對本文的研究所做貢獻集體和個人,均己在說明書中作了明確的說明并表示謝意。本人完全意識到本聲明的法律后果由本人承擔。畢業(yè)設計說明書(畢業(yè)論文)作者簽名(手寫): 日期: 年 月 日指導教師簽名(手寫):日期: 年 月 日鹽城工學院本科生畢業(yè)設計說明書( 2022)基于單片機的遠程監(jiān)控系統(tǒng)設計摘 要:以 STC89C52 單片機為控制核心進行遠程監(jiān)控系統(tǒng)的設計。實時監(jiān)控高塔液位變化,監(jiān)控過程智能化,LCD 顯示器實時顯示液位值,當液位超過設定值的上限或下限時蜂鳴器報警,LED 燈閃爍報警。根據(jù)遠程監(jiān)控系統(tǒng)的主要功能,提出了設計方案并進行了論證。設計包括硬件設計和軟件設計兩大部分。硬件部分包括單片機最小系統(tǒng)、矩陣鍵盤模塊、無線收發(fā)模塊、顯示模塊、報警模塊五個部分。單片機選用宏晶科技公司的STC89C52;用矩陣鍵盤將輸入的模擬液位數(shù)據(jù)值傳給無線模塊,并進行數(shù)據(jù)處理;用 1602 液晶顯 示器顯示高塔液位信息,并與輸入值進行比較;用發(fā)光二極管和蜂鳴器對異常情況報警。軟件采用了模塊化的設計方法,主要分為主程序、無線發(fā)射模塊子程序、無線接收子程序、按鍵檢測子程序、液晶顯示子程序、報警模塊子程序六部分。對系統(tǒng)進行軟硬件聯(lián)調,實現(xiàn)了將模擬液位數(shù)據(jù)通過 nrf24l01模塊模塊傳輸?shù)搅硪粋€ nrf24l01 無線模塊,通過單片機解碼顯示在 LCD 顯示器上,當接收到的數(shù)值超過 1000 或小于 10 的時候蜂鳴器和發(fā)光二極管同時報警。關鍵詞:nrf24l01 ;單片機;遠程傳輸;顯示器鹽城工學院本科生畢業(yè)設計說明書( 2022)Design of Remote Monitoring System Based on MCUAbstract: 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鹽城工學院本科生畢業(yè)設計說明書( 2022)目 錄1 概述 ..................................................................................................................................1 課題研究背景與意義 ...........................................................................................1 課題設計內容 .......................................................................................................12 方案設計選擇 ..................................................................................................................2 單片機選擇 ............................................................................................................2 無線裝置選擇 ........................................................................................................3 顯示模塊選擇 ........................................................................................................4 總體方案 ................................................................................................................43 硬件電路設計 ..................................................................................................................5 最小系統(tǒng)模塊 ........................................................................................................5 矩陣鍵盤電路設計 ................................................................................................6 無線收發(fā)電路設計 ................................................................................................7 nrf24l01 概述 ...............................................................................................8 引腳功能及描述 ..........................................................................................8 工作模式 ......................................................................................................9 工作原理 ....................................................................................................10 配置字 ........................................................................................................10 LCD 顯示模塊 .....................................................................................................114 軟件系統(tǒng)設計 ................................................................................................................13 總流程圖設計 ......................................................................................................13 矩陣鍵盤電路軟件設計 ......................................................................................14 無線發(fā)射模塊軟件設計 ......................................................................................15 無線接收模塊軟件設計 ......................................................................................16 LCD1602 顯示器軟件設計 .................................................................................17 蜂鳴器報警電路 ..................................................................................................185 系統(tǒng)的調試及實驗結果 ................................................................................................20 調試步驟 .............................................................................................................20 實驗結果 ..............................................................................................................20結 論 ...............................................