摘 要:随着自动化水平的提高,自动门在生活中应用日益广泛,很多公共场所出入口均安装上了自动门,给人们出行带来了极大方便。本文利用单片机设计了一种自动门智能控制系统,设计拟采用STC89C52单片机、5线4相步进机、人体感应模块、发光二极管和按键进行设计。系统具有自动开门和手动开门两种模式。系统中采用两个红外人体感应传感器,分别安装在进、出门口。若选择自动模式,则任意一个传感器检测到人体信号就会执行自动开门操作,开门时间为3秒左右;如果门关上的时候感应到人,门就会自动打开,防止误伤到人。在按键模式下,按手动开门键可以手动打开门,按手动关门键可以手动关门。
该论文有图12幅,参考文献15篇。
关键词:自动门 STC89C52 红外人体感应传感器
Automatic door control system
Abstract:With the improvement of automatic level,automatic doors are used on a daily broadening scale.More and more automatic doors are installed in public,which bring much convenience for traveling.This paper uses a single-chip computer to design a system of automatic ,intelligent door.The design prepare to adopt STC89C52,body induction module,light emitting diode and keys.There are two working patterns:manual operation and automatic mode.One of infrared sensors is installed in entering entrance,another is installed in the exit.Under the automatic mode, the door will open when either of two sensors detects human body.The time is 3second.If the sensor detects human body,the door will open automatically in order to protect them.In the manual mode,the door can be opened by pressing the key.
Key Words: Automatic door STC89C52 Infrared body sensor
目 录
摘 要 I
Abstract II
1 绪论 1
1.2 设计的意义及目的 1
1.3 主要性能和技术指标 2
2 自动门控制系统的整体设计 3
2.1 基本设计思路 3
2.2 系统总体框图 3
2.3 单片机型号的选择 3
2.4传感器的选择 4
2.5步进电机选择 5
2.6 总体方案论证 6
3 自动门控制系统硬件设计 7
3.1 STC89C52型号单片机 7
3.2红外热释电模块HC-SR501 8
3.3步进电机 8
4 自动门控制系统软件设计 10
4.1主程序分析 10
4.2子程序分析 11
5 系统调试 13
6 体会 14
参考文献 15
致谢 16
附录 17
图清单
图序号 图名称 页码
图2-1 系统总体框图 3
图2-2 STC89C52型号单片机的引脚图