【正文】
I 學號 20200604050321 密級 ______________ 蘭州城市學院 本科畢業(yè)論文 基于 51 單片 機 的蔬菜大棚溫度檢測系統(tǒng)的設計 學 院 名 稱: 培黎工程技術學院 專 業(yè) 名 稱: 電子信息工程與技術 學 生 姓 名: 王永良 指 導 教 師: 趙彥敏 講師 二○一一 年 九 月 II BACHELOR39。S DEGREE THESIS OF LANZHOU CITY UNIVERSITY Based On 51 Single Film39。s Greenhouse Temperature Detection System Design College : Lanzhou City University Subject : Electronic Information Science and Technology Name : Wang yongliang Directed by : Zhao yanmin Professor Sep 2020 III 鄭 重 聲 明 本人呈交的學位論文,是在導師的指導下,獨立進行研究工作所取得的成果,所有數(shù)據(jù)、圖片資料真實可靠。盡我所知,除文中已經(jīng)注明引用的內(nèi)容外,本學位論文的研究成果不包含他人享有著作權的內(nèi)容。對本論文所涉及的研究工作做出貢獻的 其他個人和集體,均已在文中以明確的方式標明。本學位論文的知識產(chǎn)權歸屬于培養(yǎng)單位。 本人簽名: 王永良 日期: 2020 年 9 月 25 號 IV 摘 要 我國北方冬季寒冷而漫長,大力推廣蔬菜大棚種植蔬菜能夠更好地 滿足人民日益提高的 生活 需要。 蔬菜大棚內(nèi)通過調節(jié)溫度可以有效地控制二氧化碳 的濃度 ,二氧化碳是對植物生長起著重要的作用 。因此,對棚內(nèi)溫度的控制是非常重要的。本文介紹的分布式單總線蔬菜大棚溫度監(jiān)測預警系統(tǒng),采用全數(shù)字化設計,直接監(jiān)測每個棚內(nèi)不同部分的溫度,通過對溫度的 良好控制,有效地提高蔬菜的產(chǎn)量。本溫度設計采用現(xiàn)在流行的 AT89S52 單片機,配以 DS18B20 數(shù)字溫度傳感器,該溫度傳感器可自行設置溫度上下限。單片機將檢測到的溫度信號與輸入的溫度上、下限進行比較,由此作出判斷是否啟動繼電器以開啟設備。 本設計還加入了常用的數(shù)碼管顯示及狀態(tài)燈顯示燈常用電路,使得整個設計更加完整,更加靈活。 關鍵詞 : 單片機應用;溫度采集控制; DS18B20 應用 V Abstract In north China in winter long and cold, vigorously promote vegetables grow vegetables are better able to shed low meet people39。s increasing needs. By adjusting the temperature can effectively control both concentrations. Therefore, to secretly temperature control is very important. This paper introduces distributed single bus vegetables canopy temperature monitoring and warning system, adopting digital design, direct monitoring each secretly various parts of the temperature, through the good control of temperature, effectively improve vegetable production. This temperature design USES popular now AT89S52 SCM, match with DS18B20 digital temperature sensor, the temperature sensor to set temperature on the floor. SCM detect temperature signal input and the temperature of the upper and lower limit parison, thus judge whether starter relay to unlock equipment. This design still joined mon digital tube display and state lamp display lamps are monly used circuit, make whole design more integrated and more flexible. Keywords: microcontroller applications。 temperature acquisition and control。 DS18B20 application VI 目 錄 摘 要 .......................................... IV Abstract ......................................... V 目 錄 .......................................... VI 第一章 緒論 ....................................... 1 蔬菜大棚溫度控制系統(tǒng)的目的 .................................... 1 蔬菜大棚溫度控制系統(tǒng)完成的功能 ................................ 2 第二章 總體設計方案 ................................ 3 方案一 ........................................................ 3 方案二 ........................................................ 3 第三章 硬件電路設計 ................................ 6 AT89S52 的選用 ................................................ 6 溫度采集模塊的設計 ............................................ 7 顯示模塊的設計 ............................................... 13 晶振電路 ..................................................... 14 復位電路 ..................................................... 15 加熱和制冷電路 ............................................... 16 串行通信模塊設計 ............................................. 16 第四章 系統(tǒng)軟件設計 ............................... 19 系統(tǒng)軟件的整體思路 ........................................... 19 系統(tǒng)總流程圖 ................................................. 19 第五章 結論 ...................................... 25 致 謝 .......................................... 26 參考文獻 ........................................ 27 VII 附錄一 主板電路圖 ................................. 28 附錄二 系統(tǒng)源程序 ................................. 29 1 第一章 緒論 蔬菜大棚溫度控制系統(tǒng)的目的 本設計的內(nèi)容是 蔬菜大棚 溫度測試控制系統(tǒng),控制對象是溫度。 植物 在生長發(fā)育的過程中,溫度的高低,直接影響到花卉的生理活動,如酶的活性、光合作用、呼吸作用、蒸騰作用,這是在原產(chǎn)地已形成固有的特殊性能。因溫度周期的變化,可直接影響 植物 的生長, 果實 以及 果實 的數(shù)量大小等方面。生物正常的生