【正文】
I 梧 州 學(xué) 院 畢 業(yè) 論 文 論文題目 基于 ZigBee 技術(shù)的無線傳感器 網(wǎng)絡(luò)在糧庫監(jiān)控系統(tǒng)中的應(yīng)用 系 別 電子信息工程系 專 業(yè) 電子信息工程 班 級 10 電子信息工程 1 班 學(xué) 號 1001902117 學(xué)生姓名 指導(dǎo)教師(簽名) 完成時間 2021 年 5 月 I 摘要 糧食是國家的重要戰(zhàn)略物資,糧食安全 更有利于民生, 它與 可持續(xù)發(fā)展,經(jīng)濟(jì)和社會的和諧穩(wěn)定是密切相關(guān)的 。但是我國傳統(tǒng)的糧情檢測系統(tǒng)容易受到導(dǎo)線電阻和分布電容的影響,測量誤差比較大,易受雷擊。基于以上缺陷,設(shè)計出一款基于無線傳感器網(wǎng)絡(luò)技術(shù)的糧情檢測系統(tǒng)具有重大的意義。 本系統(tǒng)采用 CC2530 作為核心芯片, 結(jié)合 ZigBee 協(xié)議棧 ,采用數(shù)字型溫濕度傳感器 DHT11 作為系統(tǒng)的傳感器,使用 LCD12864 作為顯示,上位機(jī)跟單片機(jī)實(shí)時通信,并實(shí)現(xiàn)各個點(diǎn)的溫度和濕度的顯示。該系統(tǒng)完成了傳感器節(jié)點(diǎn)的溫濕度采集,通過無線網(wǎng)絡(luò)傳輸?shù)絽f(xié)調(diào)器,在 LCD12864 上顯示,并發(fā)送到上位機(jī)監(jiān)控。整個設(shè)計除了能在協(xié)調(diào)器上顯示當(dāng)前各點(diǎn)的溫濕度,還能在上位機(jī)上查看監(jiān)測記錄,并具有傳感器節(jié)點(diǎn)故障檢測功能。 本文系統(tǒng)的介紹了傳感器網(wǎng)絡(luò)的概念和 ZigBee 這一通信協(xié)議的特點(diǎn)和結(jié)構(gòu),其中重點(diǎn)的闡述了由 CC2530 芯片和數(shù)字溫濕度傳感器 DHT11 所構(gòu)成的糧庫溫濕度檢測系統(tǒng)及系統(tǒng)的設(shè)計方案、其次介紹硬件電路的設(shè)計過程 ,以及系統(tǒng)軟件的開發(fā)過程。最后進(jìn)一步闡述了無線傳感器網(wǎng)絡(luò)今后的發(fā)展方向。 關(guān)鍵字:無線傳感器網(wǎng)絡(luò); ZigBee 協(xié)議棧 ;糧庫;多點(diǎn)檢測; II Application in grain monitoring system with the wireless sensor work based on ZigBee Abstract Grain is the important strategic materials in the country. And the safety of grain benefits more to the national economy and the people’s livelihood. Food safety is connected with harmony and stability of the society and the sustainable development of the economy. However, traditional detection system of grain situation is influenced by conductor resistance and distributed capacitance, measurement error is larger and it is easy to be stroked by lightning. Due to these defects mentioned above, it is significant to design detection this system of grain situation on the basis of the technology of ZigBee. This system can play an important role in ensuring the safety and storage of grain and be likely to benefit for economy and society. This system uses CC2530 as key chip and bines with ZigBee protocol stack, which adopts DH11 digital temperature and humidity sensor as the sensor of the system, LCD12864 as display interface. The realtime munication between principal puter and single chip achieves the display of temperature and humidity in many spots. The whole design acplishes collection of temperature and humidity in the sensor node and delivers to the coordinator through wireless transmission and monitors in the LCD12864. After that, it delivers to the principle puter to display. In addition, the whole design can not only reveal the temperature and humidity of current points in the coordinator but also view records of the temperature and humidity of current point in the principle puters with the function of detecting faults of sensor nodes. This chapter systematically introduces the concept of sensor work and the feature and structure of this munication protocolZigBee designing scheme, and emphasizes on the detecting system and the designing scheme posed of CC2530 SOC chip and DHT11 digital temperature and humidity sensor. After that, it introduces the designing process of hardware circuit and the development process of systems software. Finally, it further states the development direction of wireless sensor work in the future. Keywords: wireless sensor work。 ZigBee protocol stack。 grain depot。 multipoint detection III 目錄 第一章 前言 .............................................................................................................................. 1 無線傳感器網(wǎng)絡(luò)研究的背景 ....................................................................................... 1 研究的意義 .................................................................................................................. 1 第二章系統(tǒng)設(shè)計方案的論證 .................................................................................................... 2 核心控制模塊 方案的論證與選擇 ............................................................................. 2 顯示模塊方案的論證與選擇 ..................................................................................... 2 傳感器方案的論證與選擇 ......................................................................................... 3 電源模塊的選擇 ......................................................................................................... 3 上位機(jī)的開發(fā)工具 的 選擇 ......................................................................................... 3 第三章系統(tǒng)硬件設(shè)計 ................................................................................................................ 5 傳感器節(jié)點(diǎn)的設(shè)計 ...................................................................................................... 5 協(xié)調(diào)器設(shè)計 .................................................................................................................. 8 第四章系統(tǒng)軟件設(shè)計 .............................................................................................................. 11 ZigBee 協(xié)議棧介紹及開發(fā)流程 .............................................................................. 11 ZStack 協(xié)議棧結(jié)構(gòu)及工 作流程 .......................................................................... 11 ZStack 開發(fā)流程 .................................................................................................... 13 第五章系統(tǒng)的測試和總結(jié) ...................................................................................................... 15 測試內(nèi)容 ................................................................................................................... 15 測試模塊 ................................................................................................................... 15 測試總結(jié) .................................................................................................................... 17 第六章結(jié)束語 .......................................................................................................................... 18 總結(jié) ......................................................................................................