自动模式下,门的运行方式主要包括开门和关门,还有一些突发状况的处理。当红外装置检测到车时,单片机就会发出开门信号,自动门自动进入开门状态,而当自动门触碰到开门限位开关时就会停下。在检测到没车的情况下延时5s后开始关门,若是中途来车时立即开门。热释电红外传感器故障时,有个安全限位,关门前或关门途中有车,停止关门。
In automatic mode, the operation mode of a door mainly includes opening and closing doors, as well as some unexpected situations. When the infrared device detects the car, the singlechip sends out the signal to open the door, and the automatic door automatically enters the door, and the automatic door will stop when the door touches the opening limit switch. If there is no car detected, the door will be closed after 5S delay. If the vehicle is on the way, it will open at once. When the pyroelectric infrared sensor fails, there is a safety limit. There is a car on the way before closing or on the way to close.
二、手动模式门运行程序的设计
Two. Design of manual mode door operation program
手动模式也是包括开门和关门两个动作,还有一些防夹车功能。首先把按钮按到手动模式,按下开门按钮,开始开门,到达开门极限时,门停止。然后按下关门按钮,按下即开始关门,当光电传感器检测到有车时,关门按钮是无效的,同时关门途中有车时,关门也会中途停止,若一直没车,门到达关门极限会自动停下。
济南车库门
Manual mode also includes two actions: opening and closing, and some anti jam car functions. First, press the button to the manual mode, press the open door button, start the door, and when the door opens to the limit, the door stops. Then press the shutting button and press the door to close the door. When the photoelectric sensor detects that there is a car, the shutter button is invalid. At the same time, when there is a car on the door, the door will stop. If there is no car, the door will stop automatically when the door reaches the door.
三、主程序的设计
Three, the design of the main program
自动门控制系统的主程序主要完成定时器的初始化、中断开关、故障的判断、自动门模式的判断等工作。自动门程序开始后会自动初始化,打开中断,在判断没有故障后便开始运行。在进入模式选择后,程序又会有所差别。
The main program of automatic door control system mainly completes the initialization of timer, interruption switch, fault judgement, automatic door mode judgement and so on. The automatic door program initializes automatically, opens the interrupt, and starts running after judging that there is no fault. After entering the mode selection, the program will also be different.