基于单片机的多点温度检测系统 -大学毕业论文

西南科技大学本科生毕业论文 Ⅰ

基于单片机的多点温度检测系统

【摘要】

温度是一个和人们息息相关的物理量,温度的变化会给我们带来重大的影响,因此对温度的检测控制非常重要,其检测控制一般使用各式各样的传感器。

本设计使用的是DS18B20,它是一种可组网的高精度数字式温度传感器,由于其具有单总线的独特优点,可以使用户轻松地组建起传感器网络,并可使多点温度测量电路变得简单、可靠。本文结合实际使用经验,介绍了DS18B20数字温度传感器在单片机下的硬件连接及软件编程,并给出了软件流程图

该系统由上位机和下位机两大部分组成。下位机实现温度的检测并提供标准RS232通信接口,芯片使用了ATMEL公司的AT89C51单片机和DALLAS公司的DS18B20数字温度传感器。上位机部分使用了通用PC。该系统可应用于仓库测温、楼宇空调控制和生产过程监控等领域

【关键字】:温度测量;单总线;数字温度传感器;单片机

1

西南科技大学本科生毕业论文 Ⅱ

【Abstract】

Temperature is a physical quantity and the people closely linked, the changes in temperature will bring significant influence to us, so the detection of the temperature control is very important, the general use of every kind of sensor detection and control.

This design is the use of DS18B20, it is a high precision digital temperature sensor network, because of its unique advantages of single bus, users can easily set up a sensor network, and can make the multi-point temperature measurement circuit is simple, reliable and become. In this paper, combining with practical experience, introduces the hardware of digital temperature sensor DS18B20 with single chip and software programming, and gives the software flow chart

The system consists of host computer and slave computer of two parts. Lower machine to achieve the temperature detection and

provide standard RS232 communication interface chip, use DS18B20 digital temperature sensor AT89C51 chip of ATMEL company and the DALLAS company. PC part using the generic PC. The system can be applied to the storage temperature, building air conditioning control and production process monitoring and other fields

【 key words 】: temperature measurement, Single bus, Digital temperature sensor, singlechip

2

西南科技大学本科生毕业论文 Ⅲ

目录

【摘要】........................................................................................................................ 1 一、绪论........................................................................................................................ 4 1.1 系统背景 ...................................................... 4 1.2 系统概述 ...................................................... 4 二、方案论证................................................................................................................ 5 2.1 传感器部分 .................................................... 5 2.2 主控制部分 .................................................... 6 2.3 系统方案 ...................................................... 7 三、硬件设计................................................................................................................ 8 3.1 主控制器 ...................................................... 8 3.2 温度传感器 ................................................... 12 3.3 温度测试电路 ................................................. 17 3.4 键盘与显示电路 ............................................... 18 3.5 电源以及看门狗电路 ........................................... 26 四、软件设计.............................................................................................................. 29 4.1 概述 ......................................................... 29 4.2 程序设计 ..................................................... 29 五、结语...................................................................................................................... 32 参考文献...................................................................................................................... 33 致谢.............................................................................................................................. 34 附录............................................................. 35 附录一:温度测试子程序流程图..................................... 33 附录二 主电路电气原理图 .......................................... 34

3

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4