如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
基于DS18B20的数字温度计设计摘要随着现代信息技术的飞速发展和传统工业改造的逐步实现,能够独立工作的温度检测与显示系统应用于诸多领域。传统的温度检测以热敏电阻为温度敏感元件。热敏电阻的成本低,需要外加信号处理电路,而且可靠性相对较差,测温准确度低,检测系统也有一定的误差。与传统的温度计相比,这次设计的是基于DS18B20的数字温度计,它具有读数方便,测温范围广,测温精确,数字显示,适用范围宽等特点。在本设计中选用AT89C51型单片机作为主控制器件,采用DS18B20数字温度传感器作为测温元件,通过4位共阳极LED数码显示管并行传送数据,实现温度显示。本设计的内容主要分为两部分,一是对系统硬件部分的设计,包括温度采集电路和显示电路;二是对系统软件部分的设计,应用C语言实现温度的采集与显示。通过DS18B20直接读取被测温度值,送入单片机进行数据处理,之后进行输出显示,最终完成了数字温度计的总体设计。其系统构成简单,信号采集效果好,数据处理速度快,便于实际检测使用。关键词:单片机AT89C51;温度传感器DS18B20;LED数码管;数字温度计DesignbasedDigitalThermometerDS18B20AbstractAlongwiththepresentinformationtechnology'sswiftdevelopmentandtraditionalindustrytransformation'sgradualrealization.Abletoworkindependentlyofthetemperaturedetectionanddisplaysystemusedinmanyotherfields.Traditionaltemperatureexaminationtakethermistorastemperaturesensitiveunit.Thermistor'scostislow,needsthesur-signalprocessingelectriccircuit,moreoverthereliabilityisrelativelybad,thetemperaturemeasurementaccuracyislow,theexaminationsystemalsohascertainerror.Compareswiththetraditionalthermometer,whatthisdesignisbasedontheDS18B20digitalthermometer,ithasthereadingtobeconvenient,thetemperaturemeasurementscopeisbroad,thetemperaturemeasurementisprecise,thedigitdemonstratedthatapplicablescopewideandsooncharacteristics.UsedinthedesignAT89C51MCUasthemaincontroldevice,digitaltemperaturesensorDS18B20asthetemperaturecomponentsoftheanodethroughthefourLEDdigitaldisplaytubeparalleltransmissionofdata,toachievetemperaturedisplay.Thisdesign'scontentmainlydividesintotwoparts;first,tosystemhardwarepartdesign,includingtemperaturegatheringelectriccircuitanddisplaycircuit;Second,tothesystemsoftwarepart'sdesign,realizestemperaturegatheringandthedemonstrationusingtheClanguage.DS18B20measuredbydirectreadingtemperaturevalues,andtransferDataintoMCU,andoutputtoshow,thisisthedesignoftheDigitalThermometer.Itssystemconstitutionissimple,theeffectofsignalgatheringisgood,thespeedofdataprocessingisquick,atalitisadvantageousfortheactualexaminationuse.Keywords:MCUAT89S51;