自動(dòng)模式下,門(mén)的運(yùn)行方式主要包括開(kāi)門(mén)和關(guān)門(mén),還有一些突發(fā)狀況的處理。當(dāng)紅外裝置檢測(cè)到車時(shí),單片機(jī)就會(huì)發(fā)出開(kāi)門(mén)信號(hào),自動(dòng)門(mén)自動(dòng)進(jìn)入開(kāi)門(mén)狀態(tài),而當(dāng)自動(dòng)門(mén)觸碰到開(kāi)門(mén)限位開(kāi)關(guān)時(shí)就會(huì)停下。在檢測(cè)到?jīng)]車的情況下延時(shí)5s后開(kāi)始關(guān)門(mén),若是中途來(lái)車時(shí)立即開(kāi)門(mén)。熱釋電紅外傳感器故障時(shí),有個(gè)安全限位,關(guān)門(mén)前或關(guān)門(mén)途中有車,停止關(guān)門(mén)。
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.
二、手動(dòng)模式門(mén)運(yùn)行程序的設(shè)計(jì)
Two. Design of manual mode door operation program
手動(dòng)模式也是包括開(kāi)門(mén)和關(guān)門(mén)兩個(gè)動(dòng)作,還有一些防夾車功能。首先把按鈕按到手動(dòng)模式,按下開(kāi)門(mén)按鈕,開(kāi)始開(kāi)門(mén),到達(dá)開(kāi)門(mén)極限時(shí),門(mén)停止。然后按下關(guān)門(mén)按鈕,按下即開(kāi)始關(guān)門(mén),當(dāng)光電傳感器檢測(cè)到有車時(shí),關(guān)門(mén)按鈕是無(wú)效的,同時(shí)關(guān)門(mén)途中有車時(shí),關(guān)門(mén)也會(huì)中途停止,若一直沒(méi)車,門(mén)到達(dá)關(guān)門(mén)極限會(huì)自動(dòng)停下。
濟(jì)南車庫(kù)門(mén)
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.
三、主程序的設(shè)計(jì)
Three, the design of the main program
自動(dòng)門(mén)控制系統(tǒng)的主程序主要完成定時(shí)器的初始化、中斷開(kāi)關(guān)、故障的判斷、自動(dòng)門(mén)模式的判斷等工作。自動(dòng)門(mén)程序開(kāi)始后會(huì)自動(dòng)初始化,打開(kāi)中斷,在判斷沒(méi)有故障后便開(kāi)始運(yùn)行。在進(jìn)入模式選擇后,程序又會(huì)有所差別。
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.