【正文】
安徽大學(xué)畢業(yè)設(shè)計(jì)(論文) I 基于 DS18B20 的溫度報(bào)警器摘 要隨著現(xiàn)在信息技術(shù)的飛速發(fā)展,在生產(chǎn)中溫度的準(zhǔn)確測(cè)量與控制是一個(gè)比較困難的事情,從最初的酒精、水銀溫度計(jì)到現(xiàn)在的數(shù)字化、集成化的溫度檢測(cè)系統(tǒng)??梢妭鞲衅鞯陌l(fā)展是飛快的。它飛快的發(fā)展必將帶來(lái)新一輪的工業(yè)化得革命和社會(huì)發(fā)展的飛躍。本文從硬軟件兩個(gè)方面介紹了基于數(shù)字溫度傳感器 DS18B20 及 MCS51 系列的單片機(jī) AT89S52 的溫度報(bào)警系統(tǒng)。該系統(tǒng)通過(guò) LED 數(shù)碼管顯示當(dāng)前溫度以及已設(shè)定的上下限報(bào)警溫度,當(dāng)前溫度超出上下限范圍時(shí),蜂鳴器發(fā)出響聲來(lái)報(bào)警。系統(tǒng)硬件由溫度顯示電路、鍵盤輸入電路、報(bào)警電路,復(fù)位電路等部分組成。軟件設(shè)計(jì)從各個(gè)部分的流程框圖出發(fā),先介紹整體的思路,再編寫出滿足任務(wù)需求的程序。使用 DS18B20 作為本設(shè)計(jì)的溫度傳感器的最大優(yōu)點(diǎn)在于它是單線總線,占用單片機(jī)引腳少,這也正是本設(shè)計(jì)的創(chuàng)新之處。同時(shí) DS18B20 分辨力可編程,功耗低也大大提高了該系統(tǒng)的實(shí)用性,具有推廣意義。關(guān)鍵詞:溫度報(bào)警器;溫度傳感器 DS18B20;單線總線;溫度上下限;AT89S52 單片機(jī);LED 數(shù)碼管基于 DS18B20 的溫度報(bào)警器 II Temperature Alarm System Based On DS18B20AbstractAs the fast development of information technology,precisely measurement and control of temperature had became a hard problem in production..From the initial alcohol or hydrargyum thermometer to nowdays digital integrated temperature measuring system we how fast the sensor technology dramtic development bring about a new evolution both in industy of social develop definitely.This thsis is introducing a temperature alarm system base on the digital thermometer DS18B20 and MCS51 serial microcontroller LED digital display can show both the present temperature and user setted upper and lower temoerature limitation,when the present temperature cross the limitation,the buzzer make out sound to hardware is consisted by temperature display circuitry,keyboards input circuitry,alarm circuitry,reset circuitry and some other it es to software design part,I introduce the flow chart diagram and the overall design first,then give out the software code which meets our demand.The biggest advantage of DS18B20 is that it’s a 1Wire device,which means it will use less pins,and this is also the innovation part of this is also programmabale and low energy consumption makes this system more practice use and worth spreading.Keywords: temperature alarm system。temperature sensor。DS18B20。1Wire。upper and lower temperature limitation。microcontroller AT89S5。 LED display安徽大學(xué)畢業(yè)設(shè)計(jì)(論文) III 目錄插圖清單 ..................................................................................................................................VI表格清單 .................................................................................................................................VII引 言 .........................................................................................................................................1第 1 章 緒論 .............................................................................................................................2 系統(tǒng)背景 ..............................................................................................................................................2 溫度測(cè)量的意義 ..................................................................................................................................2 集成溫度傳感器的介紹 ......................................................................................................................2 溫度傳感器的發(fā)展歷史 ......................................................................................................................3 分立式溫度傳感器 ......................................................................................................................3 模擬集成溫度傳感器 ..................................................................................................................3 模擬集成溫度控制器 ..................................................................................................................3 智能溫度傳感器 ..........................................................................................................................3 智能溫度控制器 ..........................................................................................................................4 內(nèi)含溫度傳感器的專用集成電路 ..............................................................................................4圖 11 MAX1298/1299 的內(nèi)部結(jié)構(gòu)及外部電路圖 ...............................................................4 智能溫度傳感器發(fā)展的新趨勢(shì) ..........................................................................................................4 提高測(cè)溫精度和分辨率 ..............................................................................................................5 不斷增加測(cè)試功能 ......................................................................................................................5 總線技術(shù)的標(biāo)準(zhǔn)化與規(guī)范化 ......................................................................................................5 可靠性及安全性設(shè)計(jì) ..................................................................................................................5 開發(fā)虛擬溫度傳感器和網(wǎng)絡(luò)溫度傳感器 ..................................................................................6 研制單片測(cè)溫系統(tǒng) ......................................................................................................................7 本設(shè)計(jì)的基本內(nèi)容及要實(shí)現(xiàn)的功能 ..................................................................................................7第 2 章 設(shè)計(jì)概述 .....................................................................................................................8 傳感器簡(jiǎn)介 ..........................................................................................................................................8 DS18B20 的工作原理 ..................................................................................................................8圖 21 DS18B20 引腳圖 ............................................................................................................9圖 22 DS18B20 的內(nèi)部結(jié)構(gòu)框圖 ..........................................................................................10圖 23 多片 DS18B20 與單片機(jī)的接口電路 ........................................................................10圖 24 DS18B20 的測(cè)溫原理圖 ..............................................................................................11表 21 CONFIG 寄存器 ..........................................................................