摘要
随着社会的发展,科学技术的进步和人们生活水平的逐步提高,各种方便生活的自动控制系统开始进入人们的生活,以单片机为核心的自动门系统是其中的一个。本文设计了基于单片机的地铁自动门,以单片机系统为主体,以直流电机转速测量为核心,实现对地铁车站门的自动控制。
本设计以8051为核心的直流电机控制系统,红外传感器,磁力开关组合。直流伺服电机的正反转,用单片机逆旋转控制程序,打开和关闭控制,直流电机由桥驱动。充分发挥单芯片的性能。该电路的优点是简单,软件功能完善,控制系统可靠,价格高,具有一定的使用和参考价值。
关键词:地铁自动门;直流电机;红外传感器;转速测量
Abstract
With the development of society, the progress of science and technology and people’s life level gradually improve, all sorts of convenience life automatic control system began to enter into people’s lives, the automatic door systems with SCM as the core is one of them. This paper introduces the design of metro automatic door, based on single chip microcomputer as the subject in this system, dc motor, speed measurement as the core, realize the automatic control to iron.
This design is mainly used the 8051 as control core, combin of DC motors, infrared sensors, magnetic switch.Making full use of the microcontroller performance. Through the microcontroller program control the dc servo motor foreward or inversion, thus control the door open or close; and close Dc motor driven adopt H bridge.Its advantage is the circuit is simple, software’s function is consummation, the control system is reliable, cost-effective is high,it has a certain use and reference value.
Keywords: Metro automatic door;DC motor;Infrared sensors;Speed measurement
目 录
1.4 国内外相关研究情况………………………………….. 2
2.1 设计思想和整体框图………………………………….. 3
3 自动门系统的硬件设计…………………………………….. 6
4.1 整体程序流程图…………………………………….. 20
4.2.1 PWM信号发生程序设计…………………………… 20
4.2.2 转速测量模块程序设计………………………….. 23