1、基于单片机的太阳能热水器的设计基于单片机的太阳能热水器的设计 摘要摘要 太阳能热水器以其诸多的优点受到人们的欢迎。本文结合实际太阳能热水器 的具体应用,在介绍太阳能、传感器、单片机的特点基础上,详细描述了太阳能 热水器的工作原理和设计方案。这里根据太阳能热水器对控制器的要求与特点, 提出了一种基于 DS12887 的太阳能热水器智能控制器的设计方法,给出了系统硬 件设计及软件实现方法。 全文分三大部分。第一部分包括第一章,了解太阳能的利用和前景发展状况。 第二部分包括第二章,描述太阳能系统组成及工作原理。第三部分包括第三、四 章硬件设计及电路原理和软件设计,分别介绍了传感器的特点及应用、一般的
2、太 阳能热水器及循环系统、单片机发展和原理,这也是此款太阳能热水器的理论基 础和必要前提。 关键词:关键词: 太阳能热水器;传感器; 模糊控制; 实时时钟;单片机 Design of intelligent controller for Solar Water Heater Abstract Solar Water Heater is popular with its pretty benefits, Based on authors real experience on Solar Water Heater design, this article describes the working
3、 theory of this solar water hearer after introducing the characters of solar、sensor、Single Chip Microcomputer(SCM).According to the request and characteristic of Solar Water heater for the controller. Providing a design of Intelligent Con- troller for Solar Water heater based on DS12887. Sum up a de
4、sign way of the systems hardware and software. This article is divided into 3 parts. Part One is Chapter 1,including the use and perspective of solar energy. Part Two, including Chapter 2, describing the including and the theory of this solar water heater. Part three, including Chapter 3,Chapter 4:
5、the design of hardware and software、the theory of the circuit. Separately introducing the characters and use of transducer, common solar water heater and cycle system, the development and theory of Single Chip Microcomputer(SCM),which are the basic theory and necessary precondition. Key Words: Solar
6、 Water Heater、Sensor、Vague control、 Real clock、Single Chip Microcomputer(SCM). 一、方案论证与比较一、方案论证与比较 单片机原理及系统课程设计报告 1 根据题目的要求,我们提出了以下两种方案: 方案 1:以单片机 AT89S52 核心。采用热敏电阻来采集温度,经 A/D 采样芯 片 ADC0804 将其转换成数字信号并通过单片机处理后去控制,此方案中热敏电阻 线性度不好,精度不高,而且外围电路比较复杂。 方案 2:以单片机 AT89S52 核心,采用经常用到的并有很高精度的集成温度 传感器 DS18B20。可直接读出温度,并且通过软件编程能实现各种控制算法使系 统还具有控制精度高的特点。省去 A/D 采样芯片,简化了外围电路,性价比高。 经过分析论证明,从方案的可行性,测量温度的精度,制作成本,我们采用 了第 2 种方案。 二、硬件选择:二、硬件选择: 为了方便制作和调试,我们选择 AT89S52 的 DIP 封装形式。P0、P2 口作