【正文】
I XXX 大學(xué) XXX 學(xué)院 本科畢業(yè)論文 (設(shè)計(jì) ) 題 目: 溫室大棚內(nèi)的溫度檢測(cè)與控制系統(tǒng)的設(shè)計(jì) 學(xué) 部: 專業(yè)班級(jí): 學(xué) 號(hào): 學(xué)生姓名: 指導(dǎo)教師姓名: 指導(dǎo)教師職稱: 201 年 月 日 II 溫室大棚內(nèi)的溫度檢測(cè)與控制系統(tǒng)的設(shè)計(jì) 摘 要 本系統(tǒng)以 AT89C51 單片機(jī)為控制核心,利用溫度傳感器 AD590對(duì)蔬菜大棚內(nèi)的溫度進(jìn)行實(shí)時(shí)采集與控制,實(shí)現(xiàn)溫室溫度的自動(dòng)控制。本系統(tǒng)由單片機(jī)小系統(tǒng)模塊、溫度采集模塊、加熱模塊、降溫模塊、按鍵以及顯示模塊六個(gè)部分組成。可以通過(guò)按鍵設(shè)定溫室的溫度值,采集的溫度和設(shè)定的溫度通過(guò) LED數(shù)碼管顯示。當(dāng)所設(shè)定的溫度值比采集的溫度大時(shí),通過(guò)加熱器加熱,以達(dá)到設(shè)定值;反之,開(kāi)啟 降溫風(fēng)扇,以快速達(dá)到降溫效果。通過(guò)該系統(tǒng),對(duì)蔬菜大棚內(nèi)的溫度進(jìn)行有效、可靠地檢測(cè)與控制,從而保證大棚內(nèi)作物在最佳的溫度條件下生長(zhǎng),提高質(zhì)量和產(chǎn)量。 關(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。 Otherwise, the heater knocks off, and opens the ventilator as fast as to achieve the supposed temperature. It will be effective and reliable to exam and control the temperature of the greenhouse by using this system, thus guarants the crop growing fine under the best temperature condition, and enhances the crops’ quality and output. Key words: Single chip。 Temperature sensor。 Temperature control。 Temperature display。 Keyboard entry。 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)電路圖 ......................................................................................................