【正文】
本 科 畢 業(yè) 論 文 基于 NRF905 的兩路溫度檢測 與無線傳輸系統(tǒng)設(shè)計 The Design of Two Temperature Detection and Wireless Transmission System Based on NRF905 目 錄 摘 要 ................................................................................................................................Ⅰ Abstract ............................................................................................................................Ⅱ 引 言 ..................................................................................................................................1 第一章 系統(tǒng)設(shè)計理論基礎(chǔ) ........................................................................................3 硬件基礎(chǔ) ............................................................................................................... 3 STC89C52 單片機 .............................................................................................. 3 DS18B20 溫度傳感器 ......................................................................................... 4 NRF905 無線芯片 ............................................................................................... 6 LCD1602 液晶顯示器 ........................................................................................ 7 軟件基礎(chǔ) ............................................................................................................... 8 Keil C51 仿真軟件 .............................................................................................. 8 STCISP 編譯下載 .............................................................................................. 9 第二章 系統(tǒng)硬件 設(shè)計 .................... ..............................................................................13 系統(tǒng)總體 設(shè)計 ..................................................................................................... 13 系統(tǒng)各部分電路 設(shè)計 ......................................................................................... 14 主控電路 設(shè)計 .................................................................................................. 14 電源電路設(shè)計 .................................................................................................. 14 ISP 接口電路設(shè)計 ............................................................................................. 15 LCD 驅(qū)動 電路 設(shè)計 .......................................................................................... 15 DS18B20 電路 設(shè)計 ........................................................................................... 15 NRF905 接口電路設(shè)計 ..................................................................................... 16 第三章 系統(tǒng)軟件設(shè)計 ................................................................................................17 系統(tǒng)主模塊軟件設(shè)計流程 ................................................................................. 17 各主要模塊軟件設(shè)計流程 ..................................................................................18 第四章 系統(tǒng)測試結(jié)果 ............................................................................................... 25 結(jié) 論 ................................................................................................................................ 28 致 謝 ................................................................................................................................ 29 參考文獻 ......................................................................................................................... 30 附 錄 ................................................................................................................................ 31 Ⅰ 基于 NRF905 的兩路溫度檢測與無線傳輸系統(tǒng)設(shè)計 摘要 : 溫度作為工業(yè)、農(nóng)業(yè)、國防和科研等部門最普遍的測量項目,它在工農(nóng)業(yè)生產(chǎn)、現(xiàn)代科學研究以及高新技術(shù)開發(fā)過程中也是一個極其普遍而又非常重要的參數(shù)。 本設(shè)計從 NRF905 無線傳輸模塊的實 際應用出發(fā),對環(huán)境溫度數(shù)據(jù)的采集、傳輸以及處理過程進行了研究,提出了一種基于 STC89C52 的溫度檢測與無線傳輸系統(tǒng)的總體設(shè)計方案。本文分別介紹了各個模塊的特性和工作原理,并給出了系統(tǒng)的硬件原理圖和軟件設(shè)計方案。系統(tǒng)采用 STC89C52 單片機作為主芯片,以 NRF905 作為無線收發(fā)模塊,利用 SPI 口實現(xiàn)雙向通信, SPI 支持高速數(shù)據(jù)傳輸,從而滿足了射頻帶寬的要求。 通過 兩個 DS18B20 進行現(xiàn)場的溫度采集,然后 各自 將溫度數(shù)據(jù)送入從機 單片機進行數(shù)據(jù)處理, 由 NRF905 無線傳輸模塊發(fā)送至主機,在主機端 利用液晶顯示器 LCD1602 作為顯示器進行顯示。當溫度超過設(shè)定上限時,以蜂鳴器和直流電機來完成報警與降溫過程的模擬。 關(guān)鍵詞 : DS18B20 溫度傳感器; NRF905 無線芯片 Ⅱ The Design of Two Temperature Detection and Wireless Transmission System Based on NRF905 Abstract:Temperature as industry, agriculture, national defense and scientific research departments such as the most mon measuring project. In modern industrial and agricultural production, scientific research in the process of the high and new technology development , it is also a very mon and very important design starting from the practical application of NRF905 wireless transmission module, the ambient temperature data collection, transmission and processing are studied, this paper proposes a temperature detection based on STC89C52 and the overall design scheme of wireless transmission system. This paper introduces the features and working principle of each module, and gives the principle diagram of the hardware and software design scheme of system. System uses the STC89C52 singlechip microputer as the main chip to NRF905 as wireless data transceiver module, using the SPI mouth realize twoway munication, SPI support highspeed data transmission, so as to satisfy the requirement of the radio frequency bandwidth. Through two DS18B20 temperature acquisition of onsite, and their respective data processing temperature data into the single chip microputer from machine, by the NRF905 wireless transmission module is sent to the host, the host end use as a monitor, LCD display LCD1602 for display. When the temperature more than set time limit, to plete the alarm buzzer and dc motor and the simulation of the cooling process. Key words: DS18B20 Temperature Sensor。NRF905 Wireless chip 1 引 言 在工業(yè)控制現(xiàn)場,常常需要采集大量的現(xiàn)場數(shù)據(jù),如電壓、電流、溫度、濕度、氣壓等,溫度是一個非常重要的物理量,因為它直接影響燃燒、化學反應、發(fā)酵、烘烤、煅燒、蒸餾、濃度、擠壓成形、結(jié)晶以及空氣流動等物理和化學過程。溫度控制失誤就可能引起生產(chǎn)安全、產(chǎn)品質(zhì)量、產(chǎn)品產(chǎn)量等一系列問題,因此對溫