文档详情

基于单片机的家用电热水器设计毕业论文.doc

发布:2018-05-25约5.42万字共33页下载文档
文本预览下载声明
本科毕业论文(设计) 基于51单片机的家用电热水器设计 基于51单片机的家用电热水器设计 摘要 市场上传统的机械式热水器控制精度低、可性靠差。随着社会的发展,人们对电热水器的要求越来越趋向于智能化和数字化,而智能化家用电热水器正是适应现代化智能家用电器趋势而出现。 本文主要设计了一种基于单片机的家用电热水器控制系统,它以AT89C51单片机为核心控制器,使用阵型键盘输入温度,并使用LED灯显示,能够精确提供用户所需温度的温水。同时采用DS18B20进行温度采集,当所需温度高于当前采集的水温时,使用MOC3041芯片触发加热,当所需温度低于当前采集的水温时,则停止加热。该设计简单易行,成本低,而且安全,具有推广价值。 关键字:AT89C51单片机,温度控制,传感器 Design of household electric water heater based on the 51-series single-chip Abstract The market upload mechanical water heater’s power system is of low control precision, poor reliability. With the development of the society, people’s demand for electric water heater is more and more tend to be intelligent and digital. While the intelligent home electric water heater is to adapt to the modern trend of intelligent household appliances. Designed in this paper is a smart home electric water heater, which AT89C51 as a controller, use array form keyboard input temperature, and use LED light display it, so it can accurately provide to the warm water of temperature that user needs. The system adopt DS18B20 to collect temperature, when the temperature needed higher than to collect water temperature at present, it use the MOC3041 chip lead to heating , when the temperature needed is lower than the collect water temperature at present, it stop heating.The Smart electric water heater designed to achieve the program is simple,low cost, safe,it has practical value. Key-words:AT89C51 single chip microcomputer, temperature control, temperature sensor. 目录 1引言 1 1.1 智能热水器的历史与发展 1 1.2 本设计主要研究内容 1 2系统总体设计 1 2.1单片机引脚功能说明 2 2.2 DS18B20介绍 4 2.2.1 DS18B20引脚说明 5 2.2.2 工作原理 5 2.3 MOC3041介绍 6 2.4 矩阵键盘的工作原理 6 2.5 LED数码显示管介绍 7 3系统硬件模块介绍 8 3.1 单片机最小系统 8 3.2 温度传感器模块 8 3.3 加热控制器MOC3041 9 3.4 键盘控制电路 10 3.5 LED数码显示管 10 3.5.1 多位数码管的显示控制 11 3.5.2 锁存器与数码管显示方法 11 4系统软件设计 12 4.1 主程序分析 12 4.1.1 主程序流图 12 4.1.2 主函数分析 13 4.2 中断加热模块分析 13 4.3 键盘输入设计 14 4.3.1 键盘输入方法 14 4.3.2 键盘输入的抖动与去抖动方法 15 结论 16 参考文献 17 附录一 18 附录二 19 附录三 20 附录四 25 致谢 26 1引言 1.1 智能热水器的历史与发展 我们的生活电热水器是一种可供
显示全部
相似文档