设计说明书
总字数:19000+
摘要
随着汽车保有量的增加,车库门的智能化控制成为提升生活便捷性与安全性的重要需求。传统车库门控制多依赖手动操作或单一遥控,存在功能单一、安全性不足、缺乏环境适应性等问题,难以满足现代家庭对自动化、智能化管理的需求。
基于 STM32F103C8T6 单片机的车库门控制系统,整合了 DS1302 时钟模块、5516 光敏电阻、分离式红外对射管、SW-420 震动传感器、FSR402 薄膜压力检测模块、步进电机、OLED 显示屏及 ESP8266 WIFI 模块,实现了车库门的自动化控制与全方位安全监测。系统核心功能包括:通过 DS1302 获取实时时间并支持按键修正,为时间关联功能提供基准;借助 WIFI 模块实现手机端远程开关门控制,同步显示监测数据;当车库门开启时,5516 光敏电阻检测光照,低于按键设置的阈值时自动点亮照明灯;红外对射管监测车库门下是否有人,若检测到障碍物则停止关门并触发声光报警,直至隐患排除;SW-420 震动传感器感知门体被撬动时,立即启动声光报警,并通过 WIFI 将触发时间与 “车库门被撬动” 信息推送至手机端;FSR402 检测到车辆压力时自动开门,无压力时延时关门;OLED 显示屏实时显示时间与光照值,提升信息透明度。
该系统的实现,有效提升了车库门控制的自动化与智能化水平,增强了使用安全性与环境适应性,减少了人工操作成本,为同类智能家居设备的研发提供了参考,具有较高的实际应用价值。
关键词:STM32F103C8T6;车库门控制;传感器;智能监测;WIFI 通信
ABSTRACT
With the increase in car ownership, intelligent control of garage doors has become an important demand for improving the convenience and safety of life. Traditional garage door control mostly relies on manual operation or a single remote control, which has problems such as single function, insufficient safety, and lack of environmental adaptability, making it difficult to meet the needs of modern families for automated and intelligent management.
The garage door control system based on the STM32F103C8T6 single – chip microcomputer integrates the DS1302 clock module, 5516 photoresistor, split infrared pair tube, SW – 420 vibration sensor, FSR402 film pressure detection module, stepper motor, OLED display and ESP8266 WIFI module, realizing the automatic control and all – round safety monitoring of the garage door. The core functions of the system include: obtaining real – time time through DS1302 and supporting key correction to provide a benchmark for time – related functions; realizing remote door opening and closing control on the mobile phone through the WIFI module, and synchronously displaying monitoring data; when the garage door is opened, the 5516 photoresistor detects the light, and automatically turns on the lighting when it is lower than the threshold set by the key; the infrared pair tube monitors whether there is a person under the garage door, and if an obstacle is detected, it stops closing the door and triggers an audible and visual alarm until the hidden danger is eliminated; when the SW – 420 vibration sensor detects that the door body is pried, it immediately starts the audible and visual alarm, and pushes the trigger time and the information “garage door is pried” to the mobile phone through WIFI; the FSR402 automatically opens the door when it detects vehicle pressure, and closes the door with a delay when there is no pressure; the OLED display shows the time and light value in real time to improve information transparency.
The realization of this system effectively improves the automation and intelligence level of garage door control, enhances the safety and environmental adaptability of use, reduces the cost of manual operation, provides a reference for the research and development of similar smart home devices, and has high practical application value.
Keywords:STM32F103C8T6; Garage Door Control; Sensor; Intelligent Monitoring; 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 压力检测模块
3.8 OLED 显示模块
3.9 WIFI 通信模块
3.10 按键模块
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 时钟模块子流程设计
4.5 OLED显示流程设计
4.6 步进电机子流程
4.7 WiFi模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 核心功能联动测试
5.3 安全监测模块测试
5.3.1 红外对射防夹测试
5.3.2 震动防盗测试
5.4 远程控制与数据传输测试
5.5 时钟与显示功能测试
5.6 长期稳定性测试
第6章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!