目录
摘要 ...................................................................................................................................3
ABSTRACT ..........................................................................................................................4
第一章 概述 ...................................................................................................................5
1.1 设计背景 ..........................................................................................................5
1.2 设计任务 ..........................................................................................................7
第二章 太阳能热水器及控制系统简介........................................................................8
2.1 热水器及系统工作原理...................................................................................8
2.2 控制系统设计原则...........................................................................................9
2.3 主控方案 ..........................................................................................................9
2.4 温度检测方案 ..................................................................................................9
2.5 水位检测方案 ................................................................................................10
2.6 显示方案 ........................................................................................................10
2.7 时钟方案 ........................................................................................................11
第三章 控制系统硬件设计..........................................................................................12
3.1 总体设计 ........................................................................................................12
3.2 主控模块 ........................................................................................................14
3.2.1 单片机接口配置..................................................................................14
3.2.2 复位电路 .............................................................................................14
3.2.3 时钟电路 .............................................................................................15
3.3 温度测量模块 ................................................................................................15
3.3.1 DS18B20 简介 ......................................................................................15
3.3.2 温度测量电路接线图............................................................................16
3.4 水位检测模块 ................................................................................................18
3.5 显示模块 ........................................................................................................19
3.5.1 LCD1602 电气接线图 ..........................................................................19
3.5.2 LCD1602 技术参数及接口说明 ..........................................................19
3.6 实时时钟 ........................................................................................................20
3.6.1 DS1302 简介 ........................................................................................20
3.6.2 时钟电路电气原理图..........................................................................20
3.7 驱动模块 ........................................................................................................21
3.6.1 上水电磁阀驱动电路..........................................................................21
3.6.2 自动加热驱动电路..............................................................................21
3.8 按键模块 ........................................................................................................23
3.8.1 按键模块简介........................................................................................23
3.8.2 按键抖动处理........................................................................................23
第四章 控制系统软件设计..........................................................................................25
4.1 实时时钟软件设计.........................................................................................25
4.1.1 DS1302 时钟地址及数据格式 ............................................................25
4.1.3 DS1302 软件流程 ................................................................................26
4.1.4 时间读取子程序..................................................................................26
4.1.5 时间设置子程序..................................................................................27