温度采集智能家居热水器

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

温度采集智能家居热水器I郑州轻院轻工职业学院专科毕业设计(论文)题目温度采集智能家居热水器学生姓名专业班级学号系别指导教师(职称)完成时间2016年3月20日温度采集智能家居热水器II温度采集智能家居热水器摘要随着社会的发展,人类科技的进步,各行各业都在使自己的产品智能化、数字化,因老式的热水器使用煤气或天然气对水进行燃烧加热,用手动的方式调节温度,不仅不能够精确的确定使用者需要的水温,而且还存在一定的危险性。电热水器是一种可供浴室、洗手间及厨房使用的家用电器,随着人们生活质量的提高,现代的家用电热水器已经摒弃了以前的做法,而采用一种更加精确、安全的实施方案。C语言对单片机编程有诸多优点,例如:便于移植、句法检查时错误少、坚固性好、头文件种类诸多,能够方便快捷使用各种函数等。本文采用STC89C52单片机作为控制器,使用C语言编写程序,设计了一款智能家用电热水器。使用按键键盘设定温度,温度可以精确到0.1摄氏度,并使用LED灯显示,能够精确提供用户所需温度的温水。采用DS18B20采集温度,使用LED灯显示,精确的显示出采集的水温。当所需温度高于当前采集的水温时,使用继电器控制外接加热源,当所需温度低于当前采集的水温时,继电器断开不加热。当所需温度高于采集温度时,继电器吸合开始加热。基本实现了智能控制功能。关键字:18B20、STC89C52、热水器温度采集智能家居热水器IIIABSTRACTWiththedevelopmentofsociety,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显示模块.....................................................................................................................33.5电源选取.....................................................................................................................44系统器件选择.......................................................................................................................45硬件实现及单元电路设计................................................................................................55.1主控制模块................................................................................................................55.2显示模块电路..........................................................................................................65.3数码管显示驱动电路...........................................................................................65.4温度传感器(DS18B20)电路.............................................................................75.4.1DS18B20基本介绍............................................................................................75.4.2DS18B20控制方法............................................................................................85.4.3DS18B20供电方式............................................................................................85.5继电器加热控制电路...........................................................................................86系统软件设计.....................................................................................................................10温度采集智能家居热水器V6.1程序结构分析........................................................................................................106.2系统程序流图........................................................................................................106.2.1DS18B20初始化程序流程图........................................................................126.2.2读温度子程序流程图....................................................................................126.3程序编写与调试...................................................................................................136.6.1Keil编译器软件简介...................................................................................136.3.2使用Keil软件建立一个工程.....................................................................136.3.

1 / 38
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功