设计说明书
总字数:16000+
为降低宿舍火灾和偷盗事件发生的概率,保障人类生命财产安全。本文采用软硬件结合方式,设计一款操作简单、经济适用的宿舍防火防盗报警系统。硬件采用AD进行设计,选用是STM32为主控芯片;选用烟雾、红外人体、温度等传感器件,进行数据采集模块的设计;选用蜂鸣器和LED灯,进行报警模块的设计;选用按键和OLED显示模块相互配合,进行预设值、实时监测值的设置和显示。软件采用KeiluVision4进行设计,设计好主程序和子程序,用主程序调用子程序,完成程序的修改和调试。实物测试表明,在烟雾浓度、温度不低于预设值和有人入侵的情况发生时,都会发出声光报警,并控制继电器启动水泵进行灭火,当检测到需要进行指纹开锁时,通过继电器控制门锁打开,本设计基本实现了系统预设的功能。该系统及时有效的了解火灾的特点及报警措施,为预防火灾和偷盗事件、降低经济财产损失,具有重大意义。
关键词:STM32;传感器;WiFi;防火防盗
ABSTRACT
In order to reduce the probability of dormitory fire and theft, to ensure the safety of human life and property. In this paper, hardware and software are combined to design a simple and economical dormitory fire alarm system. The hardware is designed with AD, and STM32 is selected as the main control chip. Smoke, infrared body, temperature and other sensors are used to design the data acquisition module. Buzzer and LED lights are selected to design the alarm module. Buttons and OLED display module are selected to cooperate with each other to set and display preset values and real-time monitoring values. KeiluVision4 was used to design the software. The main program and subprogram were designed, and the subprogram was called by the main program to complete the modification and debugging of the program. The physical test shows that, when the smoke concentration and temperature are not lower than the preset value and someone invade the situation, the sound and light alarm will be issued, and the relay will be controlled to start the water pump to extinguish the fire. When fingerprint unlocking is detected, the door lock will be opened through the relay control. This design basically realizes the preset function of the system. The system timely and effectively understand the characteristics of fire and alarm measures, in order to prevent fire and theft events, reduce economic property losses, has great significance.
Key words:STM32; Sensor; WiFi; Fire prevention and theft prevention
目录
第1章 绪论
1.1 课题背景和意义
1.2 国内外研究现状
1.3 项目的设计任务
第2章 总体方案设计
2.1 系统主要模块方案选择
2.1.1 主控芯片方案选择
2.1.2 显示模块方案选择
2.1.3 MQ-2气体检测模块方案选择
2.1.4 温度检测模块方案选择
2.2 系统总体设计思路
3 系统硬件设计
3.1系统硬件总体设计
3.2 主控模块电路设计
3.3 DS18B20湿度检测模块电路设计
3.4 人体热释电红外感应电路模块设计
3.5 OLED显示模块电路设计
3.6 MQ-2 气体检测模块电路
3.7 声光报警检测模块电路
3.8 矩阵按键模块电路
3.9 指纹模块电路
3.10 WIFI模块电路设计
4 系统软件设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 矩阵键盘子流程
4.4 温度检测模块子流程
4.5 OLED显示流程设计
4.6 WiFi模块子流程设计
4.7云平台产品及设备接入简介
5 实物制作与调试过程
5.1 整体实物测试图
5.2 温度监测模块测试
5.3 MQ-2监测实物测试
5.4 人体热释电红外感应模块实物测试
5.5 指纹模块实物测试
5.6 WiFi通信实物测试
结 论
致 谢
参 考 文 献
附录A: 原理图
附录B:PCB
附录C:程序
购买后可查看具体内容!