温度采集智能家居热水器郑州轻院轻工职业学院专科毕业设计(论文)题目温度采集智能家居热水器学生姓名I温度采集智能家居热水器专业班级学号系别指导教师(职称)完成时间2016年3月20日温度采集智能家居热水器摘要II温度采集智能家居热水器随着社会的发展,人类科技的进步,各行各业都在使自己的产品智能化、数字化,因老式的热水器使用煤气或天然气对水进行燃烧加热,用手动的方式调节温度,不仅不能够精确的确定使用者需要的水温,而且还存在一定的危险性。电热水器是一种可供浴室、洗手间及厨房使用的家用电器,随着人们生活质量的提高,现代的家用电热水器已经摒弃了以前的做法,而采用一种更加精确、安全的实施方案。C语言对单片机编程有诸多优点,例如:便于移植、句法检查时错误少、坚固性好、头文件种类诸多,能够方便快捷使用各种函数等。本文采用STC89C52单片机作为控制器,使用C语言编写程序,设计了一款智能家用电热水器。使用按键键盘设定温度,温度可以精确到0.1摄氏度,并使用LED灯显示,能够精确提供用户所需温度的温水。采用DS18B20采集温度,使用LED灯显示,精确的显示出采集的水温。当所需温度高于当前采集的水温时,使用继电器控制外接加热源,当所需温度低于当前采集的水温时,继电器断开不加热。当所需温度高于采集温度时继电器吸合开始加热。基本实现了智能控制功能。关键字:18B20、STC89C52、热水器III温度采集智能家居热水器ABSTRACTWiththedevelopmentofsociety,theprogressofhumanscienceandtechnology,inallwalksoflifetomaketheirproductsintelligent,digital,becausethewaterheaterusingold-fashionedgasornaturalgasisburnedtoheatwater,adjustthetemperaturemanually,notonlycantheuserneedstobeaccuratelydetermined,andthereissomerisk.Electricwaterheaterisakindofhouseholdappliancesforbathroomandkitchen,restroomuse,alongwiththeimprovementofpeople'slivingquality,householdelectricwaterheatermodernhaverejectedthepreviouspractice,andbyusingamoreaccurate,safeimplementationplan.TheClanguagehasmanyadvantages,suchas:microcomputerprogrammingfortransplantation,syntaxcheckerrorless,robust,headfiletypemany,canbeconvenienttouseavarietyoffunctions.ThispaperadoptsSTC89C52MCUasthecontroller,theuseofCprogramminglanguage,designedaintelligenthomeelectricwaterheater.Usethekeyboardtosetthetemperature,thetemperaturecanbeaccurateto0.1degreesCelsius,andtheuseofLEDlightsdisplay,canaccuratelyprovidetherequiredtemperatureofwarmwater.TheDS18B20collectiontemperature,theuseofLEDlightsdisplay,displaythetemperaturepreciseacquisition.Whentherequiredtemperatureishigherthantheacquisitionoftemperature,usetherelaytocontroltheexternalheatingsource,whentherequiredtemperatureislowerthanthecurrentcollectingwater,relayoffwithoutheating.Whentherequiredtemperatureishigherthantheacquisitionoftemperature,relaystartsheating.Thebasicrealizationoftheintelligentcontrolfunction.Keywords:18B20、STC89C52、IV温度采集智能家居热水器目录1引言......................................................................................................................................12设计内容及性能指标.............................................................................13系统方案比较、设计与论证....................................................23.1主控制器模块.....................................................................................23.2温度测量.....................................................................................................23.3设置温度.....................................................................................................33.4显示模块....................................................