摘 要
本文设计了一种基于AT89C52单片机的电梯自动控制系统。该系统通过三行按键矩阵开关电路实现外呼内选的呼叫控制,并模拟电梯的实际运行情况。每层楼层的到达信号由10个独立按键模拟传输至单片机,单片机则通过内部电路驱动数码管显示当前楼层数。当电梯到达选定楼层时,模拟开门延时以等待乘客进出并选层,随后执行关门延时以响应请求。若无新的请求,电梯将停在当前楼层等待。软件部分采用C语言编写,利用查询方式检测用户请求的按键信息,实现电梯的自动控制和状态显示。该设计不仅具有实际应用价值,还为电梯控制系统的研究和开发提供了有益的参考。
关键词:AT89C52单片机;电梯自动控制;按键矩阵开关;数码管显示;C语言编程;
Abstract
This paper designs an automatic control system based on AT89C52. The system realizes the call control through the three-line key matrix switch circuit, and simulates the actual operation of the elevator. The arrival signal of each floor is transmitted by 10 independent keys to the MCU, and the MCU drives the current number of floors through the internal circuit. When the elevator reaches the selected floor, simulate the opening delay to wait for passengers to enter and exit and select the floor, and then the closing delay is executed to respond to the request. If there is no new request, the elevator will stop on the current floor waiting. The software part is written in C language, using the query method to detect the key information requested by the user, and realizing the automatic control and status display of the elevator. This design not only has the practical application value, but also provides a useful reference for the research and development of the elevator control system.
Key words: AT89C52 microcontroller; elevator automatic control; key matrix switch; digital tube display; C language programming;
目 录













