1 / 33
文档名称:

毕业设计(论文)-基于DS18B20数字温度计的设计.doc

格式:doc   页数:33
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

毕业设计(论文)-基于DS18B20数字温度计的设计.doc

上传人:3346389411 2013/3/21 文件大小:0 KB

下载得到文件列表

毕业设计(论文)-基于DS18B20数字温度计的设计.doc

文档介绍

文档介绍:基于DS18B20数字温度计的设计

姓名: 学号: X 指导老师:
摘要
文章介绍了单线数字温度传感器DS18B20的测量原理、特性以及在温度测量中的硬件和软件设计。
讨论了单总线通信时序问题,最后以单总线器件DS18B20多点温度测量的应用为例,给出了单总线的数据读写方法。DS18B20用于多点测温时,同时将多个DS18B20挂在微处理器总线上采集数据,并通过串口传送至PC机。
本文结合实际使用经验,介绍了DS18B20数字温度传感器在单片机控制下的硬件连接及软件编程,并给出了软件流程图。下位机实现温度的检测并提供标准RS232通信接口,芯片使用了ATMEL公司的AT89S52单片机和DALLAS公司的DS18B20数字温度传感器。
该系统稳定性好,可应用于仓库测温、楼宇空调控制和生产过程监控等领域。
关键词: DS18B20 测温单总线
Multi-points Temperature Measurement Based on DS18B20
ABSTRCT: The theory and characteristics of DS18B20, the hardware and software design of the system were introduced in this article.
The problem of the single-munication timing is discussed. Finally, the multi-point temperature measurement application and the way of the single-bus data transmission were proposed. Some DS18B20s were linked with MCU bus to collect data, and the data was sent to puter by the serial-port when DS18B20 was used for multi-point temperature measure. The hardware and software design of DS18B20 Digital Temperature Sensor which was controlled in the MCU were introduced and the Software flowchart was proposed by practical experience in this paper. PC and the municated though the Serial port.
Because of its stability, it can be used in many fields.
Keywords: DS18B20; Temperature Measurement; 1-wire
目录
摘要 I
第1章引言 1
选题背景 1
系统概述 1
第2章温度检测系统 2
传感器部分 2
主控制部分 2
总体设计方案 3
主控制器 4
显示电路 4
第3章 DS18B20的知识及原理 5
DS18B20的基本知识 5
DS18B20测温原理 5
DS18B20内部结构 6
DS18B20工作过程 9
DS18B20的命令 9
. DS18B20的时序 10
DS18B20供电方式 11
第 4章系统设计与实现 13
系统整体硬件电路 13
主板电路 13
DS18B20与AT89S52硬件连接及软件编程 13
DS18B20温度传感器与单片机的接口电路 16
程序设计 17
主程序 17
读出温度子程序 18
温度转换命令子程序 19
20
20
21
第5章调试及总结体会 26
调试及结果 26
总结体会 26
致谢 28
参考文献 29
第1章引言
选题背景
温度是工业中非常关键的一项物理量,在农业、现代科学研究和各种高新技术的开发和研究中也是一个非常普遍和常用的测量参数。温度测量的原理主要是将随温度变化而变化的物理参数,如膨胀、电阻、电容、热电动势、磁性、频率、光学特性等通过温度传感器转变成电的信号或其他信号,然后再传给处理电路