设计说明书
总字数:16000+
本论文设计了一种基于STC89C52单片机的智能家居安防系统,旨在实现对家居环境的烟雾浓度、温度和人体热释电的实时监测与控制。系统通过MQ-2传感器检测烟雾浓度,当烟雾值超过设定的最大值时,触发声光报警,并通过GSM模块发送“烟雾过高”短信通知用户。同时,通过DS18B20温度传感器监测温度值,当温度超过设定的最大值时,进行声光报警,并发送“温度过高”短信通知。人体热释电模块用于监测监控区域是否有人,当有人进入并布防时,触发声光报警,并通过GSM模块发送“有人闯入”短信。用户可以通过按键设置各项阈值、手动控制布防和撤防。最后,系统使用LCD1602显示屏实时显示监测到的数据,使用户能够直观地了解家居环境的状态。本设计旨在提升家居安全性与智能化,为用户提供更安心、便捷的家居居住体验。
关键词:家居安防系统、烟雾检测、温度监测、人体热释电、GSM
This thesis presents the design and implementation of an intelligent home security system based on the STC89C52 microcontroller. The system aims to achieve real-time monitoring and control of the home environment, including smoke concentration, temperature, and human body infrared radiation. The system employs the MQ-2 sensor to detect smoke concentration, and when the smoke value exceeds the predefined threshold, it triggers audio-visual alarms and sends a “high smoke concentration” notification to the user via the GSM module. Simultaneously, the DS18B20 temperature sensor is utilized to monitor temperature values, and in the event of the temperature exceeding the set maximum, the system initiates audio-visual alarms and sends a “high temperature” notification message. The human body infrared radiation module is utilized to monitor the presence of individuals within the surveillance area. If someone enters the area while the system is armed, it triggers audio-visual alarms and sends a “intruder detected” message through the GSM module. The user can interact with the system using dedicated buttons to set various thresholds and manually control the arming and disarming of the security system. The collected data is displayed in real-time on the LCD1602 screen, enabling the user to intuitively grasp the current status of the home environment. The primary objective of this design is to enhance home security and intelligence, providing users with a safer and more convenient home living experience.
Keywords: Home Security System, Smoke Detection, Temperature Monitoring, Human Body Infrared Radiation, GSM
目 录
基于STC89C52单片机的智能家居安防系统设计与实现
摘要
Abstract:
1 绪论
1.1 研究背景及其研究意义
1.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 环境温度测量电路
3.3 烟雾检测模块电路
3.4 人体检测模块电路
3.5 显示模块电路
3.6 声光报警模块电路
3.7 GSM模块电路
3.8 独立按键模块电路
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 温度检测模块子流程
4.5 A/D模数转换子流程
4.6 GSM流程设计
4.7 LCD1602液晶显示子流程
5 仿真调试
5.1 烟雾检测仿真测试
5.2 温度检测实物测试
5.3 防盗检测实物测试
6 实物调试
6.1 烟雾检测实物测试
6.2 温度检测实物测试
6.3 防盗检测实物测试
总结与展望
致 谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!