项目编号:mcuclub-dz-288
设计简介:
项目名:环境监测
项目编号:mcuclub-dz-288
单片机类型:STC89C52
具体功能:
1、通过DHT11检测温湿度,当温湿度不在设置的范围内,进行声光报警
2、通过MQ-4检测甲烷值,当甲烷值大于设置最大值,进行声光报警
3、通过按键设置各阈值
4、通过LCD1602显示屏显示测量值
5、通过蓝牙模块,可将测量数据发送到手机端
总字数:14351
摘 要
社会经济的快速发展,使得生态环境的压力越来越大,反作用表现越来越突出,生态环境的破坏、 物种的灭绝、极端自然灾害现象越来越频发。本文在明确环境监测在生态环境保护中的作用基础上,重点发展环境调节措施,期望能够为生态环境的长效发展做出一点贡献。
为了实现系统对相关环境参数的监测作用,本文以STC89C52单片机作为主控芯片,首先通过DHT11和MQ-4分别监测环境中的温湿度值和甲烷值,然后将收集到的数据发送到单片机进行处理,当温度值或者甲烷值异常时,进行声光报警提示管理人员,并将实时数据发送到显示屏或者手机端进行显示,为管理人员提供方便、快捷的监测方式,以便更好的做出调节动作。
实物测试表明,该系统的实现对生态环境的动态保护,大大提升了生态环境保护工作的效率和质量,促进了生态环境的可持续发展,更好地服务于经济社会的进步。
关键词:STC89C52单片机;环境监测;传感器;显示屏;声光报警
Abstract
With the rapid development of society and economy, the pressure on the ecological environment is increasing, and the reaction is becoming more and more prominent. The destruction of the ecological environment, the extinction of species, and extreme natural disasters occur more and more frequently. On the basis of clarifying the role of environmental monitoring in ecological environment protection, this paper focuses on the development of environmental regulation measures, hoping to make a contribution to the long-term development of ecological environment.
In order to realize the monitoring function of the system on relevant environmental parameters, the STC89C52 single chip is used as the main control chip in this paper. Firstly, the temperature and humidity values and methane values in the environment are monitored through DHT11 and MQ-4 respectively, and then the collected data is sent to the single chip computer for processing. When the temperature value or methane value is abnormal, the audible and visual alarm is made to prompt the management personnel. And the real-time data is sent to the display screen or mobile phone for display, to provide managers with convenient and fast monitoring methods, so as to make better adjustment actions.
The physical test shows that the dynamic protection of the ecological environment achieved by the system greatly improves the efficiency and quality of the ecological environmental protection work, promotes the sustainable development of the ecological environment, and better serves the economic and social progress.
Key words: STC89C52 MCU; Environmental monitoring; Sensor; Display screen; Audible and visual alarm
目 录
1.绪论
1.1 研究背景及其研究意义
1.2 国内外研究现状
1.2.1 国内研究现状
1.2.2 国外研究现状
1.3 研究目标和组织结构
2.系统方案设计
2.1 整体方案设计
2.2 主要器件选型选择
2.2.1 主控芯片选择
2.2.2 显示方案选择
2.2.3 甲烷检测模块方案选择
2.2.4温湿度检测模块方案选择
3.硬件电路设计
3.1 单片机最小系统
3.2 MQ-4甲烷检测模块电路
3.3 DHT11温湿度检测模块电路
3.4 按键模块
3.5 LCD1602显示模块电路
3.6 声光报警报警提醒电路模块
3.7 蓝牙模块(ECB02)
4.系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 温湿度检测模块子流程
4.5 蓝牙模块子流程
4.6 LCD1602液晶显示子流程
5.仿真调试
5.1 仿真总体设计
5.2 甲烷浓度模块仿真测试
5.3 温湿度模块仿真测试
6.实物调试
6.1 实物总体设计
6.2 甲烷浓度模块实物测试
6.3 温湿度模块实物测试
总结
参考文献
致谢
附录
附录A:原理图
附录B:PCB