1、 I 学科分类号: 08 本科生毕业设计 题 目:基于单片机的电热水器设计 学生姓名: 学号 系 部: 通信与控制工程系 专业年级: 09 级 电信本二班 目 录 第一章 绪论 . 1 1.1 论文背景与意义 1 1.2 研究现状和趋势 1 1.3 论文研究内容和重点 2 1.4 论文组织结构 2 第二章 总体设计 . 3 2.1 总体设计方案 3 2.2 方案论证 4 2.3 主要元器件的介绍 4 2.3.1 微控制器模块 . 4 2.3.2 数字温度传感器 DS18B20 介绍 . 5 2.3.3 LED 数码管显示 . 8 2.3.4 固态继电器 11 第三章 硬件系统设计 12 3.1
2、 电源电路 12 3.2 复位电路和复位状态 13 3.3 键盘接口电路 . 15 3.4 温度检测电路 16 3.5 温度显示电路 16 3.6 自动报警电路 . 17 第四章 软件系统设计 . 18 III 4.1 主程序流程框图 . 18 4.2 读温度子程序流程图 . 19 4.3 显示子程序流程图 . 20 4.4 自动报警子程序流程图 . 21 第五章 调试 . 22 5.1 模块调试 . 22 5.1.1 温度检测模块及显示模块的调试 22 5.1.2 报警模块调试 22 5.1.3 加热模块调试 23 5.2 调试过程中发现的问题及解决的方案 . 24 结 论 . 25 致 谢
3、 26 参考文献 27 附件一:原理图 28 附件二:程序 29 基于单片机的电热水器设计 摘要:这次的设计采用 ATEML 公司生产的 AT89C52 单片机为核心来设计智能电热水 器。本设计利用单片机、温度传感器、自动报警等来完成本设计。设计分成两个部分, 在硬件设计方面,主要对单片机最小系统及其扩展、电源电路、按键及接口电路、LED 显示电路、水温检测电路、加热电路等进行了详细介绍。还详细介绍了设计中应用到的 主要芯片的性能和特点,包括 AT89C52、DS18B20 等。在软件设计方面,采用 C 语言编 程,是由于其易于为单片机所识别,执行速度快。该智能电热水器设计完善,实现方案 简单
4、易行。采用软件设计来控制,可以实现检测水温及自动报警、加热,并且提高了整 机的可靠性及准确性、安全性。 关键词:单片机; 电热水器; V Design of electric water heater based on MC ABSTRACT:This design as the core to design intelligent electric water heater using ATEMLs AT89C52 microcontroller. The design of single-chip microcomputer to control the possibility of re
5、alizing intelligent electric water heater is analyzed, the automatic alarm to complete the design, using the temperature sensor. The two part of the design is divided into, in the aspect of hardware design, mainly has carried on the detailed introduction to the smallest single-chip system and its ex
6、tension, power supply circuit, interface circuit, keyboard and LED display circuit, temperature detection circuit, heating circuit. Also introduced the properties and characteristics of the main chip to design applications, including AT89C52, DS18B20 etc In software design, using C programming, is due to its easy identification of the MCU, speed of execution. The intelligent and perfect water heater design, scheme is simple and easy to realize. The software designed to con