【正文】
20xx 屆 本 科生畢業(yè)論文 存檔編號 畢業(yè)論文 (設(shè)計(jì) ) 論文(設(shè)計(jì))題目 基于單片機(jī)的無線溫度測量系統(tǒng) English Topic The wireless temperature measurement system based on single chip microputer 系 別 物理與電子工程學(xué)院 專 業(yè) 自 動 化 班 級 學(xué) 生 指導(dǎo)教師 20xx 年 5 月 15 日 基于單片機(jī)的無線溫度測量系統(tǒng) 摘要 : 溫度檢測在日常生活、工作和工程實(shí)踐中具有重要的應(yīng)用。隨著生活水平的提高和科學(xué)技術(shù)的進(jìn)步,無論是工業(yè)還是農(nóng)業(yè)或者是日常生活中對溫度檢測的要求越來越高,要求能進(jìn)行一定距離的傳輸?;谶@點(diǎn) 本設(shè)計(jì)主要基于 MCS51單片機(jī)并由溫度傳感器、無線傳輸器、 LED 數(shù)碼管和上位機(jī)組成的同步顯示的溫度采集系統(tǒng) 解決了這個(gè)日常生活工作中的問題。工作場所的溫度采集用到了溫 度采集芯片 DS18B20 來達(dá)到一定的準(zhǔn)確度和精確度,最后采用 nRF24L01 模塊對采集到的溫度數(shù)據(jù)進(jìn)行無線傳輸并通過由單片機(jī)控制的數(shù)碼管顯示當(dāng)前溫度,從而能打破傳統(tǒng)溫度操作受到距離限制的缺陷的同時(shí)便于溫度的讀取。在經(jīng)過軟硬件測試后,我們基本實(shí)現(xiàn)了用溫度傳感器采集溫度,用 nRF24L01 進(jìn)行一定距離傳輸后在接受端的上位機(jī)軟件上顯示出來的模型。傳輸距離 50m,溫度范圍達(dá)到 0 至125 攝氏度,精度 1 攝氏度。 關(guān)鍵字 : MCS51; nRF24L01; LED 顯示;溫度傳感器;無線傳輸 The Wireless Temperature Measurement System Based on Single Chip Microputer Abstract:Temperature detection in the daily life, work, and has important application in engineering practice. With the improvement of living standards and the progress of science and technology, whether agricultural or requirement for temperature detection in daily life can request for a distance of transmission. Based on that this design is mainly based on MCS 51 single chip microputer and the temperature sensor, wireless transmitter, LED digital tube and upper unit into synchronous display of temperature acquisition system solved the problems in daily life. Workplace sampling to temperature chip DS18B20 temperature to achieve the precision and accuracy, the last of the collected temperature data by module nRF24L01 wireless transmission and through digital tube display the current temperature controlled by single chip microputer, which can break the traditional operating temperature, is limited by distance of defects and easy to read temperature. After the hardware and software testing, we basically achieved with a temperature sensor to collect temperature, after a certain distance transmission with nRF24L01 in accept the PC software displayed on the model. Transmission distance 50 m, the temperature range of 0 to 125 degrees Celsius, the precision of 1 c. Keywords: MCS51。 NRF24L01。 LED display。 Temperature sensor。 Wireless transmission 目 錄 引 言 ............................................................................................................................... 1 1 系統(tǒng)結(jié)構(gòu)及工作原理 ................................................................................................... 2 系統(tǒng)結(jié)構(gòu) ............................................................................................................ 2 系統(tǒng)控制核心 —— AT89C52 ............................................................................ 2 單片機(jī)的引腳介紹 ................................................................................. 2 單片機(jī)內(nèi)部資源介紹 ............................................................................. 4 系統(tǒng)工作原理簡介 ............................................................................................ 5 數(shù)字溫度傳感器 DS18B20...................................................................... 7 無線傳輸 .................................................................................................. 7 LED 顯示 .................................................................................................. 9 2 下位機(jī)部分介紹 ......................................................................................................... 11 DS18B20 溫度采集模塊 .................................................................................. 11 DS18B20 簡介 ........................................................................................ 11 DS18B20 的測溫方法 ............................................................................ 12 LED 數(shù)碼顯示模塊 .......................................................................................... 14 nRF24L01 無 線發(fā)送模塊 ................................................................................. 17 3 上位機(jī)部分介紹 ......................................................................................................... 20 無線接收模塊 .................................................................................................. 20 上位機(jī)上的數(shù)據(jù)顯示 ...................................................................................... 21 4 模塊間的通信 ............................................................................................................. 23 上位機(jī)與單片機(jī)的通信 .................................................................................. 23 串口通信簡介 ....................................................................................... 23 PC 機(jī)側(cè) VB 程序 ................................................................................... 25 nRF24L01 與單片機(jī)的通信 ............................................................................. 25 DS18B20 與單片機(jī)的通信 .............................................................................. 26 5 系統(tǒng)調(diào)試 ..................................................................................................................... 28 DS18B20 溫度采集并顯示 .............................................................................. 28 nRF24L01 發(fā)送與接收模塊調(diào)試 ..................................................................... 29 6 總結(jié) ............................................................................................................................. 31 【參考文獻(xiàn)】 ................................................................................................................. 32 附 錄 ...............................................................