当前位置:文档之家› 毕业设计 基于单片机的空调控制系统

毕业设计 基于单片机的空调控制系统

IMCU-based air-conditioning control systemABSTRACTAs a result of global climate warming and national people's living standards, air-conditioning will be in people's lives gradually become an indispensable part. Micro-computer control system for air conditioners by the task instructions and in accordance with 89S52 room temperature, indoor heat exchanger temperature, outdoor temperature heat exchangers, compressors, etc. to control the status of the operation of air conditioners. Specifically, is to control the compressor, outdoor fan, indoor fan, indoor wind motor and the actual set temperature and room temperature liquid crystal display with LCD display. Main function is based on room temperature and temperature difference, and considering other conditions, and then on the indoor and outdoor compressors and fans running for intelligent control.The control system uses a single chip AT89S52 data collection, data processing to achieve the temperature control system of regulation and control. The main process is as follows: use of temperature sensor DS18B20 collecting temperature signal and then the signal is converted to non-power electrical signal, electrical signal and then converted into the A / D converter into a digital transmitted to the single-chip microcomputer for data processing, and output control signal peripherals. Loss single-chip, and then displayed by the single-chip control, and compare the acquisition of the temperature and the temperature settings are consistent, and then drive the heating or air conditioning to cool the air to deal with the cycle in order to achieve the regulation of indoor temperature in the entire design, related to the temperature detection circuit, driver control circuit, display circuit, the keyboard circuit and power circuit design. LCD charged by the real-time display of temperature and set temperature, in line with the use of C language and assembly language programming to enable software conversion air-conditioning temperature of the basic functions of intelligence. Low cost of this control circuit, functional and practical, is easily to operate, a certain degree of practical value.This paper discusses three aspects, first of all is the description of the hardware circuit; then the software part of the design; the final is the realization of function.KEY WORDS:Temperature Control,89S52, DS18B20 ,LCD liquid crystal displayII基于单片机的空调控制系统摘要由于全球气候的变暖和国内人民生活水平的提高,空调将逐渐成为人们生活中不可缺少的一部分。

空调器微电脑控制系统的任务是通过89S52的指令并根据房间的温度、室内热交换器温度、室外热交换器温度、压缩机的状态等来控制空调器的运行过程。

具体地说,就是控制压缩机、室外风扇、室内风扇、室内风向电机,并将设定温度和房间实际温度用LCD液晶显示屏显示出来。

主要功能是根据房间温度和设定温度的差值,并综合考虑其他条件,然后对压缩机和室内外风扇的运行状态进行智能控制。

本控制系统采用AT89S52单片机收集数据,处理数据来实现对温度控制系统的调控。

主要过程如下:利用温度传感器DS18B20采集的温度信号再将非电量信号转换为电信号,转换后的电信号再进入A/D转换器转换成数字量,传送给单片机进行数据处理,并向外围设备输出控制信号。

输给单片机,再由单片机控制显示,并比较采集的温度与设定的温度是否一致,然后驱动空调机的加热或降温循环对空气进行处理,从而实现对室内温度的调节,在整个设计中,涉及到温度检测电路,驱动控制电路,显示电路,键盘电路以及电源的设计等电路。

由LCD实时显示被控温度及设定温度,在配合用C 语言和汇编语言编程使软件实现空调温度智能转换的基本功能。

本控制电路成本低廉,功能实用,操作简便,有一定的实用价值。

本文从3个方面展开论述,首先是硬件电路的描述;接着软件部分的设计;最后实现功能。

关键字:温度控制,89S52,DS18B20,LCD液晶显III目录1 绪论 (1)1.1 课题背景 (1)1.2 课题目的 (1)1.3 课题意义 (2)1.4 课题功能 (2)2 系统硬件设计 (3)2.1 AT89S52单片机最小系统 (3)2.1.1 单片机功能特性 (4)2.1.2 管脚说明 (5)2.2 串口输出电路 (7)2.2.1 AT89S52串行口 (7)2.2.2 AT89S52串行的工作方式 (7)2.2.3 AT89S52串行口的波特率 (8)2.24 单片机串口通信电路 (8)2.3 温度传感器DS18B20 (9)2.3.1 温度感测 (9)2.3.2 参数控制说明 (12)2.4 LCD液晶显示 (12)2.4.1显示特性 (12)2.4.2机械特性 (13)2.4.3.引脚特性 (13)2.4.4原理图: (13)2.5遥控电路 (14)2.5.1编码解码原理 (14)2.5.2地址编码设定和修改 (16)2.6 压缩机驱动电路 (18)2.7 信号调整电路 (19)3 系统软件设计 (20)3.1 软件设计思路 (20)3.2 程序流程 (20)3.3 程序内容编写 (21)IV4 系统调试 (25)5 总结 (26)6 心得体会 (27)致谢 (29)参考文献 (30)附录Ⅰ (31)附录Ⅱ (32)毕业设计说明书(论文)缩写稿 (62)The Abbreviation Version of the Thesis of Undergraduates (68)基于单片机的空调控制系统 11 绪论基于89S52单片机的温度控制系统是温度传感器DS18B20通过自带的A/D转换系统完成将模拟信号(温度)转换成数字信号(电压)的功能,然后经放大电路放大到所需的范围内再经MAX232实现电平的匹配,由89S52单片机控制从而实现对环境温度的采集控制。

采用89S52单片机来对温度进行控制,不仅具有控制方便、组态简单和灵活性大等优点,而且可以大幅度提高被控温度的技术指标,从而能够大大提高产品的质量和数量。

因此,单片机对空调温度的控制成了该系统的核心。

1.1 课题背景在上世纪末,中国推出了绿色建筑、健康住宅的概念,这就给住宅空调器的发展提供了良好的机遇。

空气调节在人们生活中,起着重要的作用。

传统空调器具有开调节模式,不仅噪音和温度波动大,而且开关时对空调压缩机有很大的损害。

随着计算机技术、变频技术、智能控制技术的发展,人们摆脱了传统定频定速空调器的调节模式,开发出性能更为优良的变频变速空调器。

通过对空调发展的回顾和几种典型的主流空调技术的应用,可以看出科技创新势不可挡。

高科技含量的空调产品必将取代市场上仅仅具备了制冷制热功能的低技术含量空调。

未来空调将要朝着四化,即健康化、节能环保化、人性化、网络化迈进。

电子技术的发展,特别是随着大规模集成电路的产生,给人们的生活带来了根本性的变化,如果说微型计算机的出现使现代的科学研究得到了质的飞跃,那么单片机技术的出现则是给现代工业控制测控领域带来了一次新的革命。

目前,单片机在工业控制系统诸多领域得到了极为广泛的应用。

尤其是在空调控制系统方面,更具有独到的一面,它能更准更快的反应实时温度,并对其能够更好的控制,特别是其中的C51系列的单片机的出现,具有更好的稳定性,更快和更准确的运算精度,影响着人们的工作和学习。

相关主题