【正文】
感器的實(shí)際測量值與事先設(shè)定的目標(biāo)進(jìn)行比較,以決定大棚 /倉庫溫濕度的控制過程,按照相應(yīng)的機(jī)構(gòu)進(jìn)行加熱,降溫或者是澆水,通風(fēng)等。 [1]黃遵熹. 單片機(jī)原理接口與應(yīng)用 [M].西北工業(yè)大學(xué)出版社, 2020. 147— 150. [2]劉文濤 . 單片機(jī)應(yīng)用開發(fā)實(shí)例 . 清華大學(xué)出版社 2020. [3]韓太林 . 單片機(jī)原理及應(yīng)用 . 電子工業(yè)出版社 . 2020. [4]張毅剛 . 單片機(jī)原理及應(yīng)用 . 高等教育出版社 . 2020. [5]何立民 . 單片機(jī)應(yīng)用技術(shù)選編 [第三版 ]. 北京航空航天大學(xué)出版社 .2020. [6]付家才 . 單片機(jī)控制工程實(shí)踐技術(shù) . 北京化學(xué)工業(yè)出版社 .2020. [7]嚴(yán)天峰 . 單片機(jī)應(yīng)用系統(tǒng)設(shè)計(jì)與仿真調(diào)試 . 北京航空航天大學(xué)出版社, 2020 [8]徐愛鈞 . 8051 單片機(jī)實(shí)踐教程 [M].電子工業(yè)出版社 . 2020 美國是將計(jì)算機(jī)應(yīng)用于大棚和管理最早,最多的國家之一。結(jié)合作物生長規(guī)律,控制環(huán)境條件,使作物在不適宜生長的反季節(jié)中,可獲得比室外生長更優(yōu)的環(huán)境條件,從而使作物達(dá)到優(yōu)質(zhì) 、高產(chǎn)、高效的栽培目的。而大棚作為現(xiàn)代化農(nóng)業(yè)實(shí)施的重要產(chǎn)物,在國內(nèi)多數(shù)地區(qū)得到了廣泛應(yīng)用。通過設(shè)計(jì)系統(tǒng)原理圖、用Proteus 軟件進(jìn)行仿真,證明了該系統(tǒng)的可行性。這個(gè)控制系統(tǒng)能夠測量溫室大棚或倉庫中的溫度和濕度,將其顯示在液晶屏 LCD1602 上,同時(shí)將其與設(shè)定值進(jìn)行對比,如果超出上下限,將進(jìn)行報(bào)警并啟動(dòng)溫濕度調(diào)節(jié)設(shè)備。 I 摘要 本設(shè)計(jì)是基于 AT89C52 單片機(jī)的大棚倉庫溫濕度自動(dòng)控制系統(tǒng),采用 SHT11 作為溫濕度傳感器, LCD1602 液晶屏進(jìn)行顯示。 SHT11 使用類似于 I2C總線的時(shí)序與單片機(jī)進(jìn)行通信,由于它高度集成,已經(jīng)包括 A/D 轉(zhuǎn)換電路,所以使用方便,而且準(zhǔn)確、耐用 LCD1602 能夠分兩行顯示數(shù)據(jù),第一行顯示溫度,第二行顯示濕度。此外,還可以通過獨(dú)立式鍵盤對設(shè)定的溫濕度進(jìn)行修改。 關(guān)鍵詞 : AT89C52 SHT11 溫濕度自動(dòng)控制 Ⅱ Abstract This design is an automatic temperature and humidity controller for greenhouses, with the ATC89C52RC MCU being its main controller. It uses the SHT11 as the temperature and humidity sensor, and the LCD1602 to display the messages. The SHT11 uses a timing sequence much like the I2C to municate with the microcontroller. Because it’ s a highly integrated chip, it already includes an analog to digital converter. Therefore, it’ s quite convenient to use, and also accurate and durable. The LCD1602 can display two lines of messages, with the first line for temperature and the second line for humidity. The design can measure the temperature and humidity in a greenhouse, and then display it on a LCD1602. Meanwhile, it pares the data with the set limit. If the limit is exceeded, then the system will send out a warning using a buzzer and activate the temperature and humidity controlling equipment. Besides, the set limit can be modified with the independent keyboard. Through schematic design and Proteus simulation, the feasibility of this design has been proved. Keywords: AT89C52, SHT11,temperature and humidity control 蘭州交通大學(xué)博文學(xué)院畢業(yè)設(shè)計(jì) 目錄 摘要 …………………………………………………………………...…………………………………… ..1 Abstract……..………………………………………………….…………………………………….…2 1 緒論 ………..……………………………………………………….………………………………………4 研究目的和意義 …………………………………………………………………………………..4 閱讀的主要參考文獻(xiàn)及資料名稱 ………………..………………………………………..4 ……………………….....………............5 ,關(guān)鍵問題的解決思路 ……………………………………………….…..5 2系統(tǒng)方案設(shè)計(jì) …………………………………………………………………………….......................6 溫濕度控制系統(tǒng)的設(shè)計(jì)指標(biāo)要求 ………………………………………………………....5 系統(tǒng)設(shè)計(jì)的原則 .............................................................................................6 可靠性 ..................................................................................................6 性價(jià)比 ................................................................................................. 6 方案比較 .........................................................................................................6 方案一 ..................................................................................................6 圖 用 PLC 作為主控制器的控制系統(tǒng) ................................................................... 7 方案二 ..................................................................................................7 圖 用單片機(jī)作為主控制器的控制系統(tǒng) ............................................................... 7 方案選擇 .........................................................................................................8 液晶顯示模塊 ...................................................................................... 10 溫濕度傳感器模塊 .............................................................................. 11 報(bào)警電路的設(shè)計(jì) ................................................................................ 12 按鍵電路設(shè)計(jì) .................................................................................... 13 元件清單 ........................................................................................................ 13 關(guān)鍵器件的介紹 ............................................................................................ 14 AT89C52 ................................................................................................ 14 蘭州交通大學(xué)博文學(xué)院畢業(yè)設(shè)計(jì) 4 系統(tǒng)軟件設(shè)計(jì) .......................................................................................................... 16 軟件設(shè)計(jì)的總體結(jié)構(gòu) .................................................................................... 16 主要模塊的設(shè)計(jì)流程框 圖 ............................................................................ 18 主程序流程圖 ...................................................................................... 18 SHT11 子程序流程圖 ........................................................................... 19 LCD1602 子程序流程圖 ...................................................................... 20 輸出 控制子程序流程圖 ...................................................................... 21 軟件設(shè)計(jì)所用工具 ........................................................................................ 22 Keil uVision4 .......................................................................................... 22 Proteus .................................................................................................. 22 5 系統(tǒng)調(diào)試 .................................................................................................................. 22 用 Proteus 搭建仿真總圖 .............................................................................. 22 用 Keil 對程序進(jìn)行調(diào)試、編譯 .........................................