基于單片機(jī)的無(wú)線溫度采集系統(tǒng)的設(shè)計(jì).doc
約93頁(yè)DOC格式手機(jī)打開(kāi)展開(kāi)
基于單片機(jī)的無(wú)線溫度采集系統(tǒng)的設(shè)計(jì),摘要隨著信息領(lǐng)域各種技術(shù)的發(fā)展,在數(shù)據(jù)采集方面的技術(shù)也取得了長(zhǎng)足的進(jìn)步,采集數(shù)據(jù)的信息化是目前社會(huì)的發(fā)展主流方向。各種領(lǐng)域都用到了數(shù)據(jù)采集,在石油勘探、地震數(shù)據(jù)采集領(lǐng)域已經(jīng)得到應(yīng)用。本課題提出一種基于單片機(jī)的無(wú)線溫度采集系統(tǒng)方案,該方案是利用單片機(jī)控制ds18b20溫度傳感器采集溫度、控制led數(shù)碼管實(shí)時(shí)顯示溫度值、控...
內(nèi)容介紹
此文檔由會(huì)員 huangbinbest 發(fā)布
摘要
隨著信息領(lǐng)域各種技術(shù)的發(fā)展,在數(shù)據(jù)采集方面的技術(shù)也取得了長(zhǎng)足的進(jìn)步,采集數(shù)據(jù)的信息化是目前社會(huì)的發(fā)展主流方向。各種領(lǐng)域都用到了數(shù)據(jù)采集,在石油勘探、地震數(shù)據(jù)采集領(lǐng)域已經(jīng)得到應(yīng)用。
本課題提出一種基于單片機(jī)的無(wú)線溫度采集系統(tǒng)方案,該方案是利用單片機(jī)控制DS18B20溫度傳感器采集溫度、控制LED數(shù)碼管實(shí)時(shí)顯示溫度值、控制NFR240L1進(jìn)行數(shù)據(jù)的無(wú)線傳輸,并由單片機(jī)去把溫度數(shù)據(jù)傳至計(jì)算機(jī)進(jìn)行存儲(chǔ)。本系統(tǒng)中所用到的器件是STC 公司的STC89C52 單片機(jī)、數(shù)字溫度傳感器DS18B20和無(wú)線芯片NFR24L01,測(cè)量結(jié)果用七段段LED數(shù)碼管顯示采集的數(shù)字信息,并利用單片機(jī)串行口,通過(guò)RS-232 總線及通信協(xié)議將采集的數(shù)據(jù)傳送到PC 機(jī),進(jìn)行進(jìn)一步的存檔、處理,并對(duì)測(cè)量結(jié)果進(jìn)行顯示和存儲(chǔ)。
關(guān)鍵詞 單片機(jī);溫度采集;NFR24L01;數(shù)據(jù)傳輸;串口通信;
Abstract
With the development of various technologies of information in the field,in data collection techniques have also made great progress,collect data,information and social development is the mainstream. Various areas of data collection used in oil exploration, seismic data acquisition in the field has been applied.
This issue presents a collection based on single chip system solutions for wireless temperature, the program is the use of microcomputer control the temperature DS18B20 temperature sensor acquisition, real-time control of LED digital display temperature control, control NFR240L1 wireless data transmissionby the microcontroller to the temperature data transmitted to the computer for storage. This system is a device used in the STC's STC89C52 microcontroller, digital temperature sensor DS18B20 and wireless chips NFR24L01, measured with a seven-segment LED digital display segment of digital information collectionand use Serial port, RS-232 bus and through the communication protocol to collect data to the PC, for further archiving, processing, and measurement resultsare displayed and stored.
Keywords SCM Temperature collection NFR24L01 Data transmission Serial communication
目 錄
1 緒論 1
1.1 課題背景 1
1.2 數(shù)據(jù)采集系統(tǒng)簡(jiǎn)單介紹 1
2 溫度采集系統(tǒng)的設(shè)計(jì) 3
2.1 系統(tǒng)硬件電路構(gòu)成 3
2.1.1 單片機(jī)部分 3
2.1.2 溫度傳感器部分 7
2.1.3 LED數(shù)碼管部分 15
2.1.4 NRF24L01無(wú)線數(shù)據(jù)傳輸部分 16
2.2 系統(tǒng)軟件設(shè)計(jì) 29
2.2.1 DS18B20 程序的設(shè)計(jì) 29
2.2.2 數(shù)碼管顯示程序的設(shè)計(jì) 31
3 串口通信 36
3.1 通信簡(jiǎn)介 36
3.2 單片機(jī)串口通信接口 37
3.2.1 單片機(jī)串口結(jié)構(gòu) 37
3.2.2 單片機(jī)與PC 機(jī)之間電平轉(zhuǎn)換硬件接口 38
3.2.3 單片機(jī)串口通信設(shè)置及程序設(shè)計(jì) 40
4 上位機(jī)程序設(shè)計(jì) 43
4.1 Visual Basic 語(yǔ)言簡(jiǎn)介 43
4.2 串口通信的實(shí)現(xiàn) 43
4.2.1 MSComm 控件的操控原則 44
4.2.2 MSComm 的屬性 44
4.3 上位機(jī)程序設(shè)計(jì) 45
4.4 數(shù)據(jù)庫(kù)設(shè)計(jì) 47
總結(jié) 49
致謝 50
參考文獻(xiàn) 51
附錄 52
附錄1 52
附錄2 57
附錄3 80
隨著信息領(lǐng)域各種技術(shù)的發(fā)展,在數(shù)據(jù)采集方面的技術(shù)也取得了長(zhǎng)足的進(jìn)步,采集數(shù)據(jù)的信息化是目前社會(huì)的發(fā)展主流方向。各種領(lǐng)域都用到了數(shù)據(jù)采集,在石油勘探、地震數(shù)據(jù)采集領(lǐng)域已經(jīng)得到應(yīng)用。
本課題提出一種基于單片機(jī)的無(wú)線溫度采集系統(tǒng)方案,該方案是利用單片機(jī)控制DS18B20溫度傳感器采集溫度、控制LED數(shù)碼管實(shí)時(shí)顯示溫度值、控制NFR240L1進(jìn)行數(shù)據(jù)的無(wú)線傳輸,并由單片機(jī)去把溫度數(shù)據(jù)傳至計(jì)算機(jī)進(jìn)行存儲(chǔ)。本系統(tǒng)中所用到的器件是STC 公司的STC89C52 單片機(jī)、數(shù)字溫度傳感器DS18B20和無(wú)線芯片NFR24L01,測(cè)量結(jié)果用七段段LED數(shù)碼管顯示采集的數(shù)字信息,并利用單片機(jī)串行口,通過(guò)RS-232 總線及通信協(xié)議將采集的數(shù)據(jù)傳送到PC 機(jī),進(jìn)行進(jìn)一步的存檔、處理,并對(duì)測(cè)量結(jié)果進(jìn)行顯示和存儲(chǔ)。
關(guān)鍵詞 單片機(jī);溫度采集;NFR24L01;數(shù)據(jù)傳輸;串口通信;
Abstract
With the development of various technologies of information in the field,in data collection techniques have also made great progress,collect data,information and social development is the mainstream. Various areas of data collection used in oil exploration, seismic data acquisition in the field has been applied.
This issue presents a collection based on single chip system solutions for wireless temperature, the program is the use of microcomputer control the temperature DS18B20 temperature sensor acquisition, real-time control of LED digital display temperature control, control NFR240L1 wireless data transmissionby the microcontroller to the temperature data transmitted to the computer for storage. This system is a device used in the STC's STC89C52 microcontroller, digital temperature sensor DS18B20 and wireless chips NFR24L01, measured with a seven-segment LED digital display segment of digital information collectionand use Serial port, RS-232 bus and through the communication protocol to collect data to the PC, for further archiving, processing, and measurement resultsare displayed and stored.
Keywords SCM Temperature collection NFR24L01 Data transmission Serial communication
目 錄
1 緒論 1
1.1 課題背景 1
1.2 數(shù)據(jù)采集系統(tǒng)簡(jiǎn)單介紹 1
2 溫度采集系統(tǒng)的設(shè)計(jì) 3
2.1 系統(tǒng)硬件電路構(gòu)成 3
2.1.1 單片機(jī)部分 3
2.1.2 溫度傳感器部分 7
2.1.3 LED數(shù)碼管部分 15
2.1.4 NRF24L01無(wú)線數(shù)據(jù)傳輸部分 16
2.2 系統(tǒng)軟件設(shè)計(jì) 29
2.2.1 DS18B20 程序的設(shè)計(jì) 29
2.2.2 數(shù)碼管顯示程序的設(shè)計(jì) 31
3 串口通信 36
3.1 通信簡(jiǎn)介 36
3.2 單片機(jī)串口通信接口 37
3.2.1 單片機(jī)串口結(jié)構(gòu) 37
3.2.2 單片機(jī)與PC 機(jī)之間電平轉(zhuǎn)換硬件接口 38
3.2.3 單片機(jī)串口通信設(shè)置及程序設(shè)計(jì) 40
4 上位機(jī)程序設(shè)計(jì) 43
4.1 Visual Basic 語(yǔ)言簡(jiǎn)介 43
4.2 串口通信的實(shí)現(xiàn) 43
4.2.1 MSComm 控件的操控原則 44
4.2.2 MSComm 的屬性 44
4.3 上位機(jī)程序設(shè)計(jì) 45
4.4 數(shù)據(jù)庫(kù)設(shè)計(jì) 47
總結(jié) 49
致謝 50
參考文獻(xiàn) 51
附錄 52
附錄1 52
附錄2 57
附錄3 80
TA們正在看...
- 周莊情悠悠課后思綿綿——散文如何出彩的思考.doc
- 周記成為學(xué)生練筆的好機(jī)會(huì).doc
- 高三班主任在家長(zhǎng)會(huì)上的講話稿.doc
- 呼喚本色語(yǔ)文.doc
- 高三班主任培訓(xùn)會(huì)上的發(fā)言稿.doc
- 呼喚本色閱讀.doc
- 高三班主任培訓(xùn)會(huì)發(fā)言稿:做一個(gè)有思想有方法負(fù)責(zé)...doc
- 呼喚語(yǔ)文教學(xué)的文本的回歸——對(duì)現(xiàn)代多媒體條件下...doc
- 高三班主任家長(zhǎng)會(huì)發(fā)言稿.doc
- 和孩子在一起——走在詩(shī)意的道路上.doc