设计说明书
总字数:18000+
摘要
在机房运维中,对环境参数的实时监测、异常预警及便捷管控,对于保障设备稳定运行与数据安全具有关键意义。传统的机房环境管理多依赖人工巡检,存在参数监测不及时、异常预警滞后、远程管理困难等问题,难以满足现代化机房智能化运维的需求。
基于 STM32F103C8T6 单片机的机房环境监测系统(项目编号:mcuclub-dz-1028),整合了 DHT11 温湿度传感器、雨量检测模块、MQ-2 烟雾传感器、霍尔传感器 KY-003、人体热释电 D203S、按键、OLED 显示屏、WiFi 模块 ESP8266 及声光报警装置,实现了对机房环境的自动化监测、报警及远程控制。系统核心功能包括:通过 DHT11 检测温湿度,当温湿度超出设置的上下限值时,进行声光报警;通过雨量检测模块检测是否有水,若检测到水则触发声光报警;通过 MQ-2 烟雾传感器检测火灾,发生火灾时进行声光报警;通过霍尔传感器 KY-003 检测门的开关状态,布防时若检测到人且门被打开,触发声光报警;通过人体热释电 D203S 检测环境是否有人;利用按键可设置各参数阈值、切换布防撤防状态;通过 OLED 显示屏显示各项测量值;通过 WiFi 模块 ESP8266 将检测数据传输到手机端,手机端可设置各阈值并控制布防撤防。
该系统的实现,有效提升了机房环境监测的自动化、智能化水平,通过实时监测、精准报警及远程控制,为机房的安全稳定运行提供了可靠的技术支持,同时为智能环境监测领域的发展提供了参考,具有较高的实用价值与推广意义。
关键词:机房环境监测;STM32;报警系统;远程控制;状态检测;阈值设置
ABSTRACT
In computer room operation and maintenance, real-time monitoring of environmental parameters, abnormal early warning, and convenient management and control are of crucial significance for ensuring stable operation of equipment and data security. Traditional computer room environment management mostly relies on manual inspections, which has problems such as untimely parameter monitoring, delayed abnormal warning, and difficult remote management, making it difficult to meet the needs of intelligent operation and maintenance of modern computer rooms.
The computer room environment monitoring system based on STM32F103C8T6 microcontroller (Project No.: mcuclub-dz-1028) integrates DHT11 temperature and humidity sensor, rain detection module, MQ-2 smoke sensor, Hall sensor KY-003, human body pyroelectric D203S, buttons, OLED display, WiFi module ESP8266 and sound and light alarm device, realizing automatic monitoring, alarm and remote control of the computer room environment. The core functions of the system include: detecting temperature and humidity through DHT11, and giving an audible and visual alarm when the temperature and humidity exceed the set upper and lower limits; detecting whether there is water through the rain detection module, and triggering an audible and visual alarm if water is detected; detecting fire through the MQ-2 smoke sensor, and giving an audible and visual alarm in case of fire; detecting the door switch state through the Hall sensor KY-003, and triggering an audible and visual alarm if a person is detected and the door is opened during arming; detecting whether there is a person in the environment through the human body pyroelectric D203S; using buttons to set various parameter thresholds and switch between arming and disarming states; displaying various measured values through the OLED display; transmitting the detected data to the mobile phone through the WiFi module ESP8266, and the mobile phone can set various thresholds and control arming and disarming.
The implementation of this system has effectively improved the automation and intelligence level of computer room environment monitoring. Through real-time monitoring, accurate alarm and remote control, it provides reliable technical support for the safe and stable operation of the computer room. At the same time, it provides a reference for the development of the intelligent environment monitoring field, and has high practical value and promotion significance.
Keywords:Computer room environment monitoring; STM32; Alarm system; Remote control; Status detection; Threshold setting
目录
第1章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.2.1 国外研究现状
1.2.2 国内研究现状
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 温湿度检测模块选择
2.1.3 雨量检测模块选择
2.1.4 烟雾检测模块选择
2.1.5 门状态检测模块选择
2.1.6 人体检测模块选择
2.1.7 显示模块选择
2.1.8 WiFi 通信模块选择
2.1.9 按键模块选择
2.1.10 声光报警模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 温湿度检测模块电路
3.3 雨量检测模块电路
3.4 烟雾检测模块电路
3.5 门状态检测模块电路
3.6 人体检测模块电路
3.7 显示模块电路
3.8 按键模块电路
3.9 声光报警模块电路
3.10 WiFi 通信模块电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 WiFi模块子流程设计
4.6 温湿度检测模块子流程设计
4.7 ADC模数转换子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 温湿度检测与报警功能测试
5.3 雨量检测与报警功能测试
5.4 烟雾检测与报警功能测试
5.5 门状态与人体检测联动报警功能测试
5.6 显示功能测试
5.7 按键设置功能测试
5.8 WiFi 通信功能测试
5.9 系统综合运行测试
第6章 总结与展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!