基于单片机的温湿度检测系统的设计摘要:随着时代的进步,温度和湿度是监控许多对象过程中时常遇到的测量数据。本文介绍了设计温湿度计的基本方法与测量原理,其组成部件主要是单片机。本系统能通过随时随地测评温湿度并设置温湿度上下限,完成温湿度的数据采集、数据处理和数据显示。经过实验检测显示,该设计对温湿度的控制有方便实用、操作易懂的特点,提升了被控对象的各项技术指标。关键词: 单片机;温度测量;湿度测量Design of Temperature and Humidity Detection System Based on Single Chip MicrocomputerAbstract: With the progress of time, temperature and humidity measurement data monitoring process many objects often encountered. This article describes the basic design principle of the measurement method of the hygrometer, which is mainly composed of parts. The system can go and evaluation of temperature and humidity set upper and lower limits of temperature and humidity, temperature and humidity to complete the data acquisition, data processing and data display. Experimental results show the detection, convenient and practical design for the control of temperature and humidity, to understand the operation characteristics, enhance the technical indicators controlled object.Key words: Single chip microcomputer; Temperature measurement; Humidity measurement目录1 引言1.1 课题背景1.2 课题研究的目的和意义1.3 国内外测温湿技术及单片机发展现状2 系统总体方案设计2.1 系统的设计指标2.2 系统的实现原理2.3 系统的实现方案分析3 系统硬件设计3.1 系统总体结构3.2 单片机简介3.3 DS18B20 和 HS1101 简介3.3.1 温度传感器 DS18B20 的引脚介绍3.3.2 DS18B20 内部结构与特点3.3.3 DS18B20 温度测量通信协议3.4 系统硬件设计3.4.1 复位电路模块3.4.2 报警电路模块3.4.3 显示电路模块3.4.4 按键电路模块3.4.5 温度检测电路模块3.4.6 湿度检测电路模块4 系统软件设计4.1 系统主程序设计4.2 DS18B20 和 HS1101 初始化子程序4.3 DS18B20 和 HS1101 读取温湿度子程序4.4 显示数据处理子程序4.5 按键扫描子...