当前位置:文档之家› 家用电热水器控制系统设计

家用电热水器控制系统设计

v .. .

..

. . . 资 料. . 目录

摘要.......................................................................................................................... I

ABSTRACT ................................................................................................................ II

第1章 引言 ............................................................................................................ 1

第2章 系统功能需求分析与设计方案选择 ............................................................... 3

2.1 系统功能需求分析 ...................................................................................... 3

2.2 方案选择 .................................................................................................... 3

2.3 本章小结 .................................................................................................... 6

第3章 硬件系统设计 .............................................................................................. 7

3.1 电源电路 .................................................................................................... 7

3.2 单片机最小系统说明 ................................................................................... 8

3.3 温度检测电路 ............................................................................................. 9

3.4 人机交互电路 ........................................................................................... 10

3.4.1 键盘接口电路 .................................................................................. 10

3.4.2 显示电路 ........................................................................................ 10

3.5 红外一体接收模块 .................................................................................... 13

3.6 报警电路 .................................................................................................. 13

3.7本章小结 ................................................................................................... 13

第4章 软件系统设计 ............................................................................................ 15

4.1 主程序流程图 ........................................................................................... 15

4.2 液晶显示程序设计 .................................................................................... 15

4.2.1写操作时序图 .................................................................................. 15

4.2.2 初始化程序 ..................................................................................... 16

4.2.3 向LCD1602发送数据程序设计 ....................................................... 17

4.3按键扫描程序设计 ..................................................................................... 17

4.4温度控制程序设计 ..................................................................................... 18

4.4.1初始化DS18B20 .............................................................................. 18 v .. .

..

. . . 资 料. . 4.4.2读取DS18B20当前温度 ................................................................... 19

4.5控制程序策略设计 ..................................................................................... 19

4.6本章小结 ................................................................................................... 21

第5章 仿真与调试 ................................................................................................ 22

第6章 总结 .......................................................................................................... 26

致谢....................................................................................................................... 28

参考文献 ................................................................................................................ 30

附录......................................................................................................................... 1v .. .

..

. . . 资 料. . v .. .

..

. . . 资 料. . 摘要

本设计完成了基于单片机控制的家用电热水器控制系统的设计。系统选STC89C51单片机作为控制器,利用DS18B20数字温度传感器实时检测当前水温,以串行通行的方式反馈给单片机搭建了硬件平台;利用C语言完成温度控制系统软件开发;借助protuse平台进行了模拟仿真,仿真结果表明:该系统实行方案简单易行,可以实现检测水温、加热、红外遥控等功能。

关键词:STC89C51,DS18B20,红外遥控

v .. .

..

. . . 资 料. . ABSTRACT

This design finishes designing of the household electric water heater

control system based on the control of single-chip microcomputer. In this

system, STC89C51 single-chip microcomputer is used as controller and

DS18B20 digital temperature sensor is used to conduct field test of current

water temperature. It also uses the way of serial and passage to give

feedback to single-chip microcomputer to set up hardware platform.

Besides, C Programming Language is used to develop temperature control

system software. It also uses the protuse platform to conduct simulation. The

simulation result shows that this system is simple and feasible of this execution

program and it also achieves the function of detecting water temperature,

heating and infrared remote control and so on.

Keywords: STC89C51, DS18B20, infrared remote control

相关主题