摘要:很多行业都有对温度的控制设备,如用于报警的温度自动报警系统,热处理的加热炉及各种不同用途的温度箱,化学用品的提炼,工业上金属的冶炼等,稍有温度上的误差就有可能酿成无法想象的后果。因此对温度的测量及控制的研究具有非常重要的意义。现今,单片机以它的便捷、灵活、廉价等特点被广泛地采用。本文提出一种基于51单片机的温度控制系统进而对温度进行实时的检测与控制。由温度传感器采集温度,数码管显示。设计中温度设置为常温,上下跳转温度为1℃。当温度低于设定下限温度时,绿灯亮,当温度高于设定上限温度时,红灯亮,温度在上下限温度之间时,执行机构不执行。64412
毕业论文关键词:温度检测系统,单片机,温度传感器
Abstract: In real life,many industries have the temperature control equipment, such as automatic alarm alarmsystem for temperature, heat treatment furnace and various application temperature, refinedchemical products, metal smelting industry, a slight error in temperature. It may lead tounimaginable consequences. So the research on the measurement and control of temperature is very important, in the military defense and environmental monitoring andsupervision of industrial and agricultural use can better get the expected results.
Nowadays, with MCU it's convenient, flexible and low-cost, widely used features. This paper presents a 51 single-chip temperature control system and real-time detection and control oftemperature based on. The temperature acquisition temperature sensor, digital display. The temperature is set at room temperature in the design, under the temperature of 1 DEG jump.When the temperature is lower than the set temperature limit, the green light, when the temperature is higher than the set upper limit temperature, light, temperature between upper and lower temperature, the actuator doer not perform.
Keywords: Temperature detection system, microcontroller, temperature sensor
1 前言 4
1.1 温度控制系统设计发展历史及意义 4
1.2 温度控制系统的目的 4
1.3本系统的功能 4
2.总体设计方案 5
2.1 方案1 5
2.2 方案2 5
2.3 两种方案对比 6
3.硬件电路简介 7
3.1 DS18B20简介 7
3.1.1 DS18B20封装与引脚 7
3.1.2 DS18B20的参数 8
3.2 DS18B20的工作原理 8
3.3 DS18B20的测温原理 9
3.3.1 测温原理 9
3.3.2 DS18B20的温度采集 11
3.4 单片机接口设计 11
3.4.1单片机接口设计原则 11
3.4.2 单片机引脚连接 12
3.4.2.1 单片机引脚图 12
3.4.2.2串口引脚 12
4. 硬件电路设计 13
4.1主要硬件电路设计 13
5.软件系统设计 16
5.1软件系统设计 16
5.2程序组成 17
结束语