摘要:目前,随着铁路客车的高速和舒适的发展,列车车厢内环境温度越来越受到人们的重视。与普通的温度控制系统相比,旅客列车的温度控制系统具有其特殊的特性,其温度控制通常用计算机自动完成,从而可以保持列车内部的温度。62250
本次毕业设计研究了一种基于单片机的温度控制系统。它的微控制器主要是采用STC89C51单片机,采集温度的方法是采用温度传感器DS18B20。该系统有六个部分,包括DIS18B20温度测量模块,这部分进行温度数据的传输和采集;另外还能显示设定温度的上下限;复位电路模块,可以通过复位按钮;报警电路模块,当温度高于或低于设定温度时会报警;关键功能模块,通过按键输入设定温度程序,和温度的上下限设置完成。首先通过单片机将温度传感器采集的温度数据传输给单片机,单片机进行数据处理后的温度数据传送到液晶显示器LCD1602显示,在温度上下限设置中进行比较,相同的时间内,如果超过设定的温度范围,系统会启动高电平启动报警控制模块和通过继电器驱动负载工作。当温度恢复设定温度范围就会停止高输出电平时,关闭报警控制单元。
毕业论文关键词:单片机;温度传感器DS18B20;温度控制系统恒定
Design of station temperature control system
Abstract:At present, with the development of high speed and comfort of railway passenger cars, more and more attention has been paid to the environment temperature of the train. Compared with the ordinary temperature control system, the temperature control system of the passenger train has its special characteristics, and its temperature control is usually done by computer automatically, which can keep the temperature inside the train.
The graduation design and research of a microcontroller based temperature control system. Its microcontroller is mainly used STC89C51 microcontroller, the method of temperature acquisition is the use of temperature sensor DS18B20. The system has six parts, including DIS18B20 temperature measurement module, this part of temperature data collection and transmission; also can display the set temperature of the upper and lower limits; reset circuit module can through the reset button; the alarm circuit module, when the temperature is higher or lower than the set temperature alarm; key functional module, through the button to enter setting temperature program, the upper and lower limits of temperature and setup is complete. First by single - chip microcomputer temperature sensors to collect the temperature data to the microcontroller, microcontroller data processing after the temperature data sent to the LCD LCD1602 display, performed in the temperature limit set in comparison, in the same time, if exceeds the set temperature range, the system will start start alarm control module and the relay drive load level is high. When the temperature is restored to set the temperature range, the high output power is stopped, and the alarm control unit is closed.
Key Words: SCM;Constant temperature control system;Temperature sensor DS18B20
1 绪论1
1.1 课题的背景及意义 1
1.3 发展趋势2
1.4 车站温控系统中存在的问题 3
1.5 本文的主要工作3
2 硬件设计6
2.1 设计要求与方案论证6
2.1.1 设计要求 6
2.1.2 系统方案选择和论证6
2.1.3 电路设计最终方案决定 8
2.1.4 系统实现框图8
2.2.STC89C51介绍9
2.2.1 STC89C51单片机的介绍9
2.2.2 STC89C51单片机的性能参数9
2.2.3 STC89C51单片机的引脚功能说明10
2.2.4 STC89C51的最小系统11
2.3 DS18B20传感器介绍13