文档介绍:摘要
本课题是对太阳能热水器水温、水量控制系统进行研究,以美国ATMEL公司生产的8位单片机AT89S52为核心,设计能够调节水量的太阳能热水器。设计主要是采用单片机对步进电机进行控制,控制步进电机的转动来控制流量控制阀,即通过步进电机来精确控制冷水的流量,来保证热水器与冷水混合后的温度达到用户的要求。
该设计在调节水温的同时,还可以实现对水量进行控制。利用温度传感器采集温度,然后把采集的温度和用户设定的温度进行比较,比较之后,通过控制步进电机的正反转,调节节流水阀的通断面积,从而控制水量的大小。
关键词:AT89S52 步进电机电磁阀
Abstract
This topic is temperature and water control system of solar energy water heater,pany in the United States the 8-bit microcontroller production AT89S52 as the core, designing adjustable water solar water heater,the design is mainly for step motor adopts single-chip puter control,controlling the stepping motor rotate to control flow control,that is,through the stepping motor for precisely controlling the flow of water,To ensure water heater with the mixture of water temperature reaches the user's requirements.
The system not only can adjust the temperature of the water,but also control the water size,which make use of temperature sensor to collect temperature,then,the temperature pared with the setted temperature,after parison,through the stepping motor of the positive &negative ,adjust throttling the water hige area,so as to control the water size.
Keywords:AT89S52 stepping motor ic valve
目录
绪论 1
1 课题研究的背景及研究意义 1
全球常规能源的现状 1
太阳能热水器发展状况 2
国际太阳能热水器的发展现状 2
中国太阳能热水器的发展状况 2
研究意义 3
2 系统概述 3
系统功能简介 3
系统硬件介绍 4
单片机AT89S52介绍 4
单片机最小系统原理图 7
3 电机的介绍 7
电机的选择 7
步进电机的基础知识 8
步进电机驱动电路方案选择 8
4 L297N的相关知识 8
L297N的工作原理介绍 8
L297N各引脚功能说明 10
L298N的相关知识 12
L298N的作用 12
L298各引脚功能说明 13
L297/L298组合应用 13
L297/L298组合应用的实例 13
L297/L298组合应用驱动步进电机的电路图 13
5 电磁阀相关知识 13
13
热水水阀、总水阀的驱动电路 14
6 ULN2003A介绍 15
ULN2003A基本参数 15
7 显示电路原理图 16
8 红外感应电路原理图 16
9 Protel99SE介绍 17
Protel99SE系统组成 17
17
17
Protel99SE快捷键大全 18
Protel99SE设计原理图步骤 18
10 Keil介绍 19
如何在Keil中建立工程 19
21
把程序源文件加入到工程中 23
编译程序 25