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