170907073谢欢欢--论文--基于protues的温湿度测量系统设计 - 图文 下载本文

毕业论文

学生姓名 学

谢欢欢

学 号

170907073

物理与电子电气工程学院

电子信息工程

专 业

题 目 基于PROTUES的温湿度测量系统设计

指导教师 付 浩 副教授

2013 年 5 月

淮阴师范学院毕业论文

摘 要:本文采用Protues7.5仿真软件设计以低功耗STC89C51单片机为核心,配置新式的微型低功耗传感器DHT11,使用液晶显示LED1602采集到的数据,实现了温度、湿度两个参数的采集、处理和显示等功能。文章以温室环境作为研究对象,介绍了温湿度温湿度测量电路、单片机外围电路、软件流程、汇编语言源程序的设计、数据采集系统的设计过程及仿真的实现方法。该方法可以提高系统的开发效率、缩短周期和降低成本,为单片机系统的开发提供了手段。结果表明,所设计环境参数温度控制精度稳定在O.1℃范围之内,湿度的误差可控制在±2.0%RH以内。

关键词:Protues,STC89C51,DHT11,LED1602,温度,湿度

1

淮阴师范学院毕业论文

Abstract: By Protues7.5 simulation software design for low power STC89C51 microcontroller as the core, the allocation of new low-power micro-sensors DHT11, using liquid crystal display LED1602 data collected, realizing the collection of temperature, humidity, two parameters, processing and display functions. Based on greenhouse environment as the research object, this paper introduces the temperature and humidity temperature and humidity measuring circuit, microcontroller peripheral circuit, software flow, assembly language source program design, the design process of the data acquisition system and the realization of the simulation method. The method can improve system development efficiency, shorten the cycle and reduce costs, provides a means for the development of single-chip microcomputer system. Results show that the design of environmental parameters, temperature control precision is stable in o. 1 ℃, humidity of the error can be controlled within + / - 2.0% RH.

Key words: Protues, STC89C51, DHT11, LED1602, temperature and humidity

2

淮阴师范学院毕业论文

目 录

1 前言 .......................................................... 4 2 整体方案设计 .................................................. 4 2.1 温湿度测量测量系统的基本构成 ................................ 4 2.2 温湿度测量系统原理 .......................................... 5 2.3 系统框图 .................................................... 5 3 硬件电路设计 .................................................. 5 3.1 温湿度传感器模块 ............................................ 5 3.1.1 DHT11简介 ................................................ 6 3.1.2 传感器性能说明 ............................................ 6 3.1.3 接口说明 .................................................. 7 3.1.4 电源引脚 .................................................. 7 3.1.5 串行接口 .................................................. 7 3.1.6 测量分辨率 ................................................ 9 3.2 LCD显示模块 ................................................ 8 3.2.1 LCD1602简介 .............................................. 8 3.2.2 LCD1602接口电路 ......................................... 11 3.3 电源模块 ................................................... 11 3.4 单片机STC89C51模块 ........................................ 12 4 系统软件设计 ................................................. 15 4.1 系统程序设计方案 ........................................... 15 4.2 系统流程图 ................................................. 15 4.2 系统主要程序 ............................................... 15 5 系统仿真与调试 ............................................... 18 5.1 仿真结果 ................................................... 18 5.2 实验数据记录 ............................................... 20 结论 ............................................................ 21 参考文献 ........................................................ 22 致谢 ............................................................ 23

3