1、 xx大学学士学位论文 - I - 基于单片机的温度检测系统基于单片机的温度检测系统 摘要摘要 随着时代的进步和发展,单片机技术已经普及到我们生活,工作,科研, 各个领域,已经成为一种比较成熟的技术。单片机在温度检测方面得到广泛应 用。本文将介绍一种基于单片机控制的数字温度计,提出一种基于单片机并采 用数字化温度测控系统应用于室温检测的设计方案,该方案是利用温度传感器 将室内温度的变化,变换成电压的变化,其值由单片机处理,最后由单片机去 控制数字显示器,显示室内的实际温度。该系统具有温度上、下限报警功能。 本文从硬件和软件两方面详细叙述了基于 AT89C51 的温度检测系统,该系 统以 DS1
2、8B20 为温度检测装置,并附加了温度显示和超温报警功能。温度采集 传感器 DS18B20 直接以单线连接的方式进行信号传输,采用数字化数据传送方 式大大提高了系统的抗干扰性。因此,数字化单总线器件 DS18B20 适合于各种 环境的现场温度测量。它在测温精度、转换时间、传输距离、分辨率等方面较 以前的温度传感器都有了很大的改进,系统具有结构简单,运行可靠,误差 小,且成本低廉等特点。本文还对 AT89C51 及 DS18B20 进行了详细的叙述, 并对系统原理进行了仔细分析。 关键词关键词 单片机;传感器;温度测量 xx大学学士学位论文 - II - Based on single-chip
3、 temperature detection system Abstract With the progress and development, single-chip technology has spread to our lives, work; research in various fields has become a relatively mature technology. Single-chip temperature testing is widely used. This article will introduce the single- chip microcomp
4、uter-based control of a digital thermometer, and a single-chip digital- based temperature measurement and control system used in the design of room temperature detection program, which is the use of the indoor temperature sensor to temperature change, transform into changes in voltage, and its value
5、 from single-chip processing, and finally by the single-chip microcomputer to control the digital display shows actual room temperature. The system has a temperature, the lower limit alarm function. In this paper, both hardware and software described in detail the temperature AT89C51-based detection
6、 system to DS18B20 device for temperature detection and temperature display and an additional over-temperature alarm function. Acquisition sensors temperature DS18B20 connect directly to the way one-way signal transmission, the use of digital data transmission system greatly enhanced the anti- interference. Therefore, the number of single-bus device DS18B20 environment suitable for all kinds of temperature measurements at the scene. In the temperature measurement accuracy, conversion time, trans