基于单片机的温湿度监测与控制 - 图文 联系客服

发布时间 : 星期一 文章基于单片机的温湿度监测与控制 - 图文更新完毕开始阅读893b0ff7f90f76c661371af7

重庆邮电大学本科毕业设计(论文)

摘 要

本次设计是采用MSC-51系列单片机中的AT89S51和DHT11的低成本的温湿度的检测系统。本设计主要包括硬件电路的设计和系统软件的设计。硬件电路主要包括单片机、温湿度传感器、显示模块、报警器以及键盘等5部分,由DHT11温湿度传感器及1602字符型液晶模块构成系统显示模块,该系统电路简单、工作稳定、集成度高,调试方便,测试精度高,具有一定的实用价值。其中测温湿度控制电路由温湿度传感器和预设温度值比较报警电路组成,用户根据需要预先输入预设值,当实际测量的温湿度大于预设的温湿度数值时,发出报警信号(蜂鸣器蜂鸣)。软件部分包括了主程序、显示子程序、测温湿度子程序。

本次设计采用的DHT11温湿度传感器是一款含有已校准数字输出的温湿度复合传感器,传感器包括一个电阻式感湿原件和一个NTC测温元件,并与一个高性能的8位单片机相连接。因此该产品具有品质卓越、超快响应、抗干扰能力强、性价比极高等优点。单片机AT89S51是一款低消耗、高性能的CMOS8位单片机,由于它强大的功能和低价位,因此在很多领域都是用它。

【关键词】 温度测量 湿度测量 AT89S51 DHT11

I

重庆邮电大学本科毕业设计(论文)

ABSTRACT

This design is the use of MSC-51 Series MCU AT89S51 and DHT11 in the low-cost temperature and humidity 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 character 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 circuit, 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 humidity

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. Therefore, the product has excellent quality, fast response, anti-interference ability, high cost and other advantages. AT89S51 is a low consumption of item-level, high-performance CMOS8 bit microcontroller, because of its powerful features and low price, so use it in many fields.

【Key words】Temperature measurement Humidity measurement AT89S51 DHT11

II

重庆邮电大学本科毕业设计(论文)

目 录

前 言.......................................................... - 1 - 第一章 工具简介................................................ - 4 -

第一节C语言 ................................................ - 4 -

一、C语言的优点 ......................................... - 4 - 二、C语言的缺点 ......................................... - 4 - 第二节 Proteus .............................................. - 4 - 第三节 Protel ............................................... - 5 -

一、软件特色............................................. - 5 - 二、仿真特点............................................. - 5 - 第四节 本章小结 ............................................. - 5 - 第二章 设计任务分析及方案论证.................................. - 6 -

第一节 设计任务要求和温湿度控制的发展 ....................... - 6 -

一、设计过程及其工艺要求................................. - 6 - 二、设计温湿度计的根据和意义............................. - 6 - 三、露点意义............................................. - 7 - 第二节 设计总体方案及其方案论证 ............................. - 7 -

一、设计总体方案及其论证................................. - 7 - 二、器件选定............................................. - 8 - 第三节 本章小结 ............................................ - 18 - 第三章 硬件设计............................................... - 19 -

第一节 主控制电路和测温时控制电路 .......................... - 19 - 第二节 主要模块的电路 ...................................... - 20 -

一、系统的蜂鸣器电路.................................... - 20 - 二、晶振电路............................................ - 21 - 三、显示电路............................................ - 22 - 四、传感器电路.......................................... - 23 - 五、复位电路............................................ - 23 - 第三节 本章小结 ............................................ - 24 - 第四章 软件设计............................................... - 25 -

第一节 系统流程图 .......................................... - 25 -

III

重庆邮电大学本科毕业设计(论文)

第二节 编程思想 ............................................ - 26 - 第三节 本章小结 ............................................ - 26 - 结 论......................................................... - 27 - 致 谢......................................................... - 28 - 参考文献....................................................... - 29 - 附 录......................................................... - 30 -

一、英文原文 ............................................... - 30 - 二、英文翻译 ............................................... - 36 - 三、源程序 ................................................. - 41 - 四、proteus 运行结果 ....................................... - 53 -

IV