【正文】
成都理工大學(xué)工程技術(shù)學(xué)院畢業(yè)論文 基于 nRF24L01 模塊的無線通信系統(tǒng)設(shè)計(jì) 作者姓名: 鐘其良 專業(yè)名稱: 電子信息科學(xué)與技術(shù)專業(yè) 指導(dǎo)教師: 何 勇 講師 基于 nRF24L01 模塊的無線通信系統(tǒng)設(shè)計(jì) I 摘要 溫度是一個(gè)非常重要的參數(shù)。在工業(yè)、醫(yī)療、軍事和生活等許多地方,都需要用到測(cè)溫裝置來檢測(cè)溫度。傳統(tǒng)直接布線測(cè)量不滿足要求,特別是 在某些環(huán)境惡劣的工業(yè)環(huán)境 和戶外環(huán)境,通過直接布線測(cè)量 不現(xiàn)實(shí) 。 因此采用 無線傳輸 溫度檢測(cè)尤為必要。 目前有些設(shè)計(jì)能夠?qū)崿F(xiàn)無線溫度采集,但 價(jià)格 過高是其最大的缺點(diǎn)。在實(shí)際溫度控制過程中既要求系統(tǒng)具有穩(wěn)定性、實(shí)時(shí)性又需要 降低功耗 。 因此設(shè)計(jì)一種低功耗的無線溫度檢測(cè)系統(tǒng)很有意義。本文提出一種采用單片機(jī) AT89S52 控制 DS18B20 實(shí)現(xiàn)的無線溫度測(cè)量系統(tǒng)。 通過簡單的無線通信協(xié)議,實(shí)現(xiàn)可靠性與功耗平衡, 該系統(tǒng)能實(shí)現(xiàn)對(duì)溫度的檢測(cè),能夠同時(shí)進(jìn)行溫度檢測(cè),是可以實(shí)現(xiàn)遠(yuǎn)程控制的無線溫度檢測(cè)系統(tǒng)。低功耗、實(shí)時(shí)性的無線溫度檢測(cè)是該設(shè)計(jì)的最大特點(diǎn)。 無線傳輸采用nRF24L01 模塊傳輸。 該系統(tǒng)結(jié)構(gòu)簡單,可靠,功耗較低,成本低,是一種無線傳感器的解決方案。 關(guān)鍵字: 單片機(jī) AT89S52 無線傳輸 nRF24l01 DS18B20 基于 nRF24L01 模塊的無線通信系統(tǒng)設(shè)計(jì) II Abstract Temperature is a very important parameters. In the industrial, medical and military and life and many other place, it needs to use the temperature measurement device to detect temperature. The traditional direct measurement wiring does not meet the requirements, especially in some environmental bad industrial environment and outdoor environment, through the direct wiring measurement is not practical. So using wireless transmission temperature testing is necessary. At present some design can realize the wireless temperature gathering, but the price is too high, its biggest weakness. In the actual temperature control process requires both system has stability, realtime and the need to reduce power consumption. So the design of a kind of low power consumption wireless temperature detection system is very meaningful. This paper presents a USES the monolithic integrated circuit AT89S52 control DS18B20 of the realization of the wireless temperature measuring system. Through the simple wireless munication protocol, realize the reliability and power balance, the system can realize to the temperature detection, can simultaneously determine the temperature, can be realized the wireless remote control temperature detection system. Low power consumption, realtime wireless temperature detection is the biggest characteristic of the design. Wireless transmission using nRF24L01 module transmission. The system structure is simple, reliable, low power consumption, low cost, it is a kind of wireless sensor solutions. Key word: MCU AT89S52 wireless transmission nRF24l01 DS18B20 基于 nRF24L01 模塊的無線通信系統(tǒng)設(shè)計(jì) III 目錄 摘要 ..................................................................................................................I Abstract ........................................................................................................... II 目錄 ............................................................................................................... III 前言 ................................................................................................................. 1 1 系統(tǒng)方案分析與選擇論證 .............................................................................. 3 系統(tǒng)方案設(shè)計(jì) ...................................................................................... 3 主控芯片方案 ............................................................................ 3 無線通信模塊方案 ..................................................................... 3 溫度傳感方案 ............................................................................ 4 顯示模塊方案 ............................................................................ 4 單片機(jī)與 PC機(jī)通信模塊 ............................................................. 5 系統(tǒng)最終方案 ...................................................................................... 5 2 主要芯片介紹和系統(tǒng)模塊硬件設(shè)計(jì) ................................................................ 7 AT89S52................................................................................................ 7 單片機(jī)控制模塊 ....................................................................... 11 單片 nRF24L01無線模塊 ........................................................ 12 nRF24L01芯片概述 ................................................................... 12 引腳功能及描述 ....................................................................... 12 工作模式 ................................................................................. 13 工作原理 ................................................................................. 14 配置字 ..................................................................................... 15 nRF24L01模 塊原理圖 ................................................................ 17 溫度傳感器 DS18B20 ......................................................................... 17 DS18B20管腳配置和內(nèi)部結(jié)構(gòu) .................................................. 18 DS18B20的工作原理 .................................................................. 20 DS18B20的硬件設(shè)計(jì) .................................................................. 22 顯示模塊 ........................................................................................... 23 接收端顯示模塊 ....................................................................... 23 基于 nRF24L01 模塊的無線通信系統(tǒng)設(shè)計(jì) IV 發(fā)送端顯示模塊 ....................................................................... 24 報(bào)警電路 ........................................................................................... 25 接收端與 PC機(jī)通信 ........................................................................... 25 電源電路設(shè)計(jì) .................................................................................... 26 其他外圍電路 ............................................................................. 27 3 系統(tǒng)軟件設(shè)計(jì) ............................................................................................. 28 單片機(jī)軟件設(shè)計(jì) ................................................................................ 28 發(fā)送端軟件設(shè)計(jì) ....................................................................... 28 接收端軟件設(shè)計(jì) ....................................................................... 29 4 系統(tǒng)仿真 ......................................