1、 I 基于单片机的室内环境监测仪的设计 摘 要 本系统满足室内环境变量实行全面、实时、长期监测的要求, 实现室 内环境温湿度、可燃气体浓度检测的自动化和智能化。系统以单片机为核 心,以温度、湿度传感器,气敏传感器作为测量元件,通过单片机与智能 传感器相连,采集并存储智能传感器的测量数据,经过分析处理将结果显 示于 LCD 液晶屏。在单片机系统中,还要实现超限报警和数据辅助存储功 能。 本设计主要做了如下几方面的工作:一是确定系统的总体设计方案: 包 括系统应具备的功能、达到的技术指标、系统的设计原则;二是整个系统 和各个模块的硬件和软件的设计:传感器的静动态特征分析使用、使用单 总线技术的 S
2、HT11 数字温湿度传感器的测温湿电路以及程序设计、使用气 敏传感器 MQ211 进行数据采集的电路以及程序设计;三是报警、按键的电 路和程序设计。 该设计对室内温湿度实现了检测与显示,而对 CO 和甲烷等有害气体完 成超标报警,为人们的生活、娱乐及公共场所的环境提供了一种有效的防 护系统。 关键词:单片机,STC89C52,SHT11,温湿度监测,MQ211,室内环境 II MCU-BASED INDOOR EVENVIRONMENTAI MONITORING SYSTEM ABSTRACT The system meets the implementation of a comprehen
3、sive 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
4、 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 systems design program: including system should have functions to the technica
5、l 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 progra
6、m 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 peoples life, entertainment and public places to provide an effective environmental protection system. KEY WORDS: Single-chip microcomputer, STC89C52, SHT11, monitoring of temperature and humidity,