文档介绍:目录
摘要 1
引言 1
1 器件简介 2
AT89S52简介 2
主要性能 2
引脚说明 3
DS18B20简介 5
主要特性 5
DS18B20的外形和内部结构 6
DS18B20引脚定义 7
2 系统设计 7
7
功能要求 7
设计方案 7
方案论证 8
总体设计框图 8
系统硬件设计 8
3 程序设计 10
下位机程序 10
DS18B20读写模块 10
数码管显示模块 11
RS232串口通讯模块 12
上位机程序 12
串口初始化 12
串口触发接收程序 13
界面设计和数据分析统计程序 14
结束语 15
附录 16
致谢 30
作者简介 31
声明 31
基于51单片机的温度数据采集系统
信息管理与信息系统
[摘要]温度是一种被广泛应用于生产和生活的重要的物理量。在许多应用领域,研制适当和高效的测温系统是十分必要的。本文结合实际使用经验,设计了一个基于51单片机和DS18B20温度传感器的近距离温度数据采集系统。该系统主要包括:温度传感器、单片机与PC RS232串行接口通讯、VB程序、模数转换等部分。在本文设计的中,为了实现人机对话和及时了解系统的运行状况,特给本系统增加了告警功能。该系统可应用于仓库测温、楼宇空调控制和生产过程监控等领域。
[关键词]温度测量;DS18B20;单片机;Visual Basic;
The temperature data acquisition system based 51 MCU
Information Management and Information System MO Cong
Abstract:Temperature is an important physical quantity that widely used in production and living. In many applications, it's very necessary to develop appropriate and efficient temperature measuring system. Combining with the actual using experience, this article introduces a short distance temperature data acquisition system which designs based on 51MCU and DS18B20. This system mainly includes temperature sensor, MCU, PC RS232 Serial interface, VB programming, and DAC. In this design, in order to realize the man-machine dialogue and prompt understanding the operation status of the system, which added an alarm function in this system. This system can be used in warehouse temperature measurement, building air conditioning control, and production process monitoring, etc.
Key words:temperature Measurement;DS18B20;MCU;Visual Basic
引言
在生产和日常生活中,温度的测量及控制十分重要。实时温度检测系统在各个方面的应用十分广泛:消防电气的非破坏性温度检测,大型电力、通讯设备的过热故障预知检测,空调系统的温度检测,各类机械组件组件的过热预警,医疗相关设备的温度测试…等等【1】。由此可见实时温度检测系统应用十分广阔。
随着科学技术的飞速发展,电子学的发展也越来越快,带动了大批相关产业的发展,其应用范围也越来越广泛。如今,计算机的使用领域已经扩展到了各个行业,在这种形势下,要想适应当今社会需求,就必须设计一种基于PC技术的新式电子仪器,以满足社会更高层次的需求。近年来,单片机发展同样十分迅速,一个以嵌入式微机应用为主的新技术革命浪潮正在蓬勃兴起,单片机已经