資源描述:
《本科畢業(yè)論文---數(shù)字溫度計(jì)設(shè)計(jì) 數(shù)字溫度計(jì)設(shè)計(jì).doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫(kù)。
1、基于DS18B20的數(shù)字溫度計(jì)設(shè)計(jì)摘要隨著現(xiàn)代信息技術(shù)的飛速發(fā)展和傳統(tǒng)工業(yè)改造的逐步實(shí)現(xiàn),能夠獨(dú)立工作的溫度檢測(cè)與顯示系統(tǒng)應(yīng)用于諸多領(lǐng)域。傳統(tǒng)的溫度檢測(cè)以熱敏電阻為溫度敏感元件。熱敏電阻的成本低,需要外加信號(hào)處理電路,而且可靠性相對(duì)較差,測(cè)溫準(zhǔn)確度低,檢測(cè)系統(tǒng)也有一定的誤差。與傳統(tǒng)的溫度計(jì)相比,這次設(shè)計(jì)的是基于DS18B20的數(shù)字溫度計(jì),它具有讀數(shù)方便,測(cè)溫范圍廣,測(cè)溫精確,數(shù)字顯示,適用范圍寬等特點(diǎn)。在本設(shè)計(jì)中選用AT89C51型單片機(jī)作為主控制器件,采用DS18B20數(shù)字溫度傳感器作為測(cè)溫元件,通過(guò)4位共陽(yáng)極LED數(shù)碼顯示管并行傳送數(shù)據(jù),實(shí)現(xiàn)溫度
2、顯示。本設(shè)計(jì)的內(nèi)容主要分為兩部分,一是對(duì)系統(tǒng)硬件部分的設(shè)計(jì),包括溫度采集電路和顯示電路;二是對(duì)系統(tǒng)軟件部分的設(shè)計(jì),應(yīng)用C語(yǔ)言實(shí)現(xiàn)溫度的采集與顯示。通過(guò)DS18B20直接讀取被測(cè)溫度值,送入單片機(jī)進(jìn)行數(shù)據(jù)處理,之后進(jìn)行輸出顯示,最終完成了數(shù)字溫度計(jì)的總體設(shè)計(jì)。其系統(tǒng)構(gòu)成簡(jiǎn)單,信號(hào)采集效果好,數(shù)據(jù)處理速度快,便于實(shí)際檢測(cè)使用。關(guān)鍵詞:?jiǎn)纹瑱C(jī)AT89C51;溫度傳感器DS18B20;LED數(shù)碼管;數(shù)字溫度計(jì)DesignbasedDigitalThermometerDS18B20AbstractAlongwiththepresentinformationte
3、chnology'sswiftdevelopmentandtraditionalindustrytransformation'sgradualrealization.Abletoworkindependentlyofthetemperaturedetectionanddisplaysystemusedinmanyotherfields.Traditionaltemperatureexaminationtakethermistorastemperaturesensitiveunit.Thermistor'scostislow,needsthesur-s
4、ignalprocessingelectriccircuit,moreoverthereliabilityisrelativelybad,thetemperaturemeasurementaccuracyislow,theexaminationsystemalsohascertainerror.Compareswiththetraditionalthermometer,whatthisdesignisbasedontheDS18B20digitalthermometer,ithasthereadingtobeconvenient,thetempera
5、turemeasurementscopeisbroad,thetemperaturemeasurementisprecise,thedigitdemonstratedthatapplicablescopewideandsooncharacteristics.UsedinthedesignAT89C51MCUasthemaincontroldevice,digitaltemperaturesensorDS18B20asthetemperaturecomponentsoftheanodethroughthefourLEDdigitaldisplaytub
6、eparalleltransmissionofdata,toachievetemperaturedisplay.Thisdesign'scontentmainlydividesintotwoparts;first,tosystemhardwarepartdesign,includingtemperaturegatheringelectriccircuitanddisplaycircuit;Second,tothesystemsoftwarepart'sdesign,realizestemperaturegatheringandthedemonstra
7、tionusingtheClanguage.DS18B20measuredbydirectreadingtemperaturevalues,andtransferDataintoMCU,andoutputtoshow,thisisthedesignoftheDigitalThermometer.Itssystemconstitutionissimple,theeffectofsignalgatheringisgood,thespeedofdataprocessingisquick,atalitisadvantageousfortheactualexa
8、minationuse.Keywords:MCUAT89S51;TemperatureSensorDS18B