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