电冰箱温度控制系统
摘要:单片机的用处是实时检测和自动控制,属于整个系统当中的核心部件。本次毕业设计基于单片机STC89C52设计的电冰箱控制系统,主要利用温度传感器DS18B20采集电冰箱冷藏室、冷冻室的温度,还可以通过该传感器连续检测冰箱内壁结霜的温度,动态计算出霜厚超过一定程度。通过单独按键控制数据输入,提高单片机运算效率。以及LCD12864显示屏作为主要数据输出显示部件,可以矩阵汉字直观表示温度变化以及动态显示不同功能模块的内容。STC89C52单片机是一款高效的芯片,对外围部件进行信号控制,从而达到智能化冰箱的目的。本毕业设计可以实现温度实时检测、多温多控、速冻时间控制、压缩机延时保护、开门延时报警等多种功能。这是一款通过改进老式电冰箱制冷系统,实现智能微机控制的冰箱系统,使我们的冰箱能够根据环境做出智能化的反应,环保节能,并且根据改变内置程序来进行拓展功能。
关键字:STC89C52;温度控制;DS18B20
System Designing of Granary Multipoint Temperature Intelligent Measurement
Abstract: SCM is the usefulness of real-time detection and automatic control of the entire system belongs among the core components. This graduation design is based on single-chip design STC89C52 refrigerators control system, the main advantage of the fresh food compartment temperature sensor DS18B20 collecting refrigerator, freezer temperature can also be detected by the sensor continuously Refrigerator frost wall temperature, thick cream over dynamically calculated To a certain extent. A separate button control data input to improve the efficiency of the microcontroller operation. And LCD12864 display as the primary display data output means may matrix characters visual representation of temperature variation and dynamic display of various functional modules. STC89C52 microcontroller is a highly efficient chip, peripheral parts control signal, so as to achieve the purpose of the intelligent refrigerator. The graduation project can achieve real-time detection temperature, multi-temperature multi-control, frozen time control, compressor delay protection, open delay alarm and other functions. This is a vintage refrigerator through improved refrigeration system, refrigerator intelligent computer control system, so that we can make intelligent refrigerator reaction depending on the environment, environmental protection and energy saving, and in accordance with procedures to change the built-in expansion capabilities.
Keywords:STC89C52, Temperature control, DS18B20
目录
1.2 课题的目前研究现状………………………………….. 2
2.2 电冰箱温度控制系统主要功能和要求……………………… 3
2.3 电冰箱温度控制系统方案设计论证……………………….. 3
3.1 单片机最小系统电路………………………………….. 5
3.2 指示灯和温度显示电路……………………………….. 10
3.3 温度检测和霜厚检测电路……………………………… 14
3.4 压缩机制冷和电热丝加热除霜电路………………………. 16
4.1 系统主程序设计…………………………………….. 21
4.2 T0中断服务程序…………………………………….. 24
4.3 T1中断服务程序…………………………………….. 26
4.4 INT0中断服务程序…………………………………… 28
4.5 LCD显示程序……………………………………….. 31
4.6 DS18B20测温程序……………………………………. 33
第5章 PID控制算法设计………………………………….. 37