基于单片机的热水器控制系统的设计与实现摘要时代在不断的发展和进步,人们目前总体步入小康社会,温饱不再是社会需要解决的主要问题,而生活质量却成了人们密切关注的首要问题。作为一个新型的家用电器,热水器不断的出现在人们的视野中。给用户的生活带来了新的春天。人们之前广泛使用的燃热水器,由于它的不安全性和对环境的污染,退出市场是必然的。而电热水器省空间,卫生安全,受到了用户的青睐。所以针对这一现状,本次设计的主题是基于单片机的热水器控制系统的设计与实现。该设计可以对当前水温进行采集和显示,还有对实时时钟的显示,这种设计方案增加了系统的实用性。单片机体积小,结构简单,但是五脏俱全,应用广泛,因此把STC89C52单片机作为这个系统的主控芯片,外接温度测量电路、继电器开关电路,看门狗复位电路,数据管显示电路,构成了整个硬件电路,而软件方面则是采用C语言开发技术,C语言编程简单,实用性强。关键词:单片机;热水器;温度IAbstractEraincontinuousdevelopmentandprogress,peopleintoawell-offsociety,thewholefoodisnolongerasocietyneedstosolvethemainproblems,andthequalityoflifehavebecomeprimaryproblempeoplepaycloseattentiontoAsanewtypeofhouseholdelectricalappliances,waterheaterconstantlyappearinpeople'sfieldofvisiontotheuserhasbroughtthenewspringlifeBeforepeoplewidelyusedwaterheater,duetoitssafetyandpollutiontotheenvironment,exitthemarketisinevitableAndelectricwaterheatersavespace,healthsecurity,favoredbytheusersSoforthissituation,thisdesignisthethemeofthewaterheaterbasedonsingle-chipmicrocomputercontrolsystemdesignandimplementationofthedesigntocaptureanddisplaythecurrenttemperature,andtherealtimeclockdisplay,thiskindofdesignschemetoincreasethepracticabilityofthesystem.SCMsmallsize,simplestructure,butall-sided,widelyused,sotheSTC89C52single-chipmicrocomputerasmaincontrolchipinthissystem,externaltemperaturemeasurementcircuitrelayswitchcircuit,watchdogresetcircuit,displaycircuit,dataofthehardwarecircuitandthesoftwareisusingClanguagedevelopmenttechnology,Cprogramminglanguageissimple,practical.Keywords:Singlechipmicrocomputer;Thewaterheater.ThetemperatureII目录1绪论....................................................................11.1课题研究背景及意义...................................................11.2国内外研究现状.......................................................12电热水器控制系统的总体设计方案..........................................22.1主要设计内容.........................................................22.2系统整体设计方案.....................................................22.3各功能模块介绍.......................................................32.3.1主控模块.........................................................32.3.2温度采集模块.....................................................42.3.3按键模块.........................................................42.3.3显示模块.........................................................43硬件电路的设计与实现....................................................43.1单片机最小系统硬件电路设计...........................................43.2温度传感器电路设计...................................................53.3按键电路设计.........................................................53.4看门狗复位电路设计...................................................63.5显示电路设计.........................................................63.6继电器加热电路设计...................................................73.8电源和开关电路设计...................................................