【正文】
的最大特點(diǎn)。通過(guò)簡(jiǎn)單的無(wú)線通信協(xié)議,實(shí)現(xiàn)高可靠性與低功耗,小成本的無(wú)線測(cè)溫系統(tǒng)的設(shè)計(jì)。因此設(shè)計(jì)一種低功耗,小成本,易使用的無(wú)線測(cè)溫系統(tǒng)就顯得很有意義。 當(dāng)下一些無(wú)線溫度測(cè)量系統(tǒng)已得到開(kāi)發(fā)和設(shè)計(jì),但因其高昂的成本導(dǎo)致其還沒(méi)有普及到日常生活當(dāng)中。簡(jiǎn)單的溫度計(jì)已經(jīng)不能滿(mǎn)足一些特定情況下的溫度測(cè)量,尤其在某一些環(huán)境惡劣的工業(yè)場(chǎng)所和戶(hù)外場(chǎng)所,在這種情況下再使用傳統(tǒng)溫度 計(jì)測(cè)量溫度是不切實(shí)際的。 大連海事大學(xué) 畢 業(yè) 論 文 二○一 四 年六月 ┊┊┊┊┊┊┊裝┊┊┊┊┊┊┊訂┊┊┊┊┊┊┊線┊┊┊┊┊┊┊ 基于 51 單片機(jī)的無(wú)線測(cè)溫系統(tǒng)的設(shè)計(jì) 專(zhuān)業(yè)班級(jí): 通信工程 1 班 姓 名: 杜嘉麟 指導(dǎo)教師: 李作洲 信息科學(xué)技術(shù)學(xué)院 I 摘 要 溫度是日常生活中必不可少的重要參數(shù)。在日常生活中有許多時(shí)候我們都離不開(kāi)溫度的測(cè)量。所以無(wú)線測(cè)溫系統(tǒng)的開(kāi)發(fā)與設(shè)計(jì)便顯得異常重要。在實(shí)際測(cè)溫過(guò)程中既要保證系統(tǒng)的準(zhǔn)確性、穩(wěn)定性、實(shí)時(shí)性又需要保證產(chǎn)品的低功耗,操作簡(jiǎn)單。本次設(shè)計(jì)利用 STC89C52 型號(hào)的單片機(jī)控制 DS18B20 型號(hào)的溫度傳感器來(lái)實(shí)現(xiàn)無(wú)線測(cè)溫系統(tǒng)的設(shè)計(jì)。本次設(shè)計(jì)能實(shí)現(xiàn)對(duì)溫度的遠(yuǎn)程檢 測(cè)。本次設(shè)計(jì)的無(wú)線傳輸模塊采用的型號(hào)是 NRF24L01。 關(guān)鍵詞: 51 單片機(jī);無(wú)線測(cè)溫; 無(wú)線傳輸模塊 基于 51 單片機(jī)的無(wú)線測(cè)溫系統(tǒng)的設(shè)計(jì) II Abstract Temperature is the essential parameter in daily life, which is often to need measure. The traditional thermometer can not meet the temperature measurement of the specific circumstances, especially in some of the harsh industrial space and outdoor space, where the measurement is unrealistic. So the development and design of wireless temperature measuring system is very important. Many wireless temperature measurement systems have been developed so far, however, high cost stops the systems wildly applied in our daily life. In the actual measurement process it is necessary to ensure the stability of the system, the realtime and the low power consumption. So the design of a low power and low cost wireless temperature measuring system is of great significance. Some temperature sensors, model DS18B20, are controlled by SCM, type STC89C52. These devices constitute the measurement and control system. Using simple wireless munication protocol, a high reliability, low power consumption and low cost system is designed, which can realize remote detection of temperature. Low cost, low power consumption, realtime and remote control are focuses of this design. The wireless transmission module used in this system is NRF24L01. This system has advantages of simple structure, reliable performance, low power consumption and low cost, providing a novel scheme, namely using wireless sensors. Keywords: MCS51r, wireless temperature measurement, Wireless transmission module 基于 51 單片機(jī)的無(wú)線測(cè)溫系統(tǒng)的設(shè)計(jì) III 目 錄 第 1 章 緒 論 .............................................................................................................. 1 論文研究主要內(nèi)容 ............................................................................................ 1 國(guó)內(nèi)外現(xiàn)狀 ........................................................................................................ 3 第 2 章 關(guān)鍵技術(shù)介紹 .................................................................................................. 5 單片機(jī)最小系統(tǒng)介紹 ........................................................................................ 5 無(wú)線收發(fā)模塊 .................................................................................................... 5 數(shù) 碼管顯示電路 ................................................................................................ 5 電源模塊電路 .................................................................................................... 6 第 3 章 系統(tǒng)分析 .......................................................................................................... 7 構(gòu)架概述 ............................................................................................................ 7 功能構(gòu)架 .................................................................................................. 7 模塊需求描述 .......................................................................................... 7 系統(tǒng)開(kāi)發(fā)環(huán)境 .................................................................................................... 8 系統(tǒng)任務(wù)的可行性分析 .................................................................................... 8 技術(shù)可行性 .............................................................................................. 8 系統(tǒng)安全性分析 ...................................................................................... 9 第 4 章 系統(tǒng)設(shè)計(jì) ........................................................................................................ 10 構(gòu)架概述 .......................................................................................................... 10 系統(tǒng)的功能結(jié)構(gòu)設(shè)計(jì) ...................................................................................... 10 第 5 章 系統(tǒng)實(shí)現(xiàn) ........................................................................................................ 12 軟件實(shí)現(xiàn) .......................................................................................................... 12 主函數(shù)模塊功能介紹 ............................................................................ 12 發(fā)送程序功能介紹 ................................................................................ 12 接收程序功能介紹 ................................................................................ 12 函數(shù)實(shí)現(xiàn) ................................................................................................ 13 硬件實(shí)現(xiàn) .......................................................................................................... 16 單片機(jī)接口及功能介紹 ........................................................................ 16 晶振電路設(shè)計(jì) ........................................................................................ 16 報(bào)警電路設(shè)計(jì) ........................................................................................ 17 溫度檢測(cè)電路設(shè)計(jì) ................................................................................ 18 數(shù)碼管驅(qū)動(dòng)電路設(shè)計(jì) ............................................................................ 18 NRF24L01 .............................................................................................. 21