1、5151 单片机温度测量与控制系统单片机温度测量与控制系统 摘 要 随着现代信息技术和工农业的快速发展, 单片机技术已经普及到 我们生活、 工作、 科研、 各个领域, 已经成为一种比较成熟的技术, 本 文主要介绍了一个基于 51 单片机的测温系统,详细描述了利用数字 温度传感器 DS18B20 开发测温系统的过程, 重点对传感器在单片机下 的硬件连接,软件编程以及各模块系统流程进行了详尽分析,对各部 分的电路也进行了介绍,该系统可以方便的实现实时温度采集和显示, 并可根据需要设定上下限报警温度, 它使用起来相当方便,具有精度 高、量程宽、灵敏度高、体积小、功耗低等优点,适合于我们日常生 活和工
2、、 农业生产中的温度测量,也可以当作温度处理模块嵌入其它 系统中,作为其他主系统的辅助扩展。DS18B20 与 51 单片机结合实 现最简温度检测系统,该系统结构简单,抗干扰能力强,适合于恶劣 环境下进行现场温度测量,有广泛的应用前景。 关键字: 51 单片机、温度、DS18B20、数码管、 C51 Abstract With the rapid development of modern information technology and industry and agriculture, microcontroller technology has spread to our life,
3、 work, scientific research, each domain, has become a relatively mature technology, this paper introduces a temperature measurement system based on 51 single chip, detailed description of the use of digital temperature sensor DS18B20 temperature measurement system development, key the connection to
4、the sensor under the SCM hardware, software programming and system flow of each module are analyzed in detail, on the part of the circuit are introduced, the system can easily achieve the real-time temperature acquisition and display, and can according to need to set the alarm temperature, it is ver
5、y convenient to use, has high accuracy, Liang Chengkuan, high sensitivity, small volume, low power consumption, suitable for our daily lives and industrial, agricultural production in the temperature measurement, which can also be used as a temperature processing module embedded in other systems, as
6、 other auxiliary system. DS18B20 and 51 microcontroller with temperature detection system to achieve the most simple, the system has the advantages of simple structure, strong anti-interference ability, suitable for on-site temperature measurements in harsh environment, has the widespread application prospect. Key words: The 51 single chip microcomputer、 Temperature、 DS18B20、 Digital tube、C51 目 录 第1章 概论1 1.1 设计背景1 1.2 总体设计2 1.3