【正文】
基于 51單片機(jī)的溫濕度控制系統(tǒng)的研究 I 摘 要 現(xiàn)代農(nóng)業(yè)生產(chǎn)離不開(kāi)環(huán)境控制,隨著計(jì)算機(jī)自動(dòng)化和單片機(jī)技術(shù)的不斷發(fā)展,許多地方都實(shí)現(xiàn)了無(wú)人值守或智能控制。溫度和濕度是日常生產(chǎn)中常見(jiàn)的被控參數(shù),因此對(duì)溫度和濕度的控制對(duì)工農(nóng)業(yè)等日常生產(chǎn)的智能化及自動(dòng)化相當(dāng)重要。為此,我們引入了89C51系列單片機(jī)。 本次設(shè)計(jì)的溫濕度控制系統(tǒng)可利用單片機(jī)對(duì)所采集的溫濕度數(shù)據(jù)進(jìn)行實(shí)時(shí)檢測(cè)與分析,并作出及時(shí)判斷,從而實(shí)現(xiàn)溫濕度控制的智能化及自動(dòng)化。其中溫度數(shù)據(jù)的采集是由溫度傳感器 DS18B20 將采集的數(shù)據(jù)轉(zhuǎn)化為數(shù)字量,然后被送入單片機(jī)中進(jìn)行處理。濕度數(shù)據(jù)的采集是由濕度傳感器 HS1101 完成的,然后經(jīng) A/D 轉(zhuǎn)換后,將數(shù)字量送入單片機(jī)進(jìn)行數(shù)據(jù)處理。同時(shí)在設(shè)備出現(xiàn)故障的時(shí)候,語(yǔ)音報(bào)警電路和數(shù)字顯示電路的組合,會(huì)更好地是值班人員了解當(dāng)前的溫濕度的具體數(shù)值,并提醒維護(hù)人員及時(shí)采取相應(yīng)措施。 本文共分為五部分,第一部分是引言,主要對(duì)選題背景、意義及國(guó)內(nèi)外發(fā)展現(xiàn)狀進(jìn)行簡(jiǎn)單介紹。第二部分為系統(tǒng)總體方案的設(shè)計(jì),主要通過(guò)對(duì)比集中方案來(lái)最終確定本次設(shè)計(jì)所下用的最佳方案。第三部分為主要單元電路的介紹,有溫度測(cè)控電路、濕度測(cè)控電路、數(shù)顯電路、報(bào)警電路、 51單片機(jī)的外圍電路等。第四部分為主要元器件的介紹 ,有溫度傳感器 DS18B濕度傳感器 HS110 51 單片機(jī)。第五部分為總結(jié),是對(duì)本文的高度概括。 關(guān)鍵字 : 溫度,濕度,智能化 沈陽(yáng)工程學(xué)院畢業(yè)設(shè)計(jì)(論文) II Abstract There is no modern agricultural production without environment control,with the rapid development of puter automation and single chip microputer technology,many places have realized unattended or intelligent and humidity are mon in daily production was accused of parameters,so to control the temperature and humidity is vital to the automation of industry,agricultural and other daily ’s why we introduce the 51 single chip microputer. The design of the temperature and humidity control system can use single chip microputer to have a realtime detection and analysis on the temperature and humidity data,and then make a intime judgment ,so as to realize the intelligent and automatic control on the temperature and data collected by the temperature sensor DS18B20 transform data into digital quantity,and then be processed into the single chip data collection was done by HS1101 humidity sensor,then after A/D conversion,the digital quantity into singlechip microputer for data the time of equipment malfunction,the bination of voice alarm circuit and digital display circuit will make it easier for relevant people to check the current temperature and humidity data and remind the maintenance personnel to take corresponding measures in time. The article is divided into five parts,the first and fore is the introduction,mainly to the selected topic background ,significance and the brief introduction to the current situation of the development of both at home and second part of overall scheme of the system design mainly by paring the concentrated solution to finalized with the best third part of the main unit circuit is introduced,including temperature measurement and control circuit,humidity measurement and control circuit,digital display circuit,alarm circuit and the periphery of the 51 singlechip microputer circuit, fourth part to be introduced is the main ponent,including temperature sensor DS18B20,humidity sensor HS1101,51 singlechip microputer, five part is summary,it is highly generalization of this article. Keywords:temperature, humidity, intelligence 基于 51單片機(jī)的溫濕度控制系統(tǒng)的研究 III 目 錄 摘 要 .................................................................................................................................................................... I Abstract ................................................................................................................................................................ II 1 緒論 ................................................................................................................................................................... 1 課題背景 ................................................................................................................................................. 1 選題意義 ............................................................................................................................................... 1 國(guó)內(nèi)外發(fā)展現(xiàn)狀 ................................................................................................................................... 2 國(guó)內(nèi)發(fā)展現(xiàn)狀 ................................................................................................................................... 2 國(guó)外發(fā)展現(xiàn)狀 ................................................................................................................................... 3 2 設(shè)計(jì)任務(wù)分析及方案論證 ................................................................................................................................ 5 設(shè)計(jì)思路 ................................................................................................................................................. 5 系統(tǒng)功能及系統(tǒng)組成 ............................................................................................................................. 6 系統(tǒng)整體框圖 ......................................................................................................................................... 6 溫濕度控制系統(tǒng)方案比較及論證 ......................................................................................................... 7 3 單元硬件電路的設(shè)計(jì) ........................................................................................................................................ 9 溫度測(cè)控單元 ......................................................................................................................................... 9 濕度測(cè)控單元 ......................................................................................................................................... 9 .............................................................................................................................................. 10 數(shù)字顯示電路 ....................................................................................................................................... 11 單片機(jī)的外圍電路 .............................................................................................................................. 12 A/D轉(zhuǎn)換電路 .....................................................................