Automatic Door Control

Download Project Files = What You Need to Know Before Design =
 * DIGITAL INPUT
 * Adding a Line Label
 * AND
 * DIGITAL OUTPUT
 * NOT
 * TIMER OUTPUT RELAY

Diagram Algorithm

 * The system will have two start and one stop button.
 * The door will open when the first start button (open button) is pressed.
 * When the second start button is pressed (close button) the door will close.
 * The door will continue to open if the close button is pressed while the door is opened.
 * If the open button is pressed while the door is closed, the door will continue to close.
 * If the stop button is pressed at any time when the door is open or closed, the door will stop and then whichever button is pressed will move in that direction.
 * When the door is closed, the door will be opened if you enter the vehicle. The door will close again after the vehicle has passed.

Diagram Solution
https://www.mikrodev.com/images/wiki/en/automatic_door_control.png
 * There are two start buttons that open and close the door.
 * The door can not be opened while the door is closed, it can not be closed while the door is opened.
 * If the stop button is pressed at any time when the door is open or closed, the door will stop and then whichever button is pressed will move in that direction.
 * There are one photocell at the entrance and exit of the door.
 * Photocells consists of transmitter and receiver.
 * Infrared light communicates between the receiver and the transmitter.
 * The receiver and transmitter are mounted mutually.
 * The photocell generates an output signal when an object enters between the receiver and the transmitter.
 * In this system, when the door closes and the first photocell detects the object, the door stops and starts to open again.
 * When the object exits, the second photocell becomes active and the door closes.
 * The stop button stops the entire system.