毕业设计(论文)基于DS18B20温度传感器的数字温度计设计学生姓名:学号:0815012220所在系部:电气信息系专业班级:电气工程及其自动化指导教师:石刚讲师日期:二○一二年五月ThedesignoftemperaturesensorbasedonDS18B20digitalthermometerByZhuWeiMay2012学位论文原创性声明本人郑重声明:所呈交的学位论文是本人在导师的指导下独立进行研究所取得的研究成果。除了文中特别加以标注引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写的成果作品。本人完全意识到本声明的法律后果由本人承担。作者签名:年月日学位论文版权使用授权书本学位论文作者完全了解学院有关保管、使用学位论文的规定,同意学院保留并向有关学位论文管理部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权省级优秀学士学位论文评选机构将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。本学位论文属于1、保密□,在年解密后适用本授权书。2、不保密□。作者签名:年月日导师签名:年月日i摘要随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一,它所给人带来的方便也是不可否定的,其中数字温度计就是一个典型的例子,但人们对它的要求越来越高,要为现代人工作、科研、生活、提供更好的更方便的设施就需要从数单片机技术入手,一切向着数字化控制,智能化控制方向发展本文介绍了一种基于DS18B20的数字温度计设计方案。本设计所介绍的数字温度计与传统的温度计相比,具有读数方便,测温范围广,测温准确,其输出温度采用数字显示,主要用于对测温比较准确的场所,或科研实验室使用方案。利用AT89S52单片机控制DS18B20进行数据采集并由HS1602液晶显示模块显示结果,另外,采集结果可由RS-232-C接口送入计算机显示并存储。按键控制实现过界报警温度设定和实时监控,利用AT24C08芯片进行存储,实现温度测量存储与再现。关键字:温度采集存储再现过界报警串行通信iiAbstractWiththecontinuousimprovementofpeople'slivingstandard,single-chipcontrolisundoubtedlyoneofthepeopletopursuethegoal,itbringstheconvenienceisundeniable,whichisatypicalexampleofthedigitalthermometerisrequiredofit,butitisincreasinglythehigheristhemodern,scientificresearch,lifeandprovidebettermoreconvenientfacilitieswillneedtostartfromseveralsingle-chiptechnology,alltowardthedigitalcontrol,intelligentcontrolofthedirection.InthispageweintroducedaconceptionofthenumericalthermometerbasedonDS18B20.Digitalthermometerasdescribedinthisdesigncomparedwithtraditionalthermometerreadings,temperaturerangeandaccuratetemperaturemeasurement,theoutputtemperaturewithdigitaldisplayforaccuratetemperatureplace,orresearchlaboratories.TheconceptionmakesuseofAT89S52controlDS18B20tocarryonthedatacollectionanddisplaystheresultusetheHS1602liquidcrystaldisplaymodule.Moreover,theresultcanbesentintothecomputerbytheinterfaceofRS-232-Ctodisplayandstore.Thekeycontrolcarriesoutthetemperaturesettingofovertheboundarytoalarmandreal-timemonitoring,andmakesuseofthechipofAT24C08carriesonthestorage,andcarryingoutthetemperaturemeasurementstorageandreappearing.Keywords:TemperaturecollectionStoringtoreappearOvertheboundarytoalarmSerialcommunication.目录摘要.............................................................iAbstract........................................................................................................................................ii1引言.............................................................................................................................................11.1选题目的和意义.................................................................................................................11.2国内外目前的研究进展和成果.........................................................................................11.3本课题研究的内容.............................................................................................................22总体设计....................................................................................................................................32.1方案论证............................................................................................................................32.1.1温度传感器.............................................................................................................32.1.2单片机系统.............................................................................................................32.1.3电源模块.................................................................................................................42.1.4显示模块.................................................................................................................42.1.5确定方案.................................................................................................................42.2总体设计............................................................................................................................53硬件设计....................................................................................................................................63.1单片机系统........................................................................................................................63.2温度传感器模块................................................................................................................63.2.1DS18B20原理.........................................................................................................73.2.2DS18B20电路连接...............................................................................................113.3液晶显示模块..................................................................................................................113.4存储模块...........................................................................................................................143.4.1AT24C08结构.......................................................................................................143.4.2AT24C08工作原理...............................................................................................163.4.3AT24C08的连接电路..........................................