基于单片机的室内环境监测仪的设计毕业设计论文

  • 格式:doc
  • 大小:561.00 KB
  • 文档页数:52

. .

.页脚 基于单片机的室环境监测仪的设计

摘 要

本系统满足室环境变量实行全面、实时、长期监测的要求, 实现室环境温湿度、可燃气体浓度检测的自动化和智能化。系统以单片机为核心,以温度、湿度传感器,气敏传感器作为测量元件,通过单片机与智能传感器相连,采集并存储智能传感器的测量数据,经过分析处理将结果显示于LCD液晶屏。在单片机系统中,还要实现超限报警和数据辅助存储功能。

本设计主要做了如下几方面的工作:一是确定系统的总体设计方案:包括系统应具备的功能、达到的技术指标、系统的设计原则;二是整个系统和各个模块的硬件和软件的设计:传感器的静动态特征分析使用、使用单总线技术的SHT11数字温湿度传感器的测温湿电路以及程序设计、使用气敏传感器MQ211进行数据采集的电路以及程序设计;三是报警、按键的电路和程序设计。

该设计对室温湿度实现了检测与显示,而对CO和甲烷等有害气体完成超标报警,为人们的生活、娱乐及公共场所的环境提供了一种有效的防护系统。

关键词:单片机,STC89C52,SHT11,温湿度监测,MQ211,室环境

MCU-BASED INDOOR EVENVIRONMENTAI MONITORING SYSTEM

. .

.页脚 ABSTRACT

The system meets the implementation of a comprehensive indoor

environmental variable, real-time, long-term monitoring

requirements. System microcontroller core, temperature, humidity

sensors, gas sensors as measuring devices, smart sensors through the

MCU and connect smart sensors collect and store measurement data,

through analyzing and processing the results shown in the LCD liquid

crystal screen. In the SCM system, but also assisted to achieve

over-limit alarm and data storage capabilities.

This design made the following main aspects of work:First,

determine the system's design program: including system should have

functions to the technical specifications, system design

principles;Second, the whole system and each module of the hardware

and software design: static and dynamic characteristics of the

sensor to use, single-bus technology SHT11 digital temperature and

humidity sensors measuring temperature and humidity circuit and

program design, use of gas sensor data acquisition MQ211 circuit and

program design;Third alarm, circuit and button programming.

The design of the indoor temperature and humidity to achieve the

detection and display, while CO and methane, and other harmful gases

to complete excessive alarm, as the people's life, entertainment and

public places to provide an effective environmental protection

system.

KEY WORDS:Single-chip microcomputer, STC89C52, SHT11, monitoring

of temperature and humidity, MQ211, indoor environment

. .

.页脚 学位论文原创性声明

本人重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。除了文中特别加以标注引用的容外,本论文不包含任何其他个人或集体已经发表或撰写的成果作品。对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。本人完全意识到本声明的法律后果由本人承担。

作者签名: 日期: 年 月 日

学位论文使用授权书

本学位论文作者完全了解学校有关保留、使用学位论文的规定,同意学校保留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权 大学可以将本学位论文的全部或部分容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。

涉密论文按学校规定处理。

作者签名: 日期: 年 月 日

导师签名: 日期: 年 月 日 . .

.页脚 目 录

前 言 ................................................. 1

第1章 室环境的监控系统 ............................... 2

1.1课题涵义 ........................................ 2

1.2 方案设计 ........................................ 2

1.2.1 硬件设计 .................................. 3

1.2.2 软件设计 .................................. 4

第2章 硬件电路设计 ................................... 6

2.1 CPU模块 ........................................ 6

2.1.1 芯片管脚连接 .............................. 6

2.1.2 芯片管脚说明 .............................. 6

2.1.3 晶振和复位电路 ............................ 8

2.2 气体传感器与模数转换模块 ........................ 9

2.2.1 气敏传感器的特点和使用 ................... 10

2.2.2 气敏传感器的连接 ......................... 11

2.3 温度湿度传感器模块设计 ......................... 12

2.3.1 SHT11温湿度简介 .......................... 12

2.3.2 SHT11的引脚功能 .......................... 13

2.3.3 SHT11的部结构和工作原理 .................. 13

2.3.4 SHT11应用与连接电路 ...................... 14

2.3.5 温度和湿度值的计算 ....................... 15

2.4 LCD显示模块设计 ............................... 16

2.4.1 LCD特点 .................................. 17

2.4.2 LCD的管脚 ................................ 18

2.4.3 LCD的连接电路 ............................ 18

2.5 按键电路块 ..................................... 19

2.6 报警电路模块设计 ............................... 20

第3章 软件设计 ...................................... 21

3.1软件系统设计 ................................... 21 . .

.页脚 3.2 主程序设计 ..................................... 22

3.3 LCD1602显示模块程序设计 ....................... 23

3.4 SHT11温湿度测量模块程序设计 ................... 24

3.5 系统程序设计 ................................... 24

结 论 ................................................ 25

辞 .................................................. 26

参考文献 .............................................. 27

附 录 ................................................ 28

附录1:系统硬件仿真电路图 .......................... 28

附录2:程序代码 .................................... 29

外文资料翻译 .......................................... 42