- 1、本文档共22页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于51单片机的温度报警系统设计推荐
毕 业 设 计
学生姓名 学 号 系 (部) 机电工程系 专 业 机电一体化 题 目 基于51单片机的温度报警系统设计
指导教师 )
2011 年 6 月
摘 要:温度测量与控制在工业、农业、国防等行业有着广泛的应用。利用单片机技术的温度测控系统以其体积小,可靠性高而被广泛采用。本文对该测控系统进行了分析设计。
本设计采用支持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)