【正文】
足了工藝要求 ,給人們的生活帶來了極大的方便,也為人們帶了很好的利益 。這種人工測試方法 費時費力,效率低,并且 隨機(jī)性 還很大, 誤差 也很大。而傳統(tǒng)的溫濕度控 制則利用濕度表、毛發(fā)濕度表、雙金屬式測量計和濕度試紙等測試器材, 通過人工 自己 進(jìn)行檢測。溫度和濕度已經(jīng)不再是 以一個個體的形式出現(xiàn) ,而應(yīng)在系統(tǒng)中 一起考慮 。 I 蔬菜大棚溫濕度監(jiān)測系統(tǒng) 摘要 溫濕度控制已成為當(dāng)今社會研究的熱門項目。是工 業(yè) 農(nóng)業(yè)生產(chǎn)過程中必須考慮的情況, 作為最常見的被控 參數(shù) 。廣泛應(yīng)用于實驗室、 溫室 大棚、花圃、糧倉乃至土壤等各個領(lǐng)域。對不符合溫度和濕度要求的庫房進(jìn)行通風(fēng)、降溫、去濕等操作。因此我們 需要一種造價低廉、使用方便且 計算精確的溫濕度控制儀器 來進(jìn)行控制,也符合我們社會發(fā)展進(jìn)步 。 本文通過使用 STC89C52 單片機(jī)、 DHT11 傳感器模塊、 1602 液晶顯示屏模塊以及繼電器控制模塊。 DHT11 數(shù)字溫濕度傳感器把采集到 的溫濕度數(shù)據(jù)傳給單片機(jī),經(jīng)過單片機(jī)的處理,準(zhǔn)確的顯示到液晶屏上,如果溫度超過閥值,將會驅(qū)動繼電器工作, 繼電器將驅(qū)動負(fù)載相應(yīng) 的工作。s social studies. Is a factor that must be considered in the industrial and agricultural production process. As the control parameters of the most mon. Temperature and humidity is no longer a physical quantityindependent of each other, but should be considered in the used in laboratory, greenhouse, flower garden, granary andsoil etc.. The temperature and humidity control is the use of traditionalhygrometer, hair hygrometer, doublemetalstyle gauges and testequipment humidity paper etc.. Through manual testing. Temperature and humidity do not meet the requirements of the Treasury for ventilation, cooling, dehumidification operation. This kind of manual test method is timeconsuming and laborious, low efficiency. Allrandom. Big error. Hence the need for a low cost, easy to use and the calculation of the temperature and humidity control instrument for precise. The use of microputer control of temperature, humidity,temperature, humidity is high precision, strong function, small size, low price, the advantages of simplicity and flexibility, good to meet theprocess requirements. In this paper, by using the STC89C52 SCM, DHT11 sensor module,1602 liquid crystal display module and relay III control module. Simplerealization of the control of temperature and humidity digital temperature and humidity sensor to temperature and humidity data collected to microcontroller. After a single to the liquid crystal display screen. If the temperature exceeds the threshold, will drive the relay to work. The relay will drive the load corresponding work. Keywords: Sensor, temperature and humidity, MCU, intelligent control 目 錄 摘 要 ............................................................................ 錯誤 !未定義書簽。 1 緒論 ........................................................................................................... 1 課題 背景 ........................................................................................... 1 課題設(shè)計的意義 ............................................................................... 1 溫濕度監(jiān)測系統(tǒng)的發(fā)展現(xiàn)狀 ............................................................. 1 2 系統(tǒng)總體設(shè)計 ............................................................................................ 2 系統(tǒng) 的 總框圖 ................................................................................... 3 系統(tǒng)主要功能 ................................................................................... 3 系統(tǒng) 設(shè)計的原理 ............................................................................... 4 3 蔬菜大棚溫濕度監(jiān)測 系統(tǒng)硬件設(shè)計 ......................................................... 4 單片機(jī)系統(tǒng)設(shè)計 ............................................................................... 5 STC89C52 單片機(jī)性能簡介 ...................................................... 5 STC89C52 引腳介紹 .............................................................................6 單片機(jī)最小系統(tǒng) …………………………………………………………………… ...7 DHT11 傳感器模塊 ........................................................................... 8 實物圖 ..............................................9 ...........................................10 液晶顯示屏模塊 .............................................................................. 11 繼電器 模塊 ....................................................................................14 閥值設(shè)定 模塊 .................................................... 錯誤 !未定義書簽。 調(diào)試 ................................................................................................19 安裝 .................................................................... 錯誤 !未定義書簽。 結(jié)論 ..............................................................................................................22 致 謝 ..........................................................................................................24 參考文獻(xiàn) ......................................................................................................25 附錄 ..............................................................................................................25 1 1 緒論 課題 背景 溫度、濕度 與 人類的生產(chǎn) 和 生活密切的關(guān)系 ,同時 又是工業(yè)生產(chǎn)中最常見最基本的諸元、工藝 。 與此同時,隨著人們生活水平的提高,人們對自己 生活 生存的環(huán)境也越來越 注重。 8051 單片機(jī)是我們用來控制產(chǎn)品的芯片,是微型計算機(jī)的分支,在那些智能的產(chǎn)品 、工農(nóng)業(yè)控制檢測 、機(jī)電一體化的方面取得了非常了不起的成果,另外,把它作為溫度濕度控制系統(tǒng)的例子也有很多。 我們將 8051 單片機(jī)用于設(shè)計溫濕度監(jiān)測系統(tǒng),可以及時準(zhǔn)確的反應(yīng)所測地方的溫度以及濕度的變化。如果把這個系統(tǒng)用到蔬菜大棚內(nèi)可以給大棚內(nèi)的植物提供很好的生長環(huán)境,讓植物更好的生長。 課題設(shè)計的意義 隨著科技的發(fā)展,人類越來越享受自動化帶來的各種便利。所以依靠農(nóng)業(yè)科技,大力推廣塑料大棚種植蔬菜,是蔬菜種植的一個必然發(fā)張趨勢,現(xiàn)在大多數(shù)農(nóng)民還是沿用人工職守的方法來看管蔬菜大棚,浪費了大量的人力物力,而且蔬菜大棚的溫濕度控制并不理想,往往因為溫濕度控制不當(dāng)造成作物減產(chǎn)從而給菜農(nóng)帶 2 來了極大的損失。