- 12
- 0
- 约1.4万字
- 约 21页
- 2017-08-09 发布于安徽
- 举报
毕 业 设 计
摘 要:温度测量与控制在工业、农业、国防等行业有着广泛的应用。利用单片机技术的温度测控系统以其体积小,可靠性高而被广泛采用。本文对该测控系统进行了分析设计。
本设计采用支持ISP在线编程的AT89S52单片机作为主控芯片;温度采集器件采用单总线式的DS18B20数字温度传感器,读出的温度值为数字信号,电路简单,价格低廉;显示器件采用四位一体数码来适时显示采集到的温度值。
通过按键可以设置温度的上下限报警值,当温度超出设的范围时蜂鸣器鸣笛同时红色LED发光报警以提示温度超过极限设定值。
关键字:温度报警,单片机,DS18B20
Abstract:The temperature survey and the control in profession and so on industry, agriculture, national defense has the widespread application. Using monolithic integrated circuit technology temperature observation and control system by its volume small, the reliability is high but is widely used. This article has carried on the analysis design to this observation and control system.
The paper is proposed to use the online programming AT89S52 SCM as the main control chip. It’s very important in the system as the head to control the whole system. Monobus DS18B20 is used as the Temperature gathering devices to read the temperature, then the value as the digital signal to put in. This circuit has the followed advances such as the circuit is simple, lowcost, and display devices is quaternity digital LED to have better visual result. Through the buttons can set the boundary value of the temperature. What’s more, when the temperature exceeds the scope of set temperature, the buzzer and the LED would work to give an alarm.
Keywords: temperature alarm,SCM, DS18B20
目 录
1 引言 4
2 概述 4
2.1 课题研究的目的及意义 4
2.2 课题研究现状分析 5
2.3 技术指标 5
3 总体设计 5
3.1 系统设计方案论证 5
3.2 系统结构框图 6
4 系统硬件组成 6
4.1 系统结构框图 7
4.2 测温部分 11
5 系统的软件部分 14
5.1 DS18B20温度值读取部分 15
5.2 中断服务程序 16
6 系统测试 16
6.1 硬件调试 16
6.2 软件调试 17
结束语 18
致 谢 19
参考文献 20
1 引言
在工业生产中,电流、电压、温度、压力、流量、流速和开关量都是常用的主要被控参数。其中,温度控制也越来越重要。在工业生产的很多领域中,人们都需要对各类加热炉、热处理炉、反应炉和锅炉中的温度进行检测和控制。采用单片机对温度进行控制不仅具有控制方便、简单和灵活性大等优点,而且可以大幅度提高被控温度的技术指标,从而能够大大的提高产品的质量和数量。因此,单片机对温度的控制问题是一个工业生产中经常会遇到的控制问题。单片机是一种集CPU、RAM、ROM、I/O接口和中断系统等部分于一体的器件,只需要外加电源和晶振就可实现对数字信息的处理和控制。因此,单片机广泛用于现代工业控制中。随着“信息时代”的到来,作为获取信息的手段传感器技术得到了的进步,其应用领域越来越广泛,对其要求越来越高,需求越来越迫切。传感器技术已成为衡量一个国家科学技术发展水平的重要标志之一。
原创力文档

文档评论(0)