畢業(yè)論文 多點溫度采樣系統(tǒng)設(shè)計.doc
約63頁DOC格式手機打開展開
畢業(yè)論文 多點溫度采樣系統(tǒng)設(shè)計,摘 要: 本設(shè)計提出一種基于at89c51單片機為核心的溫度控制系統(tǒng),并采用數(shù)字化單總線技術(shù)的設(shè)計方案應(yīng)用于溫室大棚的溫度測量系統(tǒng)。方案采用了一種新型數(shù)字溫度傳感器ds18b20,利用ds18b20嵌入的溫度傳感器將溫室大棚內(nèi)溫度的變化,變換成電流的變化,再轉(zhuǎn)換為電壓變化輸入模數(shù)轉(zhuǎn)換器,通過單線總線傳給at89c51單...
![](http://img.queshao.com/images/pcgzh.gif)
![](http://preview.queshao.com/tobuy/200602.gif)
內(nèi)容介紹
此文檔由會員 ljjwl8321 發(fā)布
摘 要: 本設(shè)計提出一種基于AT89C51單片機為核心的溫度控制系統(tǒng),并采用數(shù)字化單總線技術(shù)的設(shè)計方案應(yīng)用于溫室大棚的溫度測量系統(tǒng)。方案采用了一種新型數(shù)字溫度傳感器DS18B20,利用DS18B20嵌入的溫度傳感器將溫室大棚內(nèi)溫度的變化,變換成電流的變化,再轉(zhuǎn)換為電壓變化輸入模數(shù)轉(zhuǎn)換器,通過單線總線傳給AT89C51單片機,AT89C51單片機通過串行輸入輸出口與PC機進行通信。系統(tǒng)對多點的溫度進行實時巡檢,同時能夠根據(jù)PC機指令對溫度進行定時采集。溫度傳感器DS18B20負責(zé)溫度的采集,單片機將從DS18B20發(fā)出的信息讀取的溫度并與有效溫度的上下極值進行比較,若超過有效溫度范圍則啟動報警系統(tǒng),并給PC機發(fā)出相應(yīng)的信號,否則繼續(xù)從DS18B20讀取溫度。該系統(tǒng)具有實用性強、可靠性高等特點。
關(guān)鍵詞:溫度測量;單總線;數(shù)字溫度傳感器;溫室大棚;單片機
Multi-point temperature of the sampling system design
Abstract: This design is proposed based on AT89C51microcontroller as the core of the temperature control system and its digital single-bus technology used inthe design of the greenhouse temperature measurement system. Program uses a new type of digital temperature sensor DS18B20, use DS18B20 temperature sensor embedded inside the greenhouse temperature, transformed into the current changes, and then a converted to voltage input ADC, the bus passed through the single AT89C51 comicic- rocontroller AT89C51 microcontroller input and output through the serial port tounat- e with the PC machine. System for real-time multi-point inspection of temperature, w- hile providing instruction based on the temperature of PC-time acquisition. Tempsen- sor for temperature DS18B2collection, microcontroller reads the message from the D- S18B20 temperature and with the effective temperature of the upper and lower extm- comparison, if more than the effective temperature range, start alarm system, and to the PC, send the appropriate signals, or continue to read from the DS18B20 temper- rure. The system has a practical and high reliability。
Key words: Temperature measurement; single bus; digital temperature sensor; greenhouses; SCM
目 錄
第一章 緒論 1
1.1 研究的背景及其意義 1
1.2 研究動態(tài) 2
1.3 主要研究內(nèi)容 2
1.4 主要結(jié)構(gòu)安排 3
第二章 方案論證 4
2.1 傳感器部分 4
2.2 控制部分 5
2.3 系統(tǒng)方案 6
第三章 硬件的選擇 8
3.1 單片機的選擇 8
3.1.1 AT89C51單片機的功能特點 9
3.1.2 AT89C51單片機的引腳說明 10
3.2 溫度傳感器的選擇 12
3.2.1 DS18B20簡介 13
3.2.2 DS18B20工作原理 14
3.2.3 DS18B20內(nèi)部結(jié)構(gòu) 15
第四章 硬件電路設(shè)計 19
4.1 電源以及看門狗電路 19
4.1.1 電源電路 19
4.1.2 看門狗電路 19
4.2 鍵盤以及顯示電路 21
4.2.1 鍵盤電路 21
4.2.2 溫度顯示電路 23
4.3 溫度檢測電路 24
4.4 串口通訊電路 25
4.4.1 通訊電路 25
4.4.2 PC接口電路 26
4.5 整體電路 26
第五章 軟件設(shè)計 27
5.1 概述 27
5.2 主程序方案 27
5.3 各模塊子程序設(shè)計 28
第六章 系統(tǒng)調(diào)試 36
第七章 總結(jié) 37
致謝 38
參考文獻 39
附錄A:溫度測試子程序流程圖 40
附錄B:電路原理圖 41
附錄C:參考程序 42
關(guān)鍵詞:溫度測量;單總線;數(shù)字溫度傳感器;溫室大棚;單片機
Multi-point temperature of the sampling system design
Abstract: This design is proposed based on AT89C51microcontroller as the core of the temperature control system and its digital single-bus technology used inthe design of the greenhouse temperature measurement system. Program uses a new type of digital temperature sensor DS18B20, use DS18B20 temperature sensor embedded inside the greenhouse temperature, transformed into the current changes, and then a converted to voltage input ADC, the bus passed through the single AT89C51 comicic- rocontroller AT89C51 microcontroller input and output through the serial port tounat- e with the PC machine. System for real-time multi-point inspection of temperature, w- hile providing instruction based on the temperature of PC-time acquisition. Tempsen- sor for temperature DS18B2collection, microcontroller reads the message from the D- S18B20 temperature and with the effective temperature of the upper and lower extm- comparison, if more than the effective temperature range, start alarm system, and to the PC, send the appropriate signals, or continue to read from the DS18B20 temper- rure. The system has a practical and high reliability。
Key words: Temperature measurement; single bus; digital temperature sensor; greenhouses; SCM
目 錄
第一章 緒論 1
1.1 研究的背景及其意義 1
1.2 研究動態(tài) 2
1.3 主要研究內(nèi)容 2
1.4 主要結(jié)構(gòu)安排 3
第二章 方案論證 4
2.1 傳感器部分 4
2.2 控制部分 5
2.3 系統(tǒng)方案 6
第三章 硬件的選擇 8
3.1 單片機的選擇 8
3.1.1 AT89C51單片機的功能特點 9
3.1.2 AT89C51單片機的引腳說明 10
3.2 溫度傳感器的選擇 12
3.2.1 DS18B20簡介 13
3.2.2 DS18B20工作原理 14
3.2.3 DS18B20內(nèi)部結(jié)構(gòu) 15
第四章 硬件電路設(shè)計 19
4.1 電源以及看門狗電路 19
4.1.1 電源電路 19
4.1.2 看門狗電路 19
4.2 鍵盤以及顯示電路 21
4.2.1 鍵盤電路 21
4.2.2 溫度顯示電路 23
4.3 溫度檢測電路 24
4.4 串口通訊電路 25
4.4.1 通訊電路 25
4.4.2 PC接口電路 26
4.5 整體電路 26
第五章 軟件設(shè)計 27
5.1 概述 27
5.2 主程序方案 27
5.3 各模塊子程序設(shè)計 28
第六章 系統(tǒng)調(diào)試 36
第七章 總結(jié) 37
致謝 38
參考文獻 39
附錄A:溫度測試子程序流程圖 40
附錄B:電路原理圖 41
附錄C:參考程序 42