畢業(yè)論文 多路數(shù)字式溫度測量系統(tǒng).doc
約39頁DOC格式手機打開展開
畢業(yè)論文 多路數(shù)字式溫度測量系統(tǒng),論文標準word格式排版 共37頁 15848字摘 要本文結(jié)合實際使用需求,采用ds18b20數(shù)字溫度傳感器及單片機設計硬件連接電路,并給出了軟件流程圖及程序。系統(tǒng)由多個外接的溫度傳感器及顯示器、鍵盤電路、電子看門狗電路、報警電路、單片機、通信接口及上位機組成。傳感器將溫度轉(zhuǎn)為電信號后,經(jīng)過通信接口交微處理器處理,最后...
內(nèi)容介紹
此文檔由會員 莎士比亞 發(fā)布
論文標準WORD格式排版 共37頁 15848字
摘 要
本文結(jié)合實際使用需求,采用DS18B20數(shù)字溫度傳感器及單片機設計硬件連接電路,并給出了軟件流程圖及程序。系統(tǒng)由多個外接的溫度傳感器及顯示器、鍵盤電路、電子看門狗電路、報警電路、單片機、通信接口及上位機組成。傳感器將溫度轉(zhuǎn)為電信號后,經(jīng)過通信接口交微處理器處理,最后將溫度值顯示并存儲起來。通過鍵盤可以控制數(shù)據(jù)的回放,且可以通過接口與上位機進行通信。系統(tǒng)具有超溫報警功能。
由于采用了智能溫度傳感器DS18B20,它的轉(zhuǎn)換速率極快,進行讀、寫操作非常簡便。它具有數(shù)字化輸出,可測量遠距離點溫度。系統(tǒng)具有微型化,微功耗,測量精度高,功能強大等特點,同時可測量多路溫度參數(shù),報警的溫度值能方便地設置。由于有先進的看門狗電路,加之DS18B20內(nèi)部的差錯檢驗,所以它的抗干擾能力強,性能可靠,結(jié)構簡單。
系統(tǒng)由上位機和下位機兩大部分組成。下位機實現(xiàn)溫度的檢測并提供標準的通信接口,上位機部分使用了通用PC。該系統(tǒng)可應用于倉庫測溫、樓宇空調(diào)控制和生產(chǎn)過程監(jiān)控等領域。
關鍵字:溫度測量;傳感器;單片機;集成電路
Abstract
Based on the actual experience and needs ,this thesis mainly designs the
hardware connecting circuit by using DS18B20 and MCU. Meanwhile ,it shows the flowchart of software systems and procedures.This system consists of several external temperature sensors and displays,keyboard circuit,electronic watchdog circuit,alarm circuit, microprocessor,communications interface and the host computer. The temperature sensor turns temperature into signals and then through the disposal of the microprocess or interface, the temperature is showed and storaged finally . The data can be controlled by the keyboard intervals, and can communicate with the host computer through the interface. This system has the over –temperature alarm system function.
Because the DS18B20 intelligent temperature sensor system is used ,it has fast rate of change and it is very convenient to read and write . It has digital output ,and can measure the remote temperature.This system has the chatacteristics of microminiaturization, low power ,and high accuracy. It can measure the multi-channel temperature parameters at the same time and the alarm temperature can be easily installed. Because of the advanced watchdog circuit and the internal error testing of DS18B20 ,its anti-interference capability becomes better ,its function more reliable and its stracture simpler.
This system is made up of the upper and lower crew of two main components. The lower component measures the temperature and provides a standard communication interface .Parts of the upper components use the general PC .This system can be used for measuring the temperature , controlling and monitoring the process of the air condition in the buildings.
Key Words:temperature measure; Sensor; single-chip microcomputer; integrate circuit
目錄
第一章 緒論1
1.1 國內(nèi)外研究現(xiàn)狀1
1.2 設計的目的及意義1
1.3 主要研究內(nèi)容2
第二章 系統(tǒng)總體結(jié)構設計與性能指標3
2.1 傳感器的選擇3
2.1.1 模擬式傳感器3
2.1.2數(shù)字式傳感器3
2.1.3 DS18B20的選用4
2.2 系統(tǒng)性能指標要求6
2.3系統(tǒng)總體結(jié)構設計方案6
第三章 硬件電路設計8
3.1高精度穩(wěn)壓電源8
3.1.1高精度穩(wěn)壓電源的組成8
3.1.2高精度穩(wěn)壓電源設計8
3.2看門狗電路10
3.3聲光報警電路11
3.4鍵盤電路12
3.4.1鍵盤電路原理12
3.4.2 開關狀態(tài)的可靠輸入12
3.4.3 對按鍵進行編碼12
3.4.4 選擇鍵盤監(jiān)測方法13
3.5溫度顯示電路13
3.6溫度測試電路15
3.7 串口通訊電路17
第四章 軟件設計19
4.1 軟件設計概述19
4.2 主程序方案19
4.3中斷控制程序設計20
4.4溫度測試子程序設計20
4.5串口通信程序設計21
第五章 系統(tǒng)調(diào)試24
5.1硬件調(diào)試24
5.2軟件調(diào)試24
5.3系統(tǒng)聯(lián)調(diào)25
5.4現(xiàn)場調(diào)試25
第六章 結(jié)論與展望26
6.1 結(jié)論26
6.2展望26
參考文獻27
附錄1 程序清單28
致謝32
摘 要
本文結(jié)合實際使用需求,采用DS18B20數(shù)字溫度傳感器及單片機設計硬件連接電路,并給出了軟件流程圖及程序。系統(tǒng)由多個外接的溫度傳感器及顯示器、鍵盤電路、電子看門狗電路、報警電路、單片機、通信接口及上位機組成。傳感器將溫度轉(zhuǎn)為電信號后,經(jīng)過通信接口交微處理器處理,最后將溫度值顯示并存儲起來。通過鍵盤可以控制數(shù)據(jù)的回放,且可以通過接口與上位機進行通信。系統(tǒng)具有超溫報警功能。
由于采用了智能溫度傳感器DS18B20,它的轉(zhuǎn)換速率極快,進行讀、寫操作非常簡便。它具有數(shù)字化輸出,可測量遠距離點溫度。系統(tǒng)具有微型化,微功耗,測量精度高,功能強大等特點,同時可測量多路溫度參數(shù),報警的溫度值能方便地設置。由于有先進的看門狗電路,加之DS18B20內(nèi)部的差錯檢驗,所以它的抗干擾能力強,性能可靠,結(jié)構簡單。
系統(tǒng)由上位機和下位機兩大部分組成。下位機實現(xiàn)溫度的檢測并提供標準的通信接口,上位機部分使用了通用PC。該系統(tǒng)可應用于倉庫測溫、樓宇空調(diào)控制和生產(chǎn)過程監(jiān)控等領域。
關鍵字:溫度測量;傳感器;單片機;集成電路
Abstract
Based on the actual experience and needs ,this thesis mainly designs the
hardware connecting circuit by using DS18B20 and MCU. Meanwhile ,it shows the flowchart of software systems and procedures.This system consists of several external temperature sensors and displays,keyboard circuit,electronic watchdog circuit,alarm circuit, microprocessor,communications interface and the host computer. The temperature sensor turns temperature into signals and then through the disposal of the microprocess or interface, the temperature is showed and storaged finally . The data can be controlled by the keyboard intervals, and can communicate with the host computer through the interface. This system has the over –temperature alarm system function.
Because the DS18B20 intelligent temperature sensor system is used ,it has fast rate of change and it is very convenient to read and write . It has digital output ,and can measure the remote temperature.This system has the chatacteristics of microminiaturization, low power ,and high accuracy. It can measure the multi-channel temperature parameters at the same time and the alarm temperature can be easily installed. Because of the advanced watchdog circuit and the internal error testing of DS18B20 ,its anti-interference capability becomes better ,its function more reliable and its stracture simpler.
This system is made up of the upper and lower crew of two main components. The lower component measures the temperature and provides a standard communication interface .Parts of the upper components use the general PC .This system can be used for measuring the temperature , controlling and monitoring the process of the air condition in the buildings.
Key Words:temperature measure; Sensor; single-chip microcomputer; integrate circuit
目錄
第一章 緒論1
1.1 國內(nèi)外研究現(xiàn)狀1
1.2 設計的目的及意義1
1.3 主要研究內(nèi)容2
第二章 系統(tǒng)總體結(jié)構設計與性能指標3
2.1 傳感器的選擇3
2.1.1 模擬式傳感器3
2.1.2數(shù)字式傳感器3
2.1.3 DS18B20的選用4
2.2 系統(tǒng)性能指標要求6
2.3系統(tǒng)總體結(jié)構設計方案6
第三章 硬件電路設計8
3.1高精度穩(wěn)壓電源8
3.1.1高精度穩(wěn)壓電源的組成8
3.1.2高精度穩(wěn)壓電源設計8
3.2看門狗電路10
3.3聲光報警電路11
3.4鍵盤電路12
3.4.1鍵盤電路原理12
3.4.2 開關狀態(tài)的可靠輸入12
3.4.3 對按鍵進行編碼12
3.4.4 選擇鍵盤監(jiān)測方法13
3.5溫度顯示電路13
3.6溫度測試電路15
3.7 串口通訊電路17
第四章 軟件設計19
4.1 軟件設計概述19
4.2 主程序方案19
4.3中斷控制程序設計20
4.4溫度測試子程序設計20
4.5串口通信程序設計21
第五章 系統(tǒng)調(diào)試24
5.1硬件調(diào)試24
5.2軟件調(diào)試24
5.3系統(tǒng)聯(lián)調(diào)25
5.4現(xiàn)場調(diào)試25
第六章 結(jié)論與展望26
6.1 結(jié)論26
6.2展望26
參考文獻27
附錄1 程序清單28
致謝32