Automatic Door Opener using Arduino

People in wheelchairs encounter accessibility issues with doors every day. It would be difficult to open a door, and even harder to hold sometimes.

At home, many people who use wheelchairs have come up with some solutions for increasing accessibility, either by removing doors entirely, replacing them with sliding doors, or simply leaving their doors open at all times.

These solutions are effective but why should they be different from others while they can lead a successful life as other normal people can, and also the front door of the home cannot be left open all the time. In addition, the cost of purchasing and installing automatic doors is too high.

So, by investigating deeper and checking out different project models online made by lots of intellectual people, I came up with this project model of creating an Automatic Door Opener that is cost-effective and could be useful for everyone.

An Automatic Door Opener System is a simple project based on PIR Sensor and Arduino, which automatically opens and closes the door by detecting a person or object.

You might have seen Automatic Door Opener Systems at shopping malls, cinemas, hospitals etc. where, as soon as a person approaches the door (at about 2 or 3 feet), the door automatically slides open. And after some time (about 5 to 10 seconds), the door closes by sliding in the reverse direction.

Such Automatic Door Opener Systems are very useful as you do not need a person to standby the door and open it whenever a guest comes. Also, since the doors are opened and closed only when a person approaches the door, there is significantly less loss of air conditioning.

So, in order to understand the potential of this concept, I have implemented a simple Automatic Door Opener System using Arduino and PIR Sensor. 


  •  LCD
  •  CD TRAY (Door)



The working of the Automatic Door Opener System using Arduino and PIR Sensor is very simple. This project can be considered as an extension of Arduino, PIR Sensor and Arduino L298N DC Motor Control.

When the PIR Sensor detects any motion of a person, its Data OUT Pin will become HIGH. As this pin is connected to the Arduino, it will detect this HIGH Signal and understands that there is person approaching the door.

Arduino then immediately activates the L298N Motor Driver module to open the door. After some time (about 2 to 5 seconds in this project), the Arduino will once again activate the Motor Drive to close the door.

Circuit Diagram of Automatic Door Opener


Connections for arduino based door opener circuit are shown in the above diagram. Here a PIR sensor is used for sensing human motion which has three terminals Vcc, GND and Dout. Dout is directly connected to pin number 14 (A0) of arduino uno. A 16×2 LCD is used for displaying the status. RS, EN pins of LCD connected to 13 and 12 of arduino and data pins D0-D7 are connected to arduino digital pin numbers 11, 10, 9, 8. RW is directly connected to ground. L293D motor driver is connected to arduino pin 0 and 1 for opening and closing the gate. Here in circuit we have used a motor for gate.

LiquidCrystal lcd(13, 12, 11, 10, 9, 8);

#define PIR_sensor 14
#define m11 0
#define m12 1

void setup() 
  lcd.begin(16, 2);
  pinMode(m11, OUTPUT);
  pinMode(m12, OUTPUT);
  pinMode(PIR_sensor, INPUT);
  lcd.print(”    Automatic    “);
  lcd.print(”   Door Opener   “);
  lcd.print(“Python for fun”);

void loop() 
    lcd.print(“Movement Detected”);
    lcd.setCursor(0, 1);
    lcd.print(”    Gate Opened    “);
    digitalWrite(m11, HIGH);         // gate opening
    digitalWrite(m12, LOW);
    digitalWrite(m11, LOW);          // gate stop for a while
    digitalWrite(m12, LOW);
    lcd.print(”   Gate Closed    “);
    digitalWrite(m11, LOW);           // gate closing
    digitalWrite(m12, HIGH);
    digitalWrite(m11, LOW);            // gate closed
    digitalWrite(m12, LOW);
    lcd.print(”   No Movement   “);
    lcd.print(”   Gate Closed   “);
    digitalWrite(m11, LOW);
    digitalWrite(m12, LOW);

Further this can be enhanced interfacing a counting arrangement for keeping a record of entry and exit of people at particular place.

This can be achieved by interfacing the system with EEPROM ( non-volatile memory) to avoid loss of stored data even if the power fails.

Passive sensors can be used for lower detection zone and can also be used for only human being detection avoiding other objects.

The automatic control system can be implemented in other fields such as Automatic Dam Opening and Closing according to water flow by enhancing it’s hardware and software.

I have made the project with best of my abilities, but with further enhancements we can definitely increase the potential of this system.

Although the project may be stating the obvious, at the end the project proved to be very beneficial for us in all aspects.

Hence I conclude this project perceiving a lot of experience and knowledge in the field of automation.

2 1 vote
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
2 years ago

Suena muy útil la descripción del proyecto.