1、 电热水器水温水位控制系统的研究 Research on Control System of Electric Water Heater Temperature and Water Level 院(部)名称: 电子信息与电气工程 专业班级: 自动化(专升本)2011 级 学生姓名: 学 号: 指导教师姓名: 指导教师职称: 2013 年 5 月 目目 录录 摘要: I Abstract. II 引言 . 1 第一章 系统方案设计 . 3 1.1 水温水位控制系统的设计任务和要求 3 1.2 系统总体方案的选择 . 3 1.3 温度传感器的选择 4 1.4 水位传感器的选择 5 第二章 元器件介
2、绍及硬件电路设计 . 6 2.1 元器件介绍 . 6 2.1.1 温度传感器 6 2.1.2 单片机 AT89C52 8 2.1.3 LCD1602 液晶屏 9 2.1.4 超声波测距仪 . 10 2.1.5 键盘 . 11 2.2 硬件电路设计 11 2.2.1 温度采集电路 . 11 2.2.2 温度控制电路 . 12 2.2.3 LCD1602 液晶显示电路 12 2.2.4 水位监测电路 . 13 2.2.5 键盘电路 . 14 2.2.6 水位控制电路 . 14 2.2.7 语音播报电路 . 15 第三章 系统软件设计 17 3.1 程序结构说明 . 17 3.2 程序流程图 . 1
3、7 3.2.1 主程序 . 17 3.2.2 LCD1602 显示程序流程图 19 3.2.3 温度采集处理程序 . 20 3.2.4 超声波测距程序 . 20 3.2.5 键盘程序 . 21 3.3 操作指引 . 22 第四章 实验测试 . 24 4.1 LCD1602 显示“ABCD1234” . 24 4.2 键盘及数字显示结合 . 24 4.3 整机调试 . 24 结论 26 致谢 27 参考文献 . 28 附录 A . 29 附录 B 30 I 电热水器水温水位控制系统的研究 摘要摘要:本设计介绍了一种以 AT89C52 单片机为控制核心、以一种新型的可编程温度传 感器(DS18B2
4、0)为温度采集器件来实现水温水位控制系统。文章着重介绍核心器件的 选择、各部分电路及软件的设计。AT89C52 单片机完善的内部结构、优良的性能和强大 的中断处理能力,决定了该控制系统的特点:电路结构简单、程序简短、系统可靠性高 等。水位以 AT89C52 单片机检测缺水溢流,实现自动控制,温度检测采用新型的可编 程温度传感器(DS18B20) ,不需要复杂的信号调理电路和 A/D 转换电路,能直接与单 片机完成数据的采集和处理,采用 LCD1602 液晶实时显示温度值,并由语音模块实时 播报。实现方便、简单。本系统根据不同需要可用于各种场合。 关键词:关键词:单片机; DS18B20;LCD
5、1602 ;语音播报;控制 II Research on Control System of Electric Water Heater Temperature and Water Level Abstract:This design introduces a AT89C52 MCU as the control core, a new programmable temperature sensor (DS18B20) for the temperature acquisition device to achieve the water temperature control system.
6、The design of this article mainly introduces the core device of choice, each part of the circuit and software. AT89C52 microcontroller perfect internal structure, excellent performance and powerful interrupt processing ability, determines the characteristics of the control system: the circuit structure is simple, quick, high reliability. The water level based on AT89C52 single chip microcomputer detecting water overflow, to achieve aut