1、 本科毕业设计 (自然科学) 2011 年 5 月 25 日 本科毕业设计本科毕业设计 室温检测系统的设计室温检测系统的设计 20112011 年年 5 5 月月 1212 日日 摘 要 I 摘 要 为了达到测量和检测多处温度值,就要求主系统连接多个温度传感器,由于主系统 和配件之间连接器上的空闲引脚通常极为有限,要想在不增加连接器复杂度和成本的条 件下给系统增加外设识别和控制功能就成为一项极具挑战性的任务。作为拥有 1-Wire 的 DS18B20 器件能够满足这些要求。本文介绍一种基于数字温度传感器 DS18B20 的主从 分布式多路测温系统、 该系统以 PC 为主机, 采用 ATMEL
2、公司的 AT89C52 单片机做从机, 二者之间通过 MAX232 通讯总线连接,数字温度传感器通过与单片机 P3.0 至 P3.3 分别 连接,系统结构简单,抗干扰能力强,适合于恶劣环境下进行现场温度测量,可应用于 仓库测温、楼宇空调控制制和生产过程监控等领域。 关键词:DS18B20;数码显示;温度测量。 Abstract In order to achieve measurement and testing various temperature, It requires the main system linked to a number of temperature sensors,
3、 As the main system and accessories between the connector pins are usually very limited spare, not to increase the connector complexity and cost of the conditions to increase the peripheral system to identify and control has become one of the greatest challenges of task. As with 1-Wire the DS18B20 d
4、evice can meet these requirements. This paper introduces a digital temperature sensor DS18B20 based on the master-slave distributed multi-channel temperature measuring system, this system to PC for host, adopt the AT89C52 single chip computer ATMEL company between them from the machine, MAX232 communications bus connections, through digital temperature sensor through P3.0 to P3.3 respectively with MCU, system structure is simple, connect anti-jamming ability, suitable for harsh environment te