1、 毕业设计(论文)毕业设计(论文) 基于基于 51 单片机的家用电热水器设计单片机的家用电热水器设计 Design of Household Electric Water Heater Based on the 51-series singlechip 摘摘 要要 随着社会的发展,人类科技的进步,各行各业都在使自己的产品智能化、数 字化,因老式的热水器使用煤气或天然气对水进行燃烧加热,用手动的方式调节 温度,不仅不能够精确的确定使用者需要的水温,而且还存在一定的危险性。 电热水器是一种可供浴室、洗手间及厨房使用的家用电器,随着人们生活质 量的提高,现代的家用电热水器已经摒弃了以前的做法,而采用
2、一种更加精确、 安全的实施方案。 C 语言对单片机编程有诸多优点,例如:便于移植、句法检查时错误少、坚固 性好、头文件种类诸多,能够方便快捷使用各种函数等。 本文采用 AT 89C 52 单片机作为控制器, 使用 C 语言编写程序,设计了一款智 能家用电热水器。使用阵型键盘输入温度,温度可以精确到 0.1 摄氏度,并使用 LED 灯显示,能够精确提供用户所需温度的温水。采用 DS18B20 采集温度,使用 LED 灯显示,精确的显示出采集的水温。当所需温度高于当前采集的水温时,使 用 MOC3041 芯片触发加热,当所需温度低于当前采集的水温时,则停止加热。基 本实现了智能控制功能。 关键词关
3、键词:单片机;C 语言;采集;智能;家用电热水器 Abstract With the development of social and program of human technology, every trade all transfer own product into intelligence, digitize, because the water heater of old style uses gas or natural gas to heat water and manually adjust mode conditioning temperature, not only
4、unable to sufficiently accurately recognize the user need of water temperature, but also exist some certain risk. The electrical water heater is a kind of home appliances that bathroom, loo and kitchen can use, with raising of quality of human live, the modernistic household electrical water heater
5、has abandonned the past way, but adopts a kind of implementation scheme of more accurate ,safety. C language possess many merits for programming of singlechip, such as:Is easy to ransplant, having little bug when sentence construction review, fastness good, the head document type is so many that exp
6、ediently quickly using various function etc. The writer adopts an AT 89 Cs 52 singlechip to be the controller and using C languages to write programming ,design a style of intelligence household electrical water heater.Use array form keyboard input temperature, the temperature can be accuratly recognized to 0.1 , and use LED light display it, can accurately provide to the warm water of temperature that user needs.Adopt DS18 B20 to collect temperature, use LED light display, the accurately