【正文】
基于 nRF24L01 模塊的無線通信系統(tǒng)設(shè)計(jì) 2 在農(nóng)業(yè)生產(chǎn)上,不論是溫室大棚的溫度監(jiān)測(cè),還是糧倉的管理,傳統(tǒng)上都是采取分區(qū)取樣的人工方法,工作量大,可靠性差。由于廠房大、需要傳輸數(shù)據(jù)多,使 用傳統(tǒng)的有線數(shù)據(jù)傳輸方式就需要鋪設(shè)很多很長的通訊線,浪費(fèi)資源,占用空間,可操作性差,出現(xiàn)錯(cuò)誤換線困難。 關(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)仿真 .................................................................................................... 30 電源電路的仿真 ................................................................................ 30 +5V電源電路仿真 .................................................................... 30 發(fā)送端溫度采集與顯 示仿真 ............................................................... 30 接收端 LCD1602顯示溫度仿真 ................................................... 31 5 硬件電路板設(shè)計(jì) ...............................