设计说明书
总字数:19000+
摘要
在社会安全意识不断提升的当下,各类场所的安全防护需求日益迫切,传统依赖人工巡查的防火防盗方式,存在响应迟缓、覆盖范围有限、人力成本高昂等问题,难以适应现代安全防护的高效化、智能化要求。
基于 STM32F103C8T6 单片机的防火防盗系统,整合了 DS18B20 温度检测模块、MQ-2 烟雾传感器、人体热释电 D203S 传感器、火焰传感器、按键、WiFi 模块及声光报警装置等,实现了对环境安全状态的自动化监测与及时预警。系统核心功能包括:通过 DS18B20 实时监测环境温度,当温度超出设定范围时,立即触发声光报警;借助 MQ-2 检测环境烟雾浓度,当烟雾浓度大于设定最大值时,启动声光报警;利用人体热释电 D203S 传感器检测是否有人闯入,在布防状态下检测到人体信号时,不仅触发声光报警,还通过 WiFi 模块向手机端发送 “有人闯入提示信息”;通过火焰传感器监测是否发生火灾,一旦检测到火焰,立即进行声光报警;支持通过按键设置温度、烟雾的上下阈值,以及进行布防和撤防操作;通过 WiFi 模块将各类检测数据实时传输至手机端,同时支持在手机端设置温度和烟雾阈值、进行撤防与布防操作。
该系统的实现,显著提高了防火防盗的自动化与智能化水平,缩短了安全预警响应时间,降低了人工成本,为各类场所的安全防护提供了高效、可靠的解决方案,同时也为同类安全防护设备的研发提供了参考,具有较高的实际应用价值。
关键词:STM32F103C8T6;防火防盗;安全监测;传感器;智能预警;WiFi 通信
ABSTRACT
With the continuous improvement of social safety awareness, the demand for safety protection in various places is becoming increasingly urgent. The traditional fire and theft prevention methods that rely on manual inspections have problems such as slow response, limited coverage, and high labor costs, which are difficult to meet the efficient and intelligent requirements of modern safety protection.
The fire and theft prevention system based on the STM32F103C9T6 microcontroller integrates DS18B20 temperature detection module, MQ-2 smoke sensor, human pyroelectric D203S sensor, flame sensor, buttons, WiFi module and sound – light alarm device, etc., to realize automatic monitoring and timely early warning of environmental safety status. The core functions of the system include: real – time monitoring of ambient temperature through DS18B20, and immediately triggering sound – light alarm when the temperature exceeds the set range; using MQ-2 to detect ambient smoke concentration, and starting sound – light alarm when the smoke concentration is greater than the set maximum value; using human pyroelectric D203S sensor to detect whether someone breaks in, and when a human signal is detected in the armed state, not only triggering sound – light alarm, but also sending “someone breaking in prompt information” to the mobile phone through WiFi module; monitoring whether a fire occurs through flame sensor, and immediately giving sound – light alarm once a flame is detected; supporting the setting of upper and lower thresholds of temperature and smoke, as well as arming and disarming operations through buttons; transmitting various detection data to the mobile phone in real time through WiFi module, and supporting the setting of temperature and smoke thresholds, disarming and arming operations on the mobile phone.
The implementation of this system significantly improves the automation and intelligence level of fire and theft prevention, shortens the response time of safety early warning, reduces labor costs, provides an efficient and reliable solution for safety protection in various places, and also provides a reference for the research and development of similar safety protection equipment, with high practical application value.
Keywords:STM32F103C9T6; Fire and theft prevention; Safety monitoring; Sensor; Intelligent early warning; WiFi communication
目录
第 1 章 绪论
1.1 研究的目的及意义
1.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.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 温度检测模块电路
3.3 烟雾传感器电路
3.4 人体热释电传感器电路
3.5 火焰传感器电路
3.6 显示模块电路
3.7 WiFi 模块电路
3.8 按键模块电路
3.9 声光报警装置电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 温度检测模块子流程
4.6 WiFi模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 温度检测模块功能测试
5.3 烟雾传感器功能测试
5.4 人体热释电传感器功能测试
5.5 火焰传感器功能测试
5.6 WiFi 模块功能测试
5.7 声光报警装置功能测试
5.8 按键与显示功能测试
第 6 章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!