设计说明书
总字数:14000+
本毕业论文针对环境检测中存在的问题进行研究,设计了一款名为”环境检测”的实物来解决这些问题。该设计基于STC89C52单片机作为主控模块,实现了多项功能。具体功能如下:通过MQ-2传感器检测烟雾值,当烟雾超过设定的最大值时,触发声光报警,并启动风扇和净化器;通过DHT11传感器检测温湿度,当温湿度超过设定的上限值时,触发声光报警并启动风扇;当温湿度低于设定的最小值时,触发声光报警。用户可以通过按键设置烟雾的最大值以及温湿度的上下限值。测量值通过LCD1602显示屏实时显示。此外,通过蓝牙模块将测量数据发送到手机端,用户可以远程监控数据,并在需要时通过蓝牙控制声光报警、风扇和净化器的启停。该设计的研究意义在于提供了一种实用的环境检测解决方案,可以有效监测室内环境中的烟雾、温度和湿度等参数,保障用户的安全和舒适。通过声光报警、风扇和净化器的自动控制,能够及时应对环境异常情况,提高室内环境的品质。同时,通过蓝牙远程监控和控制功能,用户可以随时随地获取环境数据,并对设备进行远程操作,增加了便利性和灵活性。该设计具有实际应用和推广价值,可以在家庭、办公室和公共场所等多个领域中得到广泛应用。
关键词:环境检测、STC89C52、MQ-2传感器、DHT11传感器、蓝牙模块
This graduation thesis focuses on addressing the issues in environmental monitoring and proposes a practical solution named “Environmental Monitoring.” The design is based on the STC89C52 microcontroller and implements multiple functionalities. Specifically, it utilizes the MQ-2 sensor to detect smoke levels. When the smoke exceeds the predefined maximum value, it triggers a sound and light alarm, and activates the fan and air purifier. Additionally, the DHT11 sensor measures temperature and humidity. If the readings surpass the upper limit, it triggers a sound and light alarm and starts the fan. Similarly, if the readings fall below the minimum limit, it triggers an alarm. Users can set the maximum smoke value and the upper and lower limits for temperature and humidity using buttons. The measured values are displayed in real-time on an LCD1602 display. Furthermore, the measurement data is transmitted to a mobile device via a Bluetooth module, enabling remote monitoring. Users can also remotely control the sound and light alarm, fan, and air purifier through Bluetooth.This design offers a practical solution for environmental monitoring, effectively detecting smoke, temperature, and humidity parameters in indoor environments to ensure safety and comfort. The automatic control of sound and light alarms, fan, and air purifier allows prompt response to abnormal environmental conditions, thereby enhancing indoor air quality. The remote monitoring and control capabilities provided by the Bluetooth module enable users to access environmental data anytime, anywhere, and remotely operate the devices, thereby enhancing convenience and flexibility. This design holds practical applications and promotional value, with potential utilization in various settings such as homes, offices, and public spaces.
Keywords: Environmental monitoring, STC89C52, MQ-2 sensor, DHT11 sensor, Bluetooth module
目 录
摘要
Abstract
第1章绪论
1.1研究背景及意义
1.2国内外研究现状
1.3论文的主要内容
第2章 系统总体设计方案
2.1系统总体设计
2.2主要模块方案选择
2.2.1主控模块方案选择
2.2.2温湿度监测模块方案选择
2.2.3烟雾监测模块方案选择
第3章硬件设计
3.1主控模块电路设计
3.2 温湿度监测模块电路设计
3.3 烟雾监测模块电路设计
3.4 显示模块电路设计
3.5 继电器模块电路设计
3.6 声光报警模块电路设计
3.7 独立按键电路设计
3.8 蓝牙模块电路设计
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 温湿度检测模块子流程
4.5 A/D模数转换子流程
4.6 LCD1602液晶显示子流程
4.7 蓝牙模块子流程
第5章 实物测试
5.1 整体实物焊接图
5.2 环境温度监测实物测试
5.3 环境湿度检测实物测试
5.4 烟雾检测实物测试
5.5 手机远程测控实物测试
第6章 总结展望
参考文献
附录
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!