设计说明书
总字数:13000+
摘要
在汽车安全领域,车门锁的安全性与便捷性直接关系到车辆及驾乘人员的安全。传统车门锁依赖机械钥匙或单一遥控方式,存在防撬能力弱、缺乏实时安全监测等问题,难以应对车辆停靠时的障碍物遮挡、行驶中的意外震动等安全隐患。因此,研发一种能实时监测车辆状态、自动控制车门锁并具备远程交互功能的智能车门锁十分必要。
本设计提出了一种基于 STM32F103C8T6 单片机的智能车门锁系统。系统主要功能包括:通过红外避障传感器监测车门外是否有障碍物遮挡,若存在遮挡则触发声光报警提醒;借助按键启动车辆(直流电机模拟),当 KY-003 速度监测模块检测到车辆行驶时,自动控制继电器锁定车门;通过 SW-420 震动监测模块感知车辆震动,触发车门锁定并进行声光报警;通过ECBO2蓝牙模块实现与手机端的通信,支持手机远程打开或关闭车门。
该智能车门锁的作用在于,通过多维度状态监测与自动控制,提升了车辆停靠和行驶过程中的安全性。实时报警功能可及时提醒用户规避障碍物,自动锁门机制减少了人为操作疏漏带来的风险,蓝牙远程控制则增强了使用便捷性。为汽车安全防护提供了一种可靠、智能的解决方案,助力提升车辆使用的安全性与舒适度。
关键词:单片机;智能车门锁;STM32F103C8T6;安全监测;远程控制
Design and Implementation of Intelligent Door Lock Based on STM32 Microcontroller
Abstract
In the field of automotive safety, the safety and convenience of car door locks are directly related to the safety of vehicles and passengers. Traditional car door locks rely on mechanical keys or a single remote control method, which has weak anti pry ability and lacks real-time safety monitoring, making it difficult to deal with safety hazards such as obstacles blocking when the vehicle is parked and unexpected vibrations during driving. Therefore, it is necessary to develop an intelligent door lock that can monitor the vehicle status in real time, automatically control the door lock, and have remote interaction function.
This design proposes an intelligent door lock system based on STM32F103C8T6 microcontroller. The main functions of the system include: monitoring whether there are obstacles outside the car door through infrared obstacle avoidance sensors, and triggering sound and light alarm reminders if there is obstruction; Using the button to start the vehicle (DC motor simulation), when the KY-003 speed monitoring module detects that the vehicle is moving, it automatically controls the relay to lock the doors; Sensing vehicle vibration through SW-420 vibration monitoring module, triggering door locking and providing sound and light alarms; Communication with the mobile phone is achieved through the ECBO2 Bluetooth module, supporting remote opening or closing of car doors on the phone.
The function of this intelligent door lock is to enhance the safety of the vehicle during parking and driving through multi-dimensional state monitoring and automatic control. The real-time alarm function can remind users to avoid obstacles in a timely manner, the automatic door locking mechanism reduces the risk of human operation negligence, and the Bluetooth remote control enhances the convenience of use. Provided a reliable and intelligent solution for automotive safety protection, helping to improve the safety and comfort of vehicle use.
Keywords: microcontroller; Intelligent door lock; STM32F103C8T6; Safety monitoring; Remote control
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 红外避障监测模块电路设计
3.4 速度监测模块电路设计
3.5 震动监测模块电路设计
3.6 按键模块电路设计
3.7 蓝牙通信模块电路设计
3.8 执行模块(车门锁控制)电路设计
3.9 声光报警模块电路设计
3.10 直流电机驱动模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 直流电机速度调节子流程设计
4.5 蓝牙模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 障碍物监测与声光报警功能测试
5.3 车辆行驶与自动锁门功能测试
5.4 震动监测与报警锁门功能测试
5.5 蓝牙远程控制功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!