基于单片机的室内空气质量检测系统设计_kaic

简介: 基于单片机的室内空气质量检测系统设计_kaic

目录

设计总说明

Instruction

1 绪论

1.1 设计背景及意义

1.2 国内外现状

1.3 设计内容及要求

2 室内空气质量标准及改善方式

2.1 室内空气质量标准参数

2.2 室内空气品质监测方法

2.3 改善空气品质方法

3.1 各模块电路的方案选择和讨论证明

3.1.1 单片机模块的选取和讨论

3.1.2 气体传感器选用

3.1.2 天然气浓度监测部分的选择和论证

3.2 总体电路设计概述

4 系统硬件设计

4.1 硬件总体结构

4.2 单片机控制部分

4.2.1 复位电路

4.2.2 时钟电路

4.2.3 P0 口上拉电阻电路

4.3 甲醛气体监测模块设计

4.3.1 RCV420 电流电压转换器

4.3.2 ADC0832 性能描述

4.3.3 换气扇控制设计

4.4 天然气气体监测模块设计

4.6 显示模块部分

4.7 电源电路模块

5 软件设计

5.1 编程语言的选择

5.2 子程序模块

5.3 AD 转换模块

5.4 显示模块

5.5 声光报警模块

参考文献

附录  

致谢

基于单片机的室内空气质量检测系统设计

设计总说明

随着生活质量的提高,人们开始不断改善自己的居住环境,各种室内装饰、装修材料被 大量的使用。而这些材料中有大量的甲醛,直接影响着人们的健康。甲醛也叫蚁醛,是 一种有刺激性气味的易溶的无色气体,是一种潜在的致癌物质。低浓度的甲醛会导致鼻 炎、咽炎、结膜炎等,随着甲醛浓度的增高,甚至会导致人类的死亡。甲醛是人们日常 生活和工作环境中严重危害人体健康的气体,它主要存在于人们室内装修材料中,并且 会持续挥发很长时间。  在人们入住新装修好的房子后, 由于室内装修木材以及油漆还 有涂料中含有的以甲醛为主的有害人体健康的气体在不断的挥发到室内,如果挥发浓度 达到一定值时就会对人的健康产生一定的损害。生活在一个甲醛浓度超标的环境中,人 们会出现不同程度的恶心,头晕,失眠等症状影响人们的健康。甲醛它对人们的神经干 扰使人们产生一系列的病状反应。在这种环境下,室内甲醛浓度测定仪对我们的生活就 显得格外有重要和必要。室内甲醛浓度测定仪它能够对室内甲醛浓度进行检测并且驱动 相应的改善控制质量的设备来达到改善室内环境的要求。在人们对生活品质要求提高, 更加注重身体健康的今天,人们对家具建材以及各种装修室内材料的要求也提高了很 多,人们一是到了甲醛对身体的影响是多么的大。所以人们去找出甲醛的主要来源,首 先从根源上尽量减少甲醛在室内环境中出现的可能,然后再通过在室内安装甲醛浓度测 量仪和通风设备来改善环境,增加人们的健康指数。人们这种不止追求舒适和视觉上的 享受而且注重内在品质的生活态度为甲醛测定系统的发展提供了主要动力。空气中装修 材料含有的甲醛等有害气体危害人的健康,癌症的高发可以说很多都和空气质量有关。 现代人们重视装修,但是却很少有人在装修之后对自己的室内进行检测,所以要求学生 设计一个室内空气质量的检测系统,为及时了解和改善室内空气质量提供依据和可能 性。也使人们为重视室内空气质量而做出自己的努力。以空气中装修材料甲醛等有害气 体为被测对象。采用单片机为控制中心,完成对空气浓度的实时采集处理、报警和显示 等功能。设计的报警系统,能够实现在浓度超标时及时的报警。

本文提出一种通用的室内甲醛气体实时检测系统,该系统具有实时检测、操作简单、 实用等特点。本文设计了一种基于单片机的甲醛浓度实时检测系统。该系统以 AT89C52

 

单片机为核心,选用专用的 CH20/S— 10 甲醛传感器检测甲醛浓度。甲醛气体经甲醛 传感器后,得到相应的电压信号,再经电路放大转换成标准电压信号,输入模/数转换 器 ADC0832,经单片机进行相应的数据处理,得到的数字信号送入 LED 显示器,把相 应的气体浓度值显示出来。该系统可以达到实时检测甲醛气体浓度的目的。

该系统以 AT89C52 单片机为核心,由甲醛传感器 CH20/S— 10 检测甲醛气体的浓度, 室内微量的甲醛气体经甲醛传感器检测后得到与甲醛浓度相对应的电流信号,通过 I/U 转换器得到相应的电压信号, 送到模/数转换器 ADC0832 转换器的输入端,将模拟信号 转换成数字信号,再将数字信号送到 AT89C52 的输入端。由 AT89C52 控制数据的采集处 理,转换得到的数字信号送入 LED 显示器,把相应的甲醛浓度值显示出来。

该系统包括甲醛传感器、模/数转换器、单片机、 LED 显示器,具体实现功能如下:

(1) 甲醛传感器模块:传感器检测性能的好坏影响整个系统的精确度与可靠性。

(2) 模/数转换器模块:在设计中模数转换模块起到桥梁的作用,连接着模拟信号与数 字信号之间的转换。

(3) 单片机模块:本系统采用单片机为控制核心。

(4) 显示模块: 由于该设计中显示的甲醛含量属于较简单的字符,可以考虑使用数码 管,数码管具有功耗低、体积小、显示内容齐全等特点,在显示内容简单且需要考虑经 济因素时,大多采用数码管。这正好符合我们这次设计的要求。

本次设计以空气中装修材料甲醛等有害气体为被测对象。采用单片机为控制中心, 完成对空气浓度的实时采集处理、报警和显示等功能。设计的报警系统,能够实现在浓 度超标时及时的报警。

关键词: AT89C52;空气质量; LED 显示;报警系统

 

Design of indoor air quality inspection system based on single chip microcomputer

Instruction

With the improvement of quality of life, people began to constantly improve their own living environment, all kinds of interior decoration, decoration materials is widely used. And there are large amounts of formaldehyde in these materials, a direct impact on people's health. Also called formaldehyde, formaldehyde is a colorless, stimulating odour of soluble gas, is a kind  of  potential  carcinogens.  Low  concentration  of  formaldehyde  can  cause  rhinitis, pharyngitis, conjunctivitis, such as increased as the concentration of formaldehyde, even lead to the  death  of human beings. Formaldehyde  is the People's Daily  life  and  cause  serious damage to human body health of gas in the working environment, it mainly exists in people in interior decoration materials, and will continue to volatilize for a long time. After people in new decorated house, because indoor decorate wood and paint and coatings contain mainly formaldehyde  gas  harmful  to  human  health  is  constantly  to  evaporate  into  the  indoor,  if  volatile concentration reaches a certain value will produce certain harm to the health ofpeople. Living  in  a  formaldehyde  chroma  of environment,  people  will  have  different  degrees  of  nausea, dizziness, the symptom such as insomnia affects people's health. Formaldehyde it on people's  nerve  interference  has  a  series  of  symptoms.  In  this  environment,  the  indoor formaldehyde concentration meter is especially to our life is important and necessary. The indoor formaldehyde concentration meter it can carry on the detection of indoor formaldehyde concentration and drive the improvement of the corresponding control equipment to meet the needs of improving indoor environment quality. In people's life quality requirements improve, pay more attention to body health today, the furniture building materials as well as a variety of indoor  decorate  material  requirements  also  increased  a  lot,  one  is  to  the  influence  of  formaldehyde  on  the  body  how  big  it  is.  So  people  to  find  out  the  main  source  of  formaldehyde, first of all, from the source to minimize the possibility of formaldehyde in the indoor  environment,  and  then  through  the  indoor  formaldehyde  concentration  measuring

 

instrument  and  ventilation  equipment  installed  to  improve  the  environment,  to  increase people's health index. People this more than the pursuit of comfort and the enjoyment on the vision  and  focus  on  quality  of  inner  life  attitude  to  the  development  of  formaldehyde determination system provides the main engine. Decoration materials in the air containing the harmful gas such as formaldehyde harm people's health and cancer incidence may say many are  related  to  air  quality.  Modern  people  attach  importance  to  decorate,  but  rarely  after decorating for your indoor testing, so students are required to design an indoor air quality testing system, provide the basis for timely understand and improve indoor air quality and possibility. Also make people to pay attention to indoor air quality and make their own efforts. To decorate material such as formaldehyde harmful gas in the air for the object to be tested. Completed  by  single  chip  microcomputer  as  the  control  center,  the  concentration  of air, real-time acquisition and processing, display and alarm function. Design of the alarm system, can realize at higher concentration and timely report to the police.

This paper presents a general indoor formaldehyde gas real-time detection system, the system has the characteristics of real-time detection, the operation is simple, practical. This paper designed a kind of formaldehyde concentration in the real-time detection system based on MCU. The system with AT89C52 single-chip computer as the core, choose special CH20 / S - 10   formaldehyde   sensor   detect   formaldehyde   concentration.   Formaldehyde   gas   after formaldehyde  sensor,  get the  corresponding voltage  signal, then through  convert  standard voltage  signal amplification  circuit, a/d  converter  input ADC0832, the corresponding  data processing, single-chip get digital signal into the LED, the corresponding gas density display. The system can achieve the goal of real-time detection of formaldehyde gas concentration.

The system with AT89C52 single chip microcomputer as the core, by formaldehyde sensor CH20 / S - 10 testing the concentration of formaldehyde gas, gas after formaldehyde sensor to detect the trace of indoor formaldehyde with formaldehyde concentration that corresponds to the current signal, the corresponding voltage signal is obtained by I/U converter, a/d converter to ADC0832  converter  input,  converts  analog  signals  into  digital  signals, then the  digital signal to the input end of AT89C52. Controlled by AT89C52 data collection and processing,

 

digital signal by converting into the LED display, the corresponding formaldehyde level was displayed.

Sensor a/d  converter, the  system  includes  formaldehyde,  single-chip microcomputer,  LED display, concrete realization function is as follows:

Formaldehyde sensor modules: (1) sensor detection performance is good or bad influence the accuracy and reliability of the whole system.

(2) modules: the a/d converter adc module in the design have the effect of bridge, connects the conversion between analog signals and digital signals.

(3) the MCU module: the system adopts the single chip processor as the core.

(4) the display module: due to the design shown in the formaldehyde content belongs to a simple character, can consider to use LED, LED has low power consumption, small volume, abundant content, etc, in the pocket instrumentation and low-power were widely used in the system.

This design to decorate material such as formaldehyde harmful gas in the air for the object to be tested. Completed by single chip microcomputer as the control center, the concentration of  air, real-time acquisition and processing,  display and alarm  function. Design of the alarm system, can realize at higher concentration and timely report to the police.

Keywords: AT89C52 devices; Air quality; LED display; Alarm system

 

1 绪论

1.1 设计背景及意义

科技是推动经济发展的主要动力,特别是在 21 世纪,随着科学技术的迅速发展, 我国的经济的得到了大幅度的提升,人民的生活水平也相对提高了不少。人们对生活环 境的要求也越来越高,各种各样的新型居住空间开始被人们设计出来,房屋的装修随着 材料开发的进步也越来越奢华漂亮。虽然人们的居住环境在视觉上和感觉上得到了很大 的满足,但是,随着这种视觉和感觉上的需求所带来的安全隐患也伴随而来。我国目前 的状况是人口众多,科技创新处于发展阶段,在材料的应用和房屋设计技术方面还是比 较欠缺的。人们想要居住一个舒适,安心的房子就得考虑房子的构造以及房子的装修隐 患。近年来,随着科学技术、生产条件、生活水平的改善和提高,为了节约土地,人们 开始建设高层楼房,楼房的结构比较密闭,在一定的空间内人口密度较大,现在的大多 数企业或者人们在办公以及生活中为了节约经济往往适用少量的空间来容纳尽量多的 人来完成办公和生活所需,达到经济利用最大化,但是由于这样情况导致人们在工作以 及生活中出现了一些病态症状,例如:长时间在密闭的室内工作或者在刚装修不久的室 内居住的人们常常会出现头晕、恶心、神经衰弱等症状。这一问题在当今这个土地日益 经济化的时代显得格外突出,再还有部分黑心商人的存在使得劣质的装修材料进入居民 的居住环境中对人们的身体造成极大的伤害。在人们对生活品质的要求不断提高的同 时,人们开始对居住环境带来的身体伤害重视起来,所以设计一个室内的有害气体检测 和报价那个系统显得格外重要和必要。室内对人体有害的气体主要是装修材料中含有的 甲醛,人们适用的天然气中的主要成分甲烷,一氧化碳等,二氧化碳含量较高无法即使 通风也会是人体产生不适。在这些有害气体中甲醛是对人体伤害最大,甲醛是一种有毒 物质,它能够损坏生物蛋白质从而使人的皮肤还有呼吸道收到较严重的伤害,如果人长 时间处在一种甲醛含量比较高的环境,严重时可能会被麻痹神经,使人出现水肿,患癌 等严重后果。除此之外,甲醛还可能造成孕妇肚中胎儿的基因突变,从而出现新生儿畸 形等严重不良后果。甲醛主要存在于我们装修房子适用的地板,油漆,涂料中,我们要 想避免这些严重的后果就得重视这一严重问题,就得积极的去做出相应的应对之策,这 是我们生活的现实需求, 我国环保以及卫生、质量检测部门在 2003 年制订了一部标准 的室内空气质量值,并明确的指出室内污染气体对人的危害是极大的,针对这一现状设 计出一款室内甲醛浓度检测报警系统显得极其重要和必要。

 

1.2 国内外现状

在上世纪 80 年代人们就设计出了关于甲醛测量的压电类传感器。这个传感器的功 能在当时还是比较先进的,它能够直接接触气体测量,不用对测量气体进行相关处理, 在理论上那个是很符合我们生活所需的,但是它有一个致命的缺点就是很容易在水分含 量较高的环境中出现测量不稳定的情况,这一致命缺点导致它在应用中很受限制,适用 价值很小。从人们着手研究甲醛并且认识到它的危害开始,针对甲醛的测量研究就始终 没有停止过,为了能够有效而且精准的测量出室内甲醛浓度的数值,各国科学家利用各 种方法和原理设计出了很多种甲烷快速测量仪器,这些仪器被安装在所需的室内环境 中,能直接的检测出当前的室内甲醛浓度,测量速度比较快而且操作简单。随着现代科 技的更近一步的发展,单片机的问世以及强大功能同时也使得甲醛测定系统的性能和功 能得到了质的飞跃,市场上开始出现了各种数字式的甲醛测量系统,甲醛测定系统也向 智能化,多功能化方向发展。在国外,在甲醛检测仪器领域技术比较成熟的美国 ESC 公 司还有英国 ppm 公司,他们生产的甲醛测量仪器 Z 一 300 和 PPM-400 在功能以及性能方 面在同领域都比较先进,技术也比较成熟,就我国目前的现状而言,技术相对比较前沿 的有江苏安普电子工程有限公司以及北京宾达绿创科技有限公司,他们分别生产的 400 型甲醛测量仪器和甲醛测定仪 308 等比较实用,并且测量功能齐全,精度较高。

现在我国的甲醛测定系统和国外相比较,主要的差异是在气体传感器以及控制器的 选用上,因为我国的控制技术等各方面还没有达到国外的成熟地步,所以生产的产品在 性能和功能上还是和国外产品有一些差异,相比而言,国外的产品更容易操作,寿命等 性能较完善,适合大众长期使用。

1.3 设计内容及要求

设计内容:空气中装修材料含有的甲醛等有害气体危害人的健康,癌症的高发可以 说很多都和空气质量有关。现代人们重视装修,但是却很少有人在装修之后对自己的室 内进行检测,所以要求学生设计一个室内空气质量的检测系统,为及时了解和改善室内 空气质量提供依据和可能性。也使人们为重视室内空气质量而做出自己的努力。

设计要求:以空气中装修材料甲醛等有害气体为被测对象。采用单片机为控制中心, 完成对空气浓度的实时采集处理、报警和显示等功能。设计的报警系统,能够实现在浓 度超标时及时的报警。


相关文章
|
1月前
|
传感器 监控 IDE
基于单片机的温度监控系统设计
基于单片机的温度监控系统设计
66 0
|
4月前
|
物联网
STC51单片机-实验开发装置仿真-物联网应用系统设计
STC51单片机-实验开发装置仿真-物联网应用系统设计
53 0
|
4月前
|
物联网
STC51单片机-控制LED闪亮的仿真-物联网应用系统设计
STC51单片机-控制LED闪亮的仿真-物联网应用系统设计
42 0
|
4月前
|
物联网 人机交互 开发工具
STC51单片机-阵列LED显示-物联网应用系统设计项目开发
STC51单片机-阵列LED显示-物联网应用系统设计项目开发
78 0
|
4月前
|
物联网
STC51单片机-中断控制LED-物联网应用系统设计项目开发
STC51单片机-中断控制LED-物联网应用系统设计项目开发
53 0
|
3月前
|
传感器 测试技术 数据处理
单片机开发|基于单片机的婴儿睡眠监测系统设计
单片机开发|基于单片机的婴儿睡眠监测系统设计
|
3月前
|
传感器 数据采集 监控
毕业设计|基于51单片机的配电室远程监控系统设计环境检测GSM环境报警设计
毕业设计|基于51单片机的配电室远程监控系统设计环境检测GSM环境报警设计
|
3月前
|
传感器
毕业设计 基于51单片机自动智能浇花系统设计
毕业设计 基于51单片机自动智能浇花系统设计
|
3月前
|
传感器 存储 监控
毕业设计 基于51单片机WIFI智能家居系统设计
毕业设计 基于51单片机WIFI智能家居系统设计
|
4月前
|
传感器 测试技术 数据处理
单片机开发|基于单片机的婴儿睡眠监测系统设计
单片机开发|基于单片机的婴儿睡眠监测系统设计