华科学院本科毕业设计(论文)
基于单片机的电热水器水温水位控制系统设计
摘 要
随着人们生活水平的提高,各种热水器的使用已相当普及。与之相配套的控制仪也相
继问世。然而,目前市场上的各种热水器控制电路还与理想要求相差甚远。因此我设计了
新型的热水器水温水位控制系统来满足于当今的需求,该热水器智能控制系统主要由
AT89S52 单片机控制、DS18B20 温度传感器、独立键盘、LED 数码管和报警系统组成。该系
统能测量并显示水温、设置水温范围,若水温不处于所设置的水温范围则报警,同时还能
对水位进行设置及加水,先设置好需要加水的水位段数,单片机会根据这个数进行判断是
否加水。通过软硬件调试使以上所述功能都能正常实现。
本次设计是对水温水位控制系统的智能化改进,采用单片机对其水温水位参数进行控
制,提高了电器的工作稳定性,同时引进了数字传感器对水温进行数据采集,这样也就提
高了系统的控制精度,以其自身的控制精度高、稳定性好和成本低的独特优点在今后将会
由广泛的实用价值,其基于单片机的改进方法也具用广泛的应用意义。
关键词:单片机;DS18B20;水温水位控制
华科学院本科毕业设计(论文)
I
苗曦露: 基于单片机的电热水器水温水位控制系统设计
II
Electric Water Heater Water Temperature-Level Control
System Based on SCM
Abstract
With the improvement of people's living standard, the use of various water heater is very
popular. Control apparatus and the matched field. However, the current market on the various
water heater control circuit and the ideal requirements differ very far.So i design a new type of
water heater water level control system to meet the semand in nowdays. The design of solar
water heaters intelligent control system is mainly composed of single-chip AT89S52,DS18B20
temperature sensor,an independent keyboard ,LED and alarm system.The system can measure
and display water temperature ,set the range of water temperature,of the water temperature is not
in the range of setting temperature is alarming.At the same time,you can set the water level and
add water,first,need to set up the water level above the water,single-chip will determine whether
add the water or not according to the number.Through hardware and software debugging,the
above functions can be normal.
For other related parameters, it also has a certain meaning using. The revivification of the
water control system is an intelligent product. To its own control of high precision, stability and
low cost of the advantages, in the future there will be a wide range of practical value.The design
of the water temperature control system is to improve the intellectualized. A monolithic
integrated circuits is to control the level of parameter and improve the stability of the electrical
work, and meantime, What’s more, its based on single ways of improvement have wide
application meaning.
Keywords: singlechip; water level’s examination; water temperature’s examination
华科学院本科毕业设计(论文)
III
苗曦露: 基于单片机的电热水器水温水位控制系统设计
IV
目 录
摘 要 .....................................................................I
ABSTRACT ....................................................................III
第 1 章 绪论 ..............................................................- 1 -
1.1 选题的意义..........................................................- 1 -
1.2 电热水器发展现状....................................................- 1 -
1.3 课题任务............................................................- 3 -
第 2 章 系统设计方案 .....................................................- 5 -
2.1 设计原理............................................................- 5 -
2.1.1 系统原理 ........................................................- 5 -
2.1.2 子系统工作原理 ..................................................- 5 -
2.2 设计方案............................................................- 6 -
2.2.1 系统设计方案的选择 ..............................................- 6 -
2.2.2 各部件控制系统方案 ..............................................- 8 -
第 3 章 系统硬件设计 ....................................................- 11 -
3.1 系统总体设计.......................................................- 11 -
3.2 各单元电路设计.....................................................- 13 -
3.2.1 控制单元设计 ...................................................- 13 -
3.2.2 显示单元设计 ...................................................- 19 -
3.2.3 检测单元设计 ...................................................- 25 -
第 4 章 系统软件设计 .....................................................- 33 -
4.1 主程序设计.........................................................- 33 -
4.2 子程序设计.........................................................- 33 -
4.2.1 温度采集 .......................................................- 33 -
4.2.2 控制按键设计 ...................................................- 34 -
4.2.3 读温度 .........................................................- 35 -
第 5 章 系统调试 .........................................................- 37 -
5.1 硬件调试...........................................................- 37 -
5.1.1 调试步骤 .......................................................- 37 -