基于单片机的温湿度PM2.5检测仪
2021-04-22南海城唐雅媛潘学文
南海城 唐雅媛 潘学文



摘要:为让人们了解到空气质量,该设计利用单片机、温湿度传感器和PM2.5检测模块构成的检测仪,可将空气中温湿度、PM2.5浓度数据实时采集。检测仪分为温湿度检测与PM2.5检测两大部分,采用温湿度传感器DHT11检测空气中的温湿度参数,采用粉尘检测传感器GP2Y1010AU0F测量空气中的PM2.5浓度,然后将收集到的信号经过A/D转换为单片机可辨别的信号,最后在液晶显示屏上显示出数据,从而用来监测PM2.5的含量。
关键词:温湿度传感器;粉尘传感器;单片机;空气质量
中图分类号:TN911-4;G434 文献标识码:A
文章编号:1009-3044(2021)08-0208-02
Abstract: In this paper,ZigBee AD hoc network technology is used to build a wireless sensor network for information exchange to achieve intelligent home environment monitoring. The system hardware is based on the CC2530 development board and the wireless sensor network is built through ZigBee coordinator, routing nodes and network nodes, multiple sensor nodes for data acquisition, and the acquisition of the signal amplification, A/D conversion and other processing, to achieve A close distance between the nodes of wireless communication. The user terminal uses the upper computer to write the software code and realize the real-time display of data. The system has the advantages of low power consumption, low cost, convenient installation, compact and beautiful and is suitable for the real-time monitoring of environmental data in the user's residence.
Key words: temperature and humidity sensor; dust sensor; single chip microcomputer; air quality
随着我国经济的高速发展,人民生活水平的提高,越来越多人注重空气品质状况等环境问题及所带来的影响。人每天都要呼吸空气的,当然是希望空气质量更高才好。空气质量检测有很多方法,包含装修污染、室内空气检查与测量、作业场所有害物质检测、工厂油烟检测、锅炉大气以及工业窑炉检验测试及工厂排出的工业废气检测等等[1-2]。
本设计基于单片机、温湿度传感器、PM2.5检测模块,检测室内空气中的温度、湿度、粉尘浓度三项数值。当检测到数值超过设置的范围后蜂鸣器会发出报警声,可以更好地进行室内空气质量的评估,为人类营造一个良好健康的呼吸环境[3-4]。
1 设计总体方案
设计涉及主硬件为:STC89C52RC单片机,DHT11温湿度传感器,粉尘传感器GP2Y1010AU0F,蜂鸣器报警电路按键设置电路以及超标指示显示模块组成。系统方框图如图1所示。
STC89C52RC是STC公司研发的一种低功耗、高性能的CMOS8位微控制器。……
