没有合适的资源?快使用搜索试试~ 我知道了~
本科毕业设计---基于单片机的仓储温度测控系统的设计.doc
0 下载量 122 浏览量
2023-07-09
08:26:51
上传
评论
收藏 235KB DOC 举报
温馨提示
试读
33页
本科毕业设计---基于单片机的仓储温度测控系统的设计.doc
资源推荐
资源详情
资源评论
毕业设计说明书
基于单片机的仓储温度测控系统的设计
学 院:
专 业:
学生姓名:
学 号:
指导教师:
2013 年 6 月
摘 要
摘 要
温度监测与控制是个生产工艺流程极为重要的环节,自古以来就受到人们的
关注,与人们的生活息息相关。近年来,随着社会的发展,人们对温度监控的精
度以及范围等有了更高层次的要求,无论是在工农业生产或科学研究方面,对温
度监控都尤为重要。因此对温度监控的研究设计十分必要。
本课题介绍了以 STC89C52 单片机为控制核心,DS18B20 作为传感器的集
采集、处理、显示、自动控制为一体的仓储温度测控系统。整个系统中,以 PC
作为上位机监控模块,STC89C52 单片机作为下位机控制模块,上位机与下位机
数据传输与交流以串口通信的方式进行。本文采用智能温度传感器 DS18B20 进
行温度的采集与转换,其具有测温范围宽,精度高等优点,同时具有单总线接口,
从而使得电路设计更加简洁。STC89C52 单片机具有运算速度快,处理能力强等
特点,使其在温度测控系统中成为一个极为重要的组成部分,伴随着电子技术的
发展,利用单片机进行温度测控,将成为发展趋势。该系统同时设置温度显示模
块与报警装置,可人为地控制温度上、下限,可自动调节温度,使用户可以更好
的对温度进行控制。
关键词:单片机、DS18B20、温度监控
Abstract
I
Abstract
Temperature monitoring and control is a very important part of the production
process, since ancient times by people concerned with people's lives. In recent years,
with the development of society, people on the accuracy of temperature monitoring
and scope have higher level requirements, both in industrial and agricultural
production, or scientific research, are particularly important for temperature
monitoring. So the temperature monitoring study design is necessary.
This topic introduces the STC89C52 microcontroller core, DS18B20 sensor set
as the collection, processing, display, automatic control as one of the storage
temperature monitoring system. Throughout the system, the PC as a PC monitor
module, STC89C52 microcontroller as the next-bit machine control module, the PC
and the next crew to serial data transmission and exchange of communication manner.
In this paper, intelligent sensor DS18B20 temperature acquisition and conversion,
which has a wide temperature range, high precision, but also has a single bus interface,
which makes circuit design more concise. STC89C52 microcontroller with a
computing speed, processing power and other characteristics, so that in the
temperature measurement and control systems to become a very important part, along
with the development of electronic technology, the use of single-chip temperature
measurement and control, will become a trend. The system is also set temperature
display module and alarm device, can artificially control the temperature, the lower, it
can automatically adjust the temperature, so that users can better control the
temperature.
Keywords: microcontroller, DS18B20, temperature monitoring.
目 录
II
目 录
摘 要..............................................................I
Abstract...........................................................II
目 录............................................................III
第一章 绪 论.......................................................1
1.1 课题背景及意义 .................................................1
1.2 国内外研究现状 .................................................1
1.3 研究内容 .......................................................2
1.3.1 设计指标与参数 .............................................2
1.3.2 设计目标 ...................................................2
2.1 方案选择 .......................................................3
2.2 方案论证 .......................................................4
2.3 系统工作原理概述 ...............................................5
第三章 硬件电路设计.................................................6
3.1 单片机的设计 ..................................................6
3.1.1 单片机的选择 ...............................................6
3.1.2 STC89C52 单片机功能特性 ....................................6
3.1.3 引脚功能(摘自参考目录中《单片机原理及应用》一书) ..........7
3.2 温度传感器的设计 ..............................................9
3.2.1 DS18B20 温度传感器的特点 ...................................9
3.2.2 DS18B20 引脚定义 ...........................................9
3.2.3 DS18B20 工作原理 ..........................................10
3.2.4 DS18B20 与单片机连接 ......................................11
3.3 串口通信 .....................................................12
3.4 输入模块 .....................................................12
3.5 显示电路 .....................................................13
3.5.1 数码管的选择 ..............................................13
3.5.2 LED 数码管工作原理 ........................................13
3.5.3 LED 数码管显示方式 ........................................14
3.6 蜂鸣报警器设计 ...............................................15
3.7 继电器电路设计 ...............................................16
目 录
III
3.8 电源电路设计 .................................................16
第四章 系统软件设计................................................18
4.1 软件设计原则 .................................................18
4.2 程序结构分析 .................................................18
4.3 温度信号处理子程序 ...........................................20
4.4 键盘输入模块扫描子程序 .......................................21
4.5 数码管显示子程序 .............................................22
4.6 继电器控制子程序 .............................................22
4.7 报警子程序 ...................................................23
4.8 串口通信子程序 ...............................................23
总 结.............................................................25
参考文献...........................................................26
附 录.............................................................28
剩余32页未读,继续阅读
资源评论
Mmnnnbb123
- 粉丝: 703
- 资源: 8万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功