1、 毕 业 论 文(设 计) 题 目 基于单片机的室内温湿度计的设计 二一 三 年 五 月 十九 日 内 容 摘 要 本次设计是采用 MSC-51 系列单片机中的 STC89C52 和 DHT11 的低成 本的温湿度的检测系统。本设计主要包括硬件电路的设计和系统软件的 设计。硬件电路主要包括单片机、温湿度传感器、显示模块、报警器以 及键盘等 5 部分,由 DHT11 温湿度传感器及 1602 字符型液晶模块构成系 统显示模块,该系统电路简单、工作稳定、集成度高,调试方便,测试 精度高,具有一定的实用价值。其中测温湿度控制电路由温湿度传感器 和预设温度值比较报警电路组成,用户根据需要输入预设值,当
2、实际测 量的温湿度大于预设的温湿度数值时,发出报警信号(蜂鸣器蜂鸣,led 灯亮) 。软件部分包括了主程序、显示子程序、测温湿度子程序。本次设 计采用的 DHT11 温湿度传感器是一款含有已校准数字输出的温湿度复合 传感器,传感器包括一个电阻式感湿原件和一个 NTC 测温元件,并与一 个高性能的 8 位单片机相连接。 关键词关键词 温度测量; 湿度测量; STC89C52; DHT11 Abstract This design is the use of MSC-51 Series MCU STC89C52 and DHT11 in the low-cost temperature and h
3、umidity detection system. This design includes the design of hardware and system software design. Hardware circuit includes a microcontroller, temperature and humidity sensors, display module, the alarm and the keyboard 5, the DHT11 temperature and humidity sensor and 1602 constitute a system of cha
4、racter LCD module display module, the system circuit is simple, stable, high integration, commissioning Convenient, high precision, has some practical value. Temperature and humidity control circuit in which the temperature and humidity sensors and compare the value of the preset temperature alarm c
5、ircuit, the user input required pre-default value, when the actual temperature and humidity measurements of temperature and humidity is greater than the preset value, an alarm signal (bee Buzzer beep). Software part includes the main program, display routines, subroutines side temperature and humidi
6、ty。The design uses the DHT11 temperature and humidity sensors is a digital output with a calibrated temperature and humidity combined sensor, the sensor includes a resistance and a sense of the original wet NTC temperature measurement devices, and with a high-performance 8-bit microcontroller connected. Key words Temperature measurement; Humidity measurement;STC89C52; DHT11 目 录 第一章 绪 论 . - 1 - 1.1 研究背景及意义 . - 1 - 1.2 研究要实现的功能 . - 1 - 第二章 设计分析及方案论 . - 3 - 2.1 设计总体方案及方案论证