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

设计说明书

总字数:12000+

基于单片机的自动门

摘要

在公共场所和家居环境中,自动门的便捷性与安全性已成为提升通行体验的重要因素。传统自动门常存在感应不灵敏、防夹功能缺失或调节不便等问题,可能导致通行效率低或安全隐患。尤其在人流密集场所,可靠的感应触发、及时的防夹保护及灵活的参数调节对保障通行安全至关重要。因此,研发一种低成本、高可靠性的自动门控制系统具有实际应用价值。

本设计提出了一种基于 STC89C52 单片机的自动门控制系统。系统主要功能包括:通过 HC-R04 超声波传感器检测前方人员距离,当距离小于设定最小值时自动开门,延时 5 秒后自动关门;集成分离式红外对射管实现防夹功能,遇障碍物时立即停止关门动作;借助 HX711 压力检测模块辅助检测人员存在,确保开门响应准确;通过 ULN2003A 芯片驱动步进电机模拟门体运行;支持通过按键设置距离阈值;通过 LCD1602 实时显示当前检测距离值。

该自动门控制系统的作用在于,通过多传感器协同感应提升了开门触发的准确性,防夹功能保障了通行安全,参数可调设计增强了场景适应性。为公共场所及家居环境提供了一种低成本、易操作的自动门解决方案,有效提升了通行便捷性与安全性。

关键词:单片机;自动门;STC89C52;传感器;防夹功能

Automatic door based on microcontroller

Abstract

The convenience and safety of automatic doors have become important factors in improving the travel experience in public places and home environments. Traditional automatic doors often suffer from issues such as insensitive sensing, lack of anti pinch function, or inconvenient adjustment, which may lead to low traffic efficiency or safety hazards. Especially in crowded areas, reliable induction triggering, timely anti pinch protection, and flexible parameter adjustment are crucial to ensuring safe passage. Therefore, developing a low-cost and highly reliable automatic door control system has practical application value.

This design proposes an automatic door control system based on STC89C52 microcontroller. The main functions of the system include: detecting the distance of personnel ahead through HC-R04 ultrasonic sensor, automatically opening the door when the distance is less than the set minimum value, and automatically closing the door after a 5-second delay; The integrated and separated infrared collimator achieves anti pinch function, and immediately stops closing the door when encountering obstacles; Using the HX711 pressure detection module to assist in detecting the presence of personnel, ensuring accurate door opening response; Simulate the operation of the gate body by driving the stepper motor with ULN2003A chip; Support setting distance threshold through buttons; Real time display of the current detection distance value through LCD1602.

The function of this automatic door control system is to improve the accuracy of door opening triggering through multi-sensor collaborative sensing, ensure safe passage with anti pinch function, and enhance scene adaptability with adjustable parameter design. It provides a low-cost and easy to operate automatic door solution for public places and home environments, effectively improving accessibility and safety.

Keywords:microcontroller; Automatic Door; STC89C52; Sensors; Anti pinch function

目    录

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 LCD1602显示模块子流程设计

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

4.5 步进电机子流程设计

5 实物制作与功能测试

5.1 实物制作

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

5.3 压力检测辅助开门功能测试

5.4 防夹保护功能测试

5.5 按键设置与参数调节功能测试

6 总结

参考文献

致谢

附录A   原理图

附录B   PCB

附录C   主程序

购买后可查看具体内容!

发表评论

后才能评论

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

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

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

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

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