当前位置: 首页 > news >正文

【dz-1044】基于单片机的自动门

基于单片机的自动门

摘要

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

本设计提出了一种基于 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 主程序

http://www.jsqmd.com/news/309278/

相关文章:

  • 【dz-1045】基于STM32的人体生理参数检测系统设计与实现
  • 【dz-1046】基于单片机的全自动洗衣机控制系统设计
  • 【dz-1047】基于单片机的手提文件箱防盗锁设计
  • 【dz-1048】基于单片机的自动避障小车
  • 秒级采集 × 万级点位 × 两万亿条数据管理,「红河复烤」复烤工艺数字化实践
  • 【dz-1040】热水器控制系统
  • 【dz-1041】基于STM32的智能体重秤的设计与实现
  • 【dz-1042】车内滞留儿童远程报警系统设计
  • 如何用CLAUDECODE重塑嵌入式开发
  • springboot企业进销存管理系统演vue论文
  • springboot企业人力资源系统-vue
  • 干法制粒机生产厂家哪家好?混合搅拌机厂家哪家好?2026综合实力推荐盘点
  • 2026超微粉碎机定做厂家推荐/超微振动磨生产厂家推荐分析
  • 粉碎机出口厂家哪家好?2026精选使用好评厂家汇总盘点
  • 米尔顿・弗里德曼:货币主义巨擘与自由市场的思想旗手
  • WeifenLuo
  • 腾讯广告营销服务商:厚拓科技11年全链路赋能,驱动企业增长
  • 更弱智的算法学习 day56
  • 运动粘度仪/全自动运动粘度测定仪/自动低温乌氏粘度测定仪关键技术、应用场景与行业解决方案研究
  • 在哪下载主管护师备考资料?高分心得与资源分享
  • 主管护师备考资料获取与下载通径
  • 什么是SLA、DLP和LCD?一文读懂光固化3D打印三大技术
  • 1.4 xue
  • 2.1xue
  • 微信支付直连商户,自动处理消费者投诉,100多个商户、处理53000多条数据
  • vue2 单文件组件加入浏览器的title和ico的方法
  • 4.2XUE
  • vue展示node express调用python解析tdms
  • 2026执业药师考试资料推荐:高口碑实力榜推荐,测评对比全解析!
  • 3.3 xue