【正文】
ving standard rise, people for their own survival environment more and more attention. And the body39。在溫度上下限范圍內(nèi)保持恒溫等多種控制方式,在濕度控制方面也是如此。并且隨著人們生活水平的提高,人們對自己的生存環(huán)境越來越關(guān)注。而空氣中溫濕度的變化與人體的舒適度和情緒都有直接的影響,所以對溫度濕度的檢測及控制就非常有必要了。將此系統(tǒng)應(yīng)用到溫室當(dāng)中無疑為植被生長提供了更加適宜的環(huán)境。s fort level with the change of temperature and humidity in the air and mood has a direct effect, so the detection and control of the temperature humidity is very necessary. Using a STC89C52 singlechip microputer temperature and humidity monitoring alarm system, can realtime accurate reaction inside and outside the greenhouse temperature and humidity changes. Finish such as heating up to a specific temperature and cooling to a specific temperature. In upper and lower temperature range constant temperature control of a variety of ways, so in terms of humidity control. Will no doubt of this system is applied to the greenhouse for vegetation growth provide a more fortable environment. For greenhouses planting and flower beds, flower cultivation, must be installed in some specific environment to monitor the temperature and humidity devices. This system can timely and accurately reflect the change of indoor and outdoor temperature and humidity, can satisfy the requirement of the temperature and humidity control. Keywords: Temperature and humidity, monitoring, STC89S52 2020 畢業(yè)設(shè)計論文 目錄 摘要 ........................................................................................................... II Abstract ....................................................................................................III 目錄 ......................................................................................................... IV 1 總體設(shè)計概述 ....................................................................................... 1 系統(tǒng)的主要功能 ......................................................................... 1 系統(tǒng)的工作原理 ......................................................................... 1 總體設(shè)計 ..................................................................................... 2 總體設(shè)計框圖 ....................................................................... 2 總體設(shè)計工作流程 ............................................................... 3 2 系統(tǒng)硬件設(shè)計 ....................................................................................... 4 主控模塊設(shè)計 ............................................................................. 4 STC89C52 概述 ..................................................................... 4 時鐘電路與復(fù)位電路 ........................................................... 7 電源模塊設(shè)計 ............................................................................. 8 DHT11 傳感器模塊設(shè)計 ............................................................. 8 DHT11 傳感器 ....................................................................... 8 DHT11 傳感器模塊電路設(shè)計 ............................................. 10 1602 液晶顯示模塊設(shè)計 ........................................................... 11 1602 液晶顯示屏 ................................................................. 11 1602 液晶顯示屏參數(shù) ......................................................... 11 1602 液晶顯示模塊電路設(shè)計 ............................................. 13 閾值設(shè)置模塊設(shè)計 ................................................................... 14 報警模塊設(shè)計 ........................................................................... 15 蜂鳴器報警模塊設(shè)計 ......................................................... 15 發(fā)光二極管報警模塊設(shè)計 ................................................. 16 24C02 數(shù)據(jù)存儲模塊 ................................................................ 16 2020 畢業(yè)設(shè)計論文 24C02 數(shù)據(jù)存儲器 .............................................................. 16 24C02 數(shù)據(jù)存儲器模塊電路設(shè)計 ...................................... 17 系統(tǒng)總體電氣原理圖 ............................................................... 18 3 系統(tǒng)軟件設(shè)計 ..................................................................................... 19 4 系統(tǒng)調(diào)試 ............................................................................................. 21 總結(jié) ......................................................................................................... 22 致謝 ......................................................................................................... 23 參考文獻 ................................................................................................. 24 附件 1 系統(tǒng)程序 .................................................................................... 25 主程序 .................................................................................... 25 24C02 程序 ............................................................................. 30 DHT11 傳感器程序 ................................................................ 33 1602 程序 ................................................................................ 35 附件 2 PCB板 ........................................................................................ 39 附 件 3 實物圖 ........................................................................................ 40 2020 畢業(yè)設(shè)計論文 1 總體設(shè)計概述 系統(tǒng)的主要功能 本 系統(tǒng)以單片機最小系統(tǒng)為核心,將溫濕度通過 LCD1602顯示器實時的顯示出來,溫濕度最高值可以任意設(shè)置并實時顯示出來。通過 LCD1602 實時地顯示傳感器DHT11 檢測到的溫濕度值,并且固定時間( 5s)檢測更新顯示一次。 3. 當(dāng)溫濕度超出閾值時能自動報警。 系統(tǒng)的工作原理 本系統(tǒng)的工作原理:系統(tǒng)主要涉及了溫濕度的測量、顯示以及實現(xiàn)簡單控制。通過 DHT11檢測出當(dāng)前環(huán)境下的溫濕度,將所測數(shù)據(jù)交給 STC89C52 單片機進行分析和處理,并分別存入不同數(shù)組以便顯示時候用。 2020 畢業(yè)設(shè)計論文 3. 報警模塊 實現(xiàn)了檢測值超過閾值的時候發(fā)光二極管點亮,蜂鳴器鳴響報警。按一次按鍵溫度、濕度對應(yīng)值加一或者減一。總體設(shè)計方案圍繞上述思想,初步確定系統(tǒng)的方案如圖 所示。 2020 畢業(yè)設(shè)計論文 總體設(shè)計工 作 流程 本次設(shè)計有兩個部分是重點。 主要特性如下: 1. 增強型 8051 單片機, 6 時鐘 /機器周期和 12 時鐘 /機器周期可以任 意選擇,指令代碼完全兼容傳統(tǒng) 8051。 5. 片上集成 512 字節(jié) RAM。 9. 具有看門狗功能 。 12. 工作溫度范圍: 40~ +85℃ (工業(yè)級) /0~ 75℃ (商業(yè)級) 。 1234567891 01 11 21 31 41 51 61 71 81 92 03 13 02 92 82 72 62 52 42 32 22 14 03 93 83 73 63 53 43 33 2R X D / P 3 . 0T