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.