大棚實時監(jiān)控系統設計.doc
大棚實時監(jiān)控系統設計,大棚實時監(jiān)控系統設計目 錄摘要1關鍵詞1abstract1key words10 引言20.1 課題的意義20.2 國內外研究現狀20.2.1 國外的研究進展20.2.2 國內的研究進展20.3 本文研究的主要內容21 系統總體設計31.1 系統功能設計31.2 系統的組成與工作原理31.2.1 系統的組成31.2.2...


內容介紹
此文檔由會員 愛上傳 發(fā)布大棚實時監(jiān)控系統設計
目 錄
摘要……………………………………………………………………………………………1
關鍵詞…………………………………………………………………………………………1
Abstract……………………………………………………………………………………1
Key words……………………………………………………………………………………1
0 引言 2
0.1 課題的意義 2
0.2 國內外研究現狀 2
0.2.1 國外的研究進展 2
0.2.2 國內的研究進展 2
0.3 本文研究的主要內容 2
1 系統總體設計 3
1.1 系統功能設計 3
1.2 系統的組成與工作原理 3
1.2.1 系統的組成 3
1.2.2 系統的工作原理 4
1.2.3系統的硬件原理圖 4
2 硬件電路設計 5
2.1 傳感器設計 5
2.1.1 DS18B20數字溫度傳感器概述 5
2.1.2 DS18B20的性能特點 5
2.1.3 DS18B20的管腳排列 5
2.1.4 1-wire技術 5
2.1.5 DS18B20的內部結構 6
2.1.6 DS18B20的時序 7
2.1.7 DS18B20的控制方法 9
2.1.8 DS18B20的測溫原理 9
2.2單片機設計 10
2.2.1 AT89C51芯片的主要性能 10
2.2.2 AT89C51芯片的引腳說明 11
2.3 時鐘晶振電路和復位電路 12
2.4 數碼管輸出 13
2.5 RS-232通信設計 14
2.5.1 串行通信的分類 14
2.5.2 串行通信的制式 15
2.5.3 RS-232接口標準 15
2.5.4 RS-232的硬件設計 16
3系統的軟件設計 17
3.1 系統軟件設計的內容 17
3.2 主程序設計 17
3.3 DS18B20初始化子程序設計 19
3.4寫時序子程序設計 19
3.5 顯示子程序設計 21
4 系統的仿真與編譯 22
4.1 程序在Keil中編譯 22
4.2 系統在Proteus中的仿真 23
4.3 實物的制作 25
5 結論 27
致 謝 ………………………………………………………………………………27
參考文獻………………………………………………………………………………28
附 錄 ………………………………………………………………………………29
大棚實時監(jiān)控系統設計
摘要:我國農業(yè)正處于從傳統農業(yè)向現代化農業(yè)轉化的新階段,而現代農業(yè)生產離不開環(huán)境控制,本文在對國內外大棚智能控制進行深入分析的基礎上,提出一種基于單片機并采用數字化單總線技術的溫度測控系統應用于大棚的設計方案,該方案是利用溫度傳感器DS18B20將大棚內溫度的變化,變換成電流的變化,再轉換為電壓變化輸入模數轉換器,其值由單片機處理,最后由單片機去控制數字顯示器,顯示大棚內的實際溫度。這種設計方案能對多點的溫度進行實時巡檢,各檢測單元能獨立完成各自功能,同時能夠根據主控機的指令對溫度進行定時采集。另一方面,本系統通過RS-232總線與監(jiān)控計算機通信,將采集到的數據傳輸給監(jiān)控計算機。監(jiān)控計算機將單片機傳輸的數據進行記錄、存儲、處理和報警,供工作人員瀏覽、記錄和進行相關處理。
關鍵詞:單片機;單總線技術;DS18B20;上位機;下位機
The Design of the Real-time Monitoring System of Greenhouse
Abstract: China is now during the new stage that traditional agriculture changes to modern, and modern agricultural production is inseparable from the environmental control. Based on thorough analysis about our national and abroad greenhouse intelligent control, this paper gives a greenhouse temperature control project which is based on the SCM and digital mono bus technology. In this project, the change of temperature in the greenhouse is transformed into the change of electric current and then into the change of voltage by using the temperature sensors. The change of voltage is input into the A/D conversion units and the result is dealt with by SCM. At last the real time temperature in the greenhouse is displayed on the monitor under the control of SCM. This project can make real time patrol checking to the different nod’s temperature in the greenhouse, and every separate checking unit can finish its task independently. At the same time, every separate checking unit can make timing collecting according to the instruction from the main control. On the other hand, the MCU transmits the gathered data to monitoring computer by the means of the communication between 232-bus and monitoring computer. The monitoring computer will record, store, process and alarm the data, so that the operators can browse and record it, then take relative measures.
Key words: SCM; Mono bus technology; DS18B20; Host system; Slave system