基于单片机的温度检测系统摘要随着时代的进步和进展,单片机技术已经普及到我们生活,工作,科研,各个领域,已经成为一种比较成熟的技术。单片机在温度检测方面得到广泛应用。本文将介绍一种基于单片机控制的数字温度计,提出一种基于单片机并采纳数字化温度测控系统应用于室温检测的设计方案,该方案是利用温度传感器将室内温度的变化,变换成电压的变化,其值由单片机处理,最后由单片机去控制数字显示器,显示室内的实际温度。该系统具有温度上、下限报警功能。本文从硬件和软件两方面详细叙述了基于 AT89C51 的温度检测系统,该系统以 DS18B20 为温度检测装置,并附加了温度显示和超温报警功能。温度采集传感器 DS18B20 直接以单线连接的方式进行信号传输,采纳数字化数据传送方式大大提高了系统的抗干扰性。因此,数字化单总线器件 DS18B20 适合于各种环境的现场温度测量。它在测温精度、转换时间、传输距离、分辨率等方面较以前的温度传感器都有了很大的改进,系统具有结构简单,运行可靠,误差小,且成本低廉等特点。本文还对 AT89C51 及 DS18B20 进行了详细的叙述,并对系统原理进行了认真分析。关键词 单片机;传感器;温度测量Based on single-chip temperature detection systemAbstractWith 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 microcomputer-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 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 AT...