摘要随着经济的不断发展以及人民生活水平的不断提高,空调已经成为每一家的必需品,产量和销量都与日俱增。但同时由于人们的浪费也造成了电力资源的浪费。这样我们想到了空调节能插座的设计,而本课题主要研究的是基于PIC单片机的空调节能插座的硬件设计。该硬件设计的主控制器模块选用PIC16F877为核心。PIC16F877单片机是PIC单片机中最常用的单片机,它是一种具有8位FLASH程序存储器的CMOS单片机,属于PIC单片机的高端系列。选用SRD—05VDC—SL-C继电器构成的驱动电路。而DS18B20温度传感器作为温度传感器模块。设备选用的电源模块是AC-DC电源模块,它是交流转直流的电源模块。46135
具体做法是首先该单片机采集温度传感器的温度数据,和设定的温度范围进行比较。如果在允许工作的温度范围内,该插座才能供电,如果温度不在设定的范围,单片机控制继电器停止工作,断开插座供电。设定的温度范围是:如果室内温度低于20摄氏度或者高于26摄氏度时,空调工作,如果室内温度在20摄氏度到26摄氏度之间时,就自行断开空调电源,最大限度地节省待机功耗,从而达到节约电能的目的。
毕业论文关键字:PIC16F877单片机; DS18B20; 继电器; 电源模块; 节能插座
ABSTRACT With the continuous development of economy and the continuous improvement of people's living standards, air conditioning has become a necessity for every family, production and sales are increasing day by day. But at the same time, because of people's waste also caused the waste of power resources. In this way, we think of the design of air conditioning and energy saving socket, and the main research of this topic is the design of the hardware of the energy saving socket based on PIC single chip microcomputer. The hardware design of the main controller module uses PIC16F877 as the core. PIC16F877 microcontroller is the most commonly used PIC microcontroller, it is a 8 bit FLASH program memory of the CMOS microcontroller, belonging to the high-end series of PIC mcu. Drive circuit composed of 05VDC - SL-C - SRD relay. The DS18B20 temperature sensor is used as the temperature sensor module. The power supply module is a AC-DC power module, which is a power supply module for AC to DC power supply.
The specific approach is the first single-chip temperature sensor acquisition temperature data, and set the temperature range for comparison. If the socket can be supplied in the temperature range that is allowed to work, if the temperature is not in the set range, the control relay of the single chip microcomputer stops working, and the power supply is disconnected from the socket. Set the temperature range is: if the indoor temperature below 20 degrees centigrade degrees or above 26 degrees Celsius, air conditioning, if the indoor temperature at 20 degrees Celsius to 26 degrees Celsius between, their own off the air conditioning power, maximally save standby power consumption, so as to achieve the purpose of saving energy.
Key word: PIC16F877 single chip microcomputer ; DS18B20 ;
relay power module ; energy saving socket
目 录
第一章 绪论 1
1.1 课题研究的背景和意义 1
1.2空调节能插座的发展前景 1
第二章 系统方案设计及原理 2
2.1系统方案设计 2
2.1.1整个系统框图 3
2.1.2电源系统框图 3
2.2 PIC单片机的概述 4
2.3温度传感器DS18B20工作原理 5
第三章 系统硬件电路设计 7
3.1主控制器设计 8
3.2传感器模块设计 9 PIC单片机的空调节能插座的硬件设计:http://www.751com.cn/tongxin/lunwen_47794.html