本科毕业设计(论文)题目基于单片机的智能饮水机的设计院(系部)万方科技学院专业名称电气工程及其自动化专业年级班级07-6学生姓名指导教师2011年5月25日河南理工大学万方科技学院本科毕业论文2摘要目前,大多数家庭所使用的饮水机都只有一些基本的功能,例如加热、保温。然而,随着人们物质生活的不断提高,对饮水机的性能要求也不断提高。为了满足人们对饮水机的性能要求,本课题研究智能饮水机,它主要功能是在温度达到100°沸腾,并能在0-100℃之间以5℃为最小温差进行温度设定,从而得到任意想要的水温,非常人性化。它还具有过热保护及防干烧功能等。随着计算机技术的发展,单片机技术已成为计算机技术中的一个独特的分支,单片机的应用领域也越来越广泛,特别是在工业控制和仪器仪表智能化中扮演着极其重要的角色。过去经常采用模拟电路、数字电路实现的电路系统,现在相当大一部分可以用单片机予以实现,传统的电路设计方法已演变成软件和硬件相结合的设计方法。在实际应用中,单片机经常要与各种传感器相结合组成一定的应用系统,以实现系统的自动检测与控制。本文所设计的智能饮水机就是单片机结合传感器的一个简单应用。该系统设计综合单片机以及电子技术理论,从生活实际出发,完善了饮水机的功能。整个设计系统实现三个功能,即加热、对温度上下限的控制和定时加热。与传统的饮水机相比,由于采用了自动检测和控制的电子设计技术,可较好地实现对水温的测量和控制,具有较广泛的应用前景。关键词:智能饮水机AT89S52单片机温度采集功能设计河南理工大学万方科技学院本科毕业论文3AbstractCurrently,mosthouseholdsareusingdrinkingfountainsareonlysomebasicfunctions,suchasheating,insulation.However,withthecontinuousimprovementofmateriallife,people,performancerequirementsofthedrinkingfountainsalsorising.Tomeettheperformancerequirementsfordrinkingfountains,drinkingfountainsoftheintelligenceresearch,whichmainfunctionisintheboilingtemperaturereaches100°,andcanbebetween0-100℃at5℃temperaturedifferencefortheminimumtemperaturesetting,youwanttogetanywater,veryhuman.Italsohasthermalprotectionandanti-dryfunctions.Withthedevelopmentofcomputertechnology,singlechiptechnologyhasbecomethecomputertechnologyinauniquebranchofmicrocontrollerapplicationsareincreasinglybeingusedespeciallyinintelligentindustrialcontrolandinstrumentationplaysaveryimportantrole.Usedtoanalogcircuits,digitalcircuitscircuitsystem,andnowalargepartofthemicrocontrollercanbeachieved,thetraditionalmethodofcircuitdesignhasevolvedintoacombinationofsoftwareandhardwaredesign.Inpracticalapplications,themicrocontrollerwithavarietyofsensorsoftencomposedofsomecombinationoftheapplicationsystemtoachieveautomaticdetectionandcontrolsystem.Intelligentdesigninthispaperdispenserisasimplemicrocontrollerwithsensorapplications.Thesystemdesignofintegratedmicrocontrollersandelectronicstheory,therealityoflife,improvethefunctionofthedrinkingfountains.Thewholedesignsystemtoachievethreefunctions,namely,heating,temperaturecontrolandtimerupperandlowerheat.Comparedwiththeconventionaldrinkingfountains,theuseofautomaticdetectionandcontrolofelectronicdesigntechniquestoachievebettermeasurementandcontrolofwatertemperature,haveawiderapplication.Keywords:intelligentwaterdispenser,AT89S52microcontroller,temperatureacquisition,FunctionalDesign河南理工大学万方科技学院本科毕业论文4目录前言..............................................................................................................................61绪论..........................................................................................................................81.1课题研究的背景......................................81.2市场饮水机现状......................................81.3课题研究的目的和意义................................91.4智能饮水机的主体功能................................91.5课题设计的主体内容.................................102智能饮水机的硬件结构设计............................................................................112.1智能饮水机的总体设计...............................112.2元器件选择.........................................122.3AT89S52的主要性能.................................122.3.1AT89S52功能特性描述............................132.3.2AT89S52晶振电路的设计..........................132.4测温电路的设计.....................................152.4.1DS18B20的引脚图及方框图........................152.4.2DS18B20主要性能................................162.4.3DS18B20功能特性描述............................162.4.4DS18B20供电方式................................182.5主控系统...........................................192.6输入控制...........................................202.7显示部分...........................................212.8其他功能部分.......................................233智能饮水机的软件设计.....................................................................................253.1系统分配方式.......................................253.2主程序设计.........................................253.3各模块程序设计.....................................283.3.1温度检测程序设计...............................283.3.2显示程序设计...................................303.3.3键盘扫描程序...................................313.3.4延时程序.......................................344调试及性能分析....................................................................................................354.1软件调试...........................................35河南理工大学万方科技学院本科毕业论文54.1.1新建工程.......................................354.1.2新建文本.......................................354.1.3添加文本.......................................364.1.4程序编译.......................................374.2硬件调试...........................................374.2.1电源电路的仿真.................................374.2.2出水电路模块的仿真.............................384.2.3加热模块电路的仿真.............................394.2.4显示模块电路的仿真.............................394.2.5报警电路的仿真.................................404.3性能分析...........................................41结论............................................................................................................................42致谢...................................................