自動模式下,門的運行方式主要包括開門和關門,還有一些突發狀況的處理。當紅外裝置檢測到車時,單片機就會發出開門信號,自動門自動進入開門狀態,而當自動門觸碰到開門限位開關時就會停下。在檢測到沒車的情況下延時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.