首页 实物资料 仿真资料 开题报告 设计说明书 答辩PPT

设计说明书

总字数:14000+

基于单片机的自动门设计

摘要

随着智能化技术在公共设施领域的普及,自动门因能提升通行效率与便捷性,成为商场、办公楼等场所的常用设备。传统自动门存在感应不灵敏、防夹功能缺失、控制方式单一等问题,可能带来通行不便或安全隐患。因此,研发一款集智能感应、安全防护与多元控制于一体的自动门系统具有重要现实意义。

本设计提出一种基于 STC89C52 单片机的自动门系统。系统核心功能包括:通过 HC-R04 超声波传感器检测前方人员距离,当距离小于设定最小值时自动开门,延时 5 秒后自动关门;采用分离式红外对射管实现防夹功能,避免关门时夹伤人员;通过 ULN2003A 驱动模块控制四相五线步进电机模拟门体开合动作;配备按键模块,可设置感应距离最小值及实现门体急停控制;通过 LCD1602 显示屏实时显示检测的距离值;集成 ECBO2 蓝牙模块,将检测数据上传至手机端,同时支持手机远程控制门的开关状态。

该系统的作用在于提升自动门的智能化水平与安全性。超声波感应与自动开关功能减少了手动操作,提高通行效率;防夹功能通过红外对射实时监测,保障人员安全;按键与蓝牙远程控制结合,满足不同场景下的操作需求;距离显示功能增强系统交互性与可控性。整体设计以 STC89C52 单片机为核心,硬件结构简洁,运行稳定,为公共场所的自动化通行管理提供了经济实用的解决方案。

关键词:单片机;自动门;超声波感应;防夹功能;蓝牙控制

Design of Automatic Door Based on Single Chip Microcomputer

Abstract

With the popularization of intelligent technology in the field of public facilities, automatic doors have become a commonly used equipment in shopping malls, office buildings, and other places due to their ability to improve traffic efficiency and convenience. Traditional automatic doors have problems such as insensitive sensing, lack of anti pinch function, and single control mode, which may bring inconvenience or safety hazards to passage. Therefore, developing an automatic door system that integrates intelligent sensing, safety protection, and multiple controls is of great practical significance.

This design proposes an automatic door system based on STC89C52 microcontroller. The core functions of the system include: detecting the distance of personnel ahead through HC-R04 ultrasonic sensors, automatically opening the door when the distance is less than the set minimum value, and automatically closing the door after a 5-second delay; Using a separated infrared collimator to achieve anti pinch function, avoiding personnel injury when closing the door; Control the four phase five wire stepper motor to simulate the door opening and closing action through the ULN2003A driver module; Equipped with a button module, it can set the minimum sensing distance and achieve emergency stop control of the door body; Real time display of detected distance values through LCD1602 display screen; Integrate ECBO2 Bluetooth module, upload detection data to mobile phone, and support remote control of door opening and closing status from mobile phone.

The purpose of this system is to enhance the intelligence and safety of automatic doors. Ultrasonic induction and automatic switch function reduce manual operation and improve traffic efficiency; The anti pinch function is monitored in real-time through infrared radiation to ensure personnel safety; Combining buttons with Bluetooth remote control to meet operational needs in different scenarios; The distance display function enhances the system’s interactivity and controllability. The overall design is centered around the STC89C52 microcontroller, with a simple hardware structure and stable operation, providing an economical and practical solution for automated traffic management in public places.

Keywords:microcontroller; Automatic Door; Ultrasonic induction; Anti pinch function; Bluetooth 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 蓝牙通信模块电路设计

4 系统程序设计

4.1 编程软件介绍

4.2 系统主流程设计

4.3 独立按键

4.4 OLED显示流程设计

4.5 蓝牙模块子流程

4.6 超声波检测模块子流程设计

4.7 步进电机子流程设计

5 仿真绘制与功能测试

5.1 仿真绘制

5.2 超声波检测与自动开门功能测试

5.3 防夹功能测试

5.4 按键控制功能测试

5.5 显示功能测试

5.6 蓝牙通信功能测试

6 实物制作与功能测试

6.1 实物制作

6.2 超声波检测与自动开门功能测试

6.3 防夹功能测试

6.4 按键控制功能测试

6.5 显示功能测试

6.6 蓝牙通信功能测试

6 总结

参考文献

致谢

附录A   原理图

附录B   PCB

附录C   主程序

购买后可查看具体内容!

发表评论

后才能评论

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源