【正文】
題 目 糧倉溫濕度控制系統(tǒng)的設(shè)計及實現(xiàn) 畢業(yè)論文 ﹙ 設(shè)計 ﹚ 任務書 院 (系 ) 物理與電信工程學院 專業(yè)班級 通信 1101 學生姓名 惠雙 一、畢業(yè)論文﹙設(shè)計﹚題目 糧倉溫濕度控制系統(tǒng)的設(shè)計及實現(xiàn) 二、畢業(yè)論文﹙設(shè)計﹚工作自 2021 年 12 月 9 日 起至 2021 年 6 月 20 日止 三、畢業(yè) 論文﹙設(shè)計﹚進行地點 : 物電學院實驗室 四、畢業(yè)論文﹙設(shè)計﹚的內(nèi)容要求: 本次畢業(yè)設(shè)計要求如下: 設(shè)計一個 糧倉溫濕度控制系統(tǒng) ,要求: ⑴ 利用溫度 /濕度傳感器 對 糧倉監(jiān)測點 的溫濕度 進行 采集 和存儲; ⑵ 系統(tǒng)能夠預設(shè)監(jiān)測點溫濕度的上下限值,并通過顯示電路將測得的溫濕度進行實時顯示,同時可實現(xiàn)對不同監(jiān)測點最適合溫濕度預設(shè)值的調(diào)整和修改; ⑶ 系統(tǒng)能將溫度 /濕度傳感器 采集的溫 濕 度值 和系統(tǒng) 設(shè)定的溫 濕 度上下限值 進行比較 , 當采集到的溫濕度值超出設(shè)定范圍時,系統(tǒng)可自動報警,并輸出驅(qū)動信號控制繼電器,啟動相應的調(diào)節(jié)設(shè)備如空調(diào)、風機、加濕機等設(shè)備,對糧倉溫濕度進行調(diào)節(jié),當調(diào)節(jié)到設(shè)定范圍內(nèi)時,應停止相 應設(shè)備運行; ⑷ 如果 由于加熱或降溫設(shè)備出現(xiàn)故障,或者溫 濕 度傳感頭出現(xiàn)故障 , 導致在一段時間內(nèi)不能將環(huán)境溫度調(diào)整到規(guī)定的溫度限內(nèi)的時候, 則報警電路應報警提示。 畢業(yè)設(shè)計成果要求: 程序代碼、硬件實物和論文,論文要求計算機打?。?A4紙),論文有不少于 3000詞的相關(guān)英文中文翻譯。 畢業(yè)設(shè)計時間安排: 1— 4周 :查閱相關(guān)資料,熟悉題目內(nèi)容,掌握設(shè)計原理,提交開題 5— 10周 :根據(jù)設(shè)計原理,進行相應軟、硬件設(shè)計; 11— 12周: 完善設(shè)計功能,整理資料并進行結(jié)果測試及分析; 13— 14周: 畢業(yè)設(shè)計驗收; 15— 16周:撰寫、修改、提交畢業(yè)論文,畢業(yè)答辯。 指 導 教 師 系 (教 研 室 ) 系 (教研室 )主任簽名 批準日期 接受論文 (設(shè)計 )任務開始執(zhí)行日期 學生簽名 糧倉 溫濕度控制系統(tǒng)的設(shè)計及實現(xiàn) 作者 :惠雙 ( 陜西理工學院物理與電信工程學院通信 1101 班,陜西 漢中 723003) 指導老師:張文麗 [摘 要 ]溫濕度是工業(yè)控制中一個重要的被控參數(shù),因而溫濕度控制系統(tǒng)廣泛用于糧倉、冷凍庫、蔬菜大棚等場所。本課題設(shè)計一個糧倉溫濕度控制系統(tǒng),以 STC89C51 為主控芯片,以 溫濕度傳感器 DHT11 為輸入信號, 對數(shù)據(jù)處理后通過 LCD1602A 顯示,并將獲得的數(shù)據(jù)與設(shè)定值比較,超過設(shè)定范圍可驅(qū)動報警電路并啟動相應設(shè)備進行調(diào)節(jié),以達到溫濕度控制的目的。該系統(tǒng)結(jié)構(gòu)簡單、性能穩(wěn)定、成本低 廉,易于控制,在溫濕度監(jiān)測領(lǐng)域具有廣泛的應用價值。 [關(guān)鍵詞 ]STC89C51; 溫濕度傳感器 ; LCD1602A 顯示 ; 報警 Design and implementation of temperature and humidity control system for Granary Author: Xi Shuang (Grade11,Class 1,Major of Communication Engineering,School of Physics and telemunication Engineering of Shaanxi University of Technology, Hanzhong 723001,China) Tutor:ZhangWenLi Abstract:Temperature and humidity are two important parameters in the industrial control, so the temperature and humidity control system is widely used in granary, freezer, vegetable greenhouses and other fields. This subject designs a granary temperature and humidity control system. In this design,the STC89C51 singlechip microputer was chosen as the master control chip and the system collect input information from the temperature and humidity sensor of DHT11. After processing by STC89C51, the system can display temperature and humidity in LCD1602A,and the system can also give an alarm when the realtime temperature and humidity exceeds system setting range, and in the mean time, driving the cooling or heating equipment to adjust current temperature and humidity to the setting range. Because of it’s advantages of simple structure,stable performance,low cost and easy control,the system would have a wide application in the fields of temperature and humidity monitoring. Key words:STC89C51, Sensor of temperature and humidity, LCD1602A display, alarm 目 錄 引言 ...................................................................................... 1 1 課題研究背景 ............................................ 2 研究意義 .............................................. 2 研究現(xiàn)狀 .............................................. 2 發(fā)展趨勢 .............................................. 3 應用領(lǐng)域 .............................................. 3 2 方案論證 ............................................... 4 設(shè)計要求 .............................................. 4 方案設(shè)計 .............................................. 4 方案一 ........................................... 4 方案二 ........................................... 5 方案選擇 .............................................. 5 3 硬件設(shè)計 ............................................... 6 系統(tǒng)總體設(shè)計 .......................................... 6 各單元模塊設(shè)計 ........................................ 6 單片機最小系統(tǒng) ................................... 6 溫濕度采集模塊 ................................... 8 數(shù)據(jù)設(shè)置模塊 ..................................... 9 LCD1602 顯示模塊 ................................. 10 報警電路 ........................................ 13 4 軟件設(shè)計 .............................................. 14 主程序設(shè)計 ........................................... 14 子程序設(shè)計 ........................................... 15 液晶顯示 ........................................ 15 中斷 ............................................ 15 報警 ............................................ 16 復 位 ............................................ 17 按鍵設(shè)置 ........................................ 18 5 系統(tǒng)調(diào)試及分析 ......................................... 19 軟件仿真 ............................................. 19 軟件程序調(diào)試 .................................... 19 電路仿真調(diào)試 .................................... 20 軟件調(diào)試與仿真結(jié)果 ............................... 22 硬件測試 ............................................. 22 調(diào)試步驟 ........................................ 22 相關(guān)問題 ........................................ 22 功能分析 ............................................. 23 結(jié)束語 .............................................