【正文】
熱,以達(dá)到設(shè)定值;反之,開(kāi)啟 降溫風(fēng)扇,以快速達(dá)到降溫效果。 關(guān)鍵詞: 單片機(jī);溫度傳感器;溫度控制;溫度顯示;鍵盤(pán)輸入;溫室 III Automatic TemperatureControl System of Greenhouse (College of Physics Science and Information Engineering, Jishou University, Jishou, Hunan 416000) Abstract This system takes the AT89C51 single chip as the control core, using the temperature sensor AD590 to carry on realtime gathering and controlling to the greenhouse of vegetables, so it can realizes autocontrol to the greenhouse’s temperature. This system contains the miniature single chip system module, the temperature gathering module, the heater module, the droptemperature module, the key pressed module and the display module. The gathering temperature or the setting temperature is displayed through the sevenseg LED. It can be established new temperature value in the greenhouse through pressing buttons, when this temperature value is higher than the gathering temperature value, then makes the heater work in order to achieve the defined value。 Temperature sensor。 Temperature display。 Greenhouse IV 目 錄 1 引言 ............................................................................................................................................. 1 2 硬件設(shè)計(jì) ..................................................................................................................................... 3 設(shè)計(jì)思路 .............................................................................................................................. 3 總體設(shè)計(jì)框圖 ...................................................................................................................... 3 基于 AT89C51 的單片機(jī)小系統(tǒng) .......................................................................................... 4 時(shí)鐘脈沖 ................................................................................................................. 4 復(fù)位電路 ................................................................................................................. 5 溫度采集模塊 ...................................................................................................................... 5 與溫度傳感器 AD590 配合使用的各個(gè)運(yùn)算放大器 OPA 的功能 ...................... 6 溫度轉(zhuǎn)換器 ADC0804 的功能 ............................................................................... 7 顯示模塊 .............................................................................................................................. 9 譯碼 IC 7447 ........................................................................................................... 9 段 LED 數(shù)碼七管 .................................................................................................. 10 鍵盤(pán)掃描 ............................................................................................................................ 11 鍵盤(pán) ....................................................................................................................... 11 鍵盤(pán)掃描芯片 ....................................................................................................... 12 WP 型溫室加熱器 ............................................................................................................... 12 降溫模塊 ............................................................................................................................ 13 3軟件設(shè)計(jì) .................................................................................................................................... 15 主程序 ................................................................................................................................ 15 定時(shí)器 T0中斷 .................................................................................................................. 17 顯示模塊 ............................................................................................................................ 18 按鍵掃描 ............................................................................................................................ 19 4 測(cè)試分析 ................................................................................................................................... 22 結(jié)束語(yǔ) ........................................................................................................................................... 23 參考文獻(xiàn) ....................................................................................................................................... 24 致 謝 ........................................................................................................................................... 25 附 錄 ........................................................................................................................................... 26 附錄 1 系統(tǒng)電路圖 ................................................................................................................... 26 附錄 2 源程序代碼 ................................................................................................................... 26 溫室溫度自動(dòng)控制系統(tǒng)設(shè)計(jì) 引言 1 1 引言 溫度、壓力、流量和液位是四種最常見(jiàn)的過(guò)程變量 [1]。因此,作為溫度控制系統(tǒng)的恒溫系統(tǒng)廣泛應(yīng)用于農(nóng)業(yè)、石油、化工、冶金、食品、醫(yī)藥、商檢、國(guó)防、教學(xué)、科研等領(lǐng)域。作為人口大國(guó),通過(guò)發(fā)展高科技提高農(nóng)產(chǎn)品的產(chǎn)量有著十 分現(xiàn)實(shí)的實(shí)際意義。運(yùn)用于農(nóng)業(yè)的恒溫系統(tǒng)是一種通過(guò)計(jì)算機(jī)實(shí)現(xiàn)溫室環(huán)境因子實(shí)時(shí)調(diào)控的網(wǎng)絡(luò)控制技術(shù),集農(nóng)業(yè)科技上的高、精、尖技術(shù)和計(jì)算機(jī)自動(dòng)控制技術(shù)于一體,是現(xiàn)代農(nóng)業(yè)科技向產(chǎn)業(yè)轉(zhuǎn)化的物質(zhì)基礎(chǔ)。隨著蔬菜大棚的迅速增多,人們對(duì)其性能要求也越來(lái)越高,特別是為了提高生產(chǎn)效率,對(duì)大棚的自動(dòng)化程度要求也越來(lái)越高。 溫室環(huán)境控制是在充分利用自然資源的基礎(chǔ)上,通過(guò)改變環(huán)境變量,如溫度、濕度、光度等來(lái)獲得植物的最佳生長(zhǎng)環(huán)境,從而達(dá)到增加作物產(chǎn)量、改善作物品質(zhì)、調(diào)節(jié)作物生長(zhǎng)周期、提高經(jīng)濟(jì)效益的目的。 2)為了保證溫室中培育對(duì)象的良性生長(zhǎng),溫室的氣候調(diào)節(jié)過(guò)程需緩慢進(jìn)行,應(yīng)盡可能通過(guò)各種設(shè)施運(yùn)作減少溫室外部氣候變化對(duì)溫室環(huán)境氣候的影響。 4)隨時(shí)根據(jù)市場(chǎng)現(xiàn)有的信息預(yù)測(cè)市場(chǎng)未來(lái)的變化,從而決定對(duì)溫室的投入,控制產(chǎn)品的上市時(shí)間。 6)盡可能低成本運(yùn)作,例如盡量利用太陽(yáng)能,選擇最適宜的加溫溫度,營(yíng)養(yǎng)液在線檢測(cè)和循環(huán)使用,盡可能低成本通風(fēng)、低消耗除濕。 本文設(shè)計(jì)的恒溫系統(tǒng)采用 AT89C51 單片機(jī) [2]控制技術(shù)對(duì)溫度進(jìn)行調(diào)節(jié),具有操作溫室溫度自動(dòng)控制系統(tǒng)設(shè)計(jì) 引言 2 簡(jiǎn)單便捷、采集方便準(zhǔn)確、適應(yīng)性強(qiáng)、成本低以及節(jié)省能源的特點(diǎn),可明顯增加使用者的經(jīng)濟(jì)效益。隨著科學(xué)技術(shù)的進(jìn)步,這種溫度控制系統(tǒng)已經(jīng)有了越來(lái)越多的應(yīng)用,給人們的生活和生產(chǎn)帶來(lái)了極大的便利。 溫室溫度自動(dòng)控制系統(tǒng)設(shè)計(jì)