【正文】
江蘇畜牧獸醫(yī)職業(yè)技術(shù)學(xué)院論文(設(shè)計) I 江蘇畜牧獸醫(yī)職業(yè)技術(shù)學(xué)院 畢業(yè)設(shè)計(論文) 題目: 基于 單片機 的種苗催芽室環(huán)境參數(shù)監(jiān)控 系統(tǒng)設(shè)計與實現(xiàn) 姓名: 學(xué)號: 202106033116 二級院系部: 機電工程系 班級 : 高專電子 09 專業(yè): 應(yīng)用電子技術(shù) 指導(dǎo)教師: 任 玲、翟旭軍 職稱: 講 師、副教授 二〇一二年 六 月 江蘇畜牧獸醫(yī)職業(yè)技術(shù)學(xué)院論文(設(shè)計) II 養(yǎng)殖場用單片機溫度控制器的設(shè)計與實現(xiàn) 【摘要】 養(yǎng)殖過程中 ,養(yǎng)殖大棚 的環(huán)境控制對于 動植物 的健康生長、最大程度地發(fā)揮其生長性能有著 及其 重要 的 意義。 養(yǎng)殖大棚 的環(huán)境控制主要是針對溫度、濕度等環(huán) 境因子進行監(jiān)視和 控 制 。本 次設(shè)計是 根據(jù) 養(yǎng)殖場 的環(huán)境 溫度 控 制 要求 ,研究并建立 基于單片機的溫度控制系統(tǒng)。 本系統(tǒng)是以 AT89C52 單片機為核心,并與數(shù)字溫度傳感器 DS18B四位一體的數(shù)碼管、繼電器、按鍵、小型電風(fēng)扇、 LED 燈等器件結(jié)合起來,共同構(gòu)成溫度控制器。以養(yǎng)殖場的溫度為設(shè)定參數(shù),根據(jù)參數(shù)偏離設(shè)定值(理想的養(yǎng)殖溫度)的程度由單片機自動啟動相應(yīng)的加熱和降溫設(shè)備,來升溫或降溫,實現(xiàn)對設(shè)定參數(shù)的閉環(huán)調(diào)節(jié)。該系統(tǒng)能夠及時采集養(yǎng)殖場溫度,并能自動升溫和降溫,從而將養(yǎng)殖場溫度保持在恒溫,該系統(tǒng)具有較高的測量精度和控 制精度。 本文首先對養(yǎng)殖場溫度控制過程進行分析,提出了多種控制方案,對各方案比較后確定了本設(shè)計的總體方案。然后進行原理圖的設(shè)計,采用分步焊接、軟件設(shè)計與調(diào)試,最后進行聯(lián)調(diào)。通過對控制器進行實驗和分析,表明系統(tǒng)運行情況正常,各功能模塊功能的實現(xiàn)可行,采集的溫度數(shù)據(jù)精確性較高,能滿足控制的要求。除此之外,該系統(tǒng)電路簡單、成本低,稍做修改還可以應(yīng)用于其他溫度控制的過程中,這大大地擴大了該系統(tǒng)的應(yīng)用范圍,在養(yǎng)殖中具有一定的實際意義。 【關(guān)鍵詞】 AT89C52; DS18B20;溫度控制;繼電器控制 江蘇畜牧獸醫(yī)職業(yè)技術(shù)學(xué)院論文(設(shè)計) III Abstract In the process of breeding, it is important for the animal and plant health growth, maximizing its growth performance. Breeding environmental control is mainly the temperature, humidity and other environmental factors. The design is based on farms in the environment temperature control requirements, and research the establishment of the temperature control system based on MCU. This system is based on AT89C52 as the core, with digital temperature sensor DS18B20, one of four digital tube, relays, buttons, small electric fan, LED lamps and other devices together, constitute a temperature controller. In order to farms temperature to set parameters, according to the parameters from a set value ( the ideal breeding temperature ) by the microcontroller automatically start the corresponding heating and cooling equipment, to warm up or cool down, to realize the closed loop adjusting parameters. The system can timely collection of farms temperature, and can automatically heat up and cool down, thereby the farm temperature maintained at constant temperature, the system has high measurement and control precision. First, the author analyses breeding field temperature control process, puts forward several control schemes, the scheme parison to determine the design of the overall program. Then the schematic design, step by step welding, software design and debugging, finally debugging. Through the controller to conduct experiments and analysis, shows that this system runs normally, each function module implement feasible, the collected temperature data is more accurate, and can meet the control requirements. In addition, the system has the advantages of simple circuit, low cost, a little modification can also be applied to other temperature control process, which greatly expanded the application range of the system, the breed has certain practical significance. Key words AT89C52。 DS18B20。 temperature control。 relay control 江蘇畜牧獸醫(yī)職業(yè)技術(shù)學(xué)院論文(設(shè)計) IV 目 錄 【摘要】 .......................................................................... II 【關(guān)鍵詞】 ........................................................................ II Abstract......................................................................... III Key words........................................................................ III 緒 論 ............................................................................. 1 ............................................................... 2 ................................................................... 2 ............................................................ 2 ............................................................ 2 ............................................................ 2 ............................................................... 3 ........................................... 3 系統(tǒng)各模塊的最終方案 ............................................... 5 本章小結(jié) .................................................................. 6 ................................................................... 7 ........................................................... 7 主要單元電路的設(shè)計 ........................................................ 7 ..................................................... 7 加熱和降溫控制部分 .................................................. 9 、顯示、控制器部分 .............................................. 10 系統(tǒng)總原理圖 ............................................................. 11 本章小結(jié) ................................................................. 11 .................................................................... 12 讀取 DS18B20溫度模塊子程序 ............................................... 12 數(shù)據(jù)處理子程序 .......................................................... 12 鍵盤掃描子程序 .......................................................... 13 主程序流程圖 ............................................................ 13 源程序 .................................................................. 15 本章小結(jié) ................................................................ 15 .................................................................. 16 數(shù)碼管的調(diào)試 ............................................................. 16 按鍵的調(diào)試 ............................................................... 16 溫度傳感器的調(diào)試 ......................................................... 17 繼電器控制部分的調(diào)試 ...................................................... 17 聯(lián)調(diào) ..................................................................... 18 .................................................................. 21 設(shè)計總結(jié)及展望 ......