北京理工大学珠海学院 2020 届本科生毕业设计室内空气质量检测系统软件设计与实现室内空气质量检测系统的软件设计与实现摘 要本设计基于 C52 单片机,运用 KEIL 以及 Proteus 设计了一种室内空气质量检测系统该系统包含以下模块:检测模块、显示模块、报警模块、GSM 模块。该系统可对温度、湿度、甲醛浓度、PM2.5、甲烷浓度、一氧化碳浓度进行检测并在显示屏上实时显示,每个检测功能都可调整其报警值,当前检测值大于报警值时,报警模块工作,与此同时,GSM 模块发送报警短信给指定手机用户,实现远距离报警。本文提出了基于向量范数的中值滤波法,运用数字滤波算法中的中值滤波法将 AD转换器采集的数据进行祛杂处理,克服因为偶然因素对采集数据所产生的干扰。此外,中值滤波法还配合冒泡算法,更加容易获得采样数据的中值。同时,对相邻两次经过中值滤波的采样结果进行向量范数的计算。实验结果证明该方法使得系统鲁棒性得到显著提高本设计还搭载了 GSM 模块,运用该模块的无线通讯网实现了数据的远程显示。关键词:中值滤波法;冒泡算法;向量范数;鲁棒性北京理工大学珠海学院 2020 届本科生毕业设计Indoor air quality detection system’s software design and implementationAbstract The design is based on C52 SCM, using KEIL and Proteus to design an indoor air quality detection system. This system includes the following modules: detection module, display module, alarm module and GSM module. This system could be used for temperature, humidity, formaldehyde concentration and the concentration of PM2.5, the concentration of methane, carbon monoxide for testing as well as display them on the display screen in real time. Each detection function can adjust its alarm value. When the readings are greater than the alarm value, system’s alarm module works. Besides, the GSM module will sends alert messages to the designated mobile users to achieve remote alarm.This paper presents a median filtering method based on vector norm, which using the method of digital filtering algorithm of median filter to remov...