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