in

Automatic door open project using PIR

Arduino automatic door opener

Welcome to the Quanta project, in this project we are going to make an automatic door control system as you see in the shopping malls, movie theatre, etc. so we will make this project with the help of Arduino and PIR sensor. you need to learn only the basic coding to make this project. the automatic door opener is most famous nowadays you can see this at many places.so why don’t you try our own. to learn about all the processes read all the instructions carefully given in the article.

 

It uses a motion sensor (PIR sensor) to open or close the entryway which can sense the infrared light radiated from the human body. At the point when somebody comes in front of the entryway, the infrared vitality distinguished by the sensor changes and it triggers the sensor to open the entryway at whatever point somebody moves toward the entryway. The sign is additionally sent to Arduino Uno that controls the entryway.

to make this project we need some components as given as follows. 

  1. Arduino UNO
  2. 16×2 LCD
  3. PIR Sensor
  4. Connecting wires
  5. Breadboard
  6. 1 k resistor
  7. Power supply
  8. Motor driver
  9. CD case (DVD Trolly) uses as the gate 

Arduino Uno works like a brain and can be used in any programmable project. so, Arduino is used here to complete all the instruction run here in the project. and the main components of this project is the PIR sensor. which can sense the appearance of the human body walk nearby the sensor. the passive infrared sensor is actually the IR sensor that senses a particular amount of the infrared which radiated from human body. and there are some another components for using to make the project work. let’s see the circuit needed for the project. 

Circuit diagram for Automatic door open project using PIR

Code for Automatic door open project using PIR

#include <LiquidCrystal.h>

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.setCursor(0,1);

  lcd.print(”   Door Opener   “);

  delay(3000);

  lcd.clear();

  lcd.print(“CIRCUIT DEGEST “);

  delay(2000);

}

void loop()

{

  if(digitalRead(PIR_sensor))

  {

    lcd.setCursor(0,0);

    lcd.print(“Movement Detected”);

    lcd.setCursor(0, 1);

    lcd.print(”    Gate Opened    “);

    digitalWrite(m11, HIGH);         // gate opening

    digitalWrite(m12, LOW);

    delay(1000);

    digitalWrite(m11, LOW);          // gate stop for a while

    digitalWrite(m12, LOW);

    delay(1000);

    lcd.clear();

    lcd.print(”   Gate Closed    “);

    digitalWrite(m11, LOW);           // gate closing

    digitalWrite(m12, HIGH);

    delay(1000);

    digitalWrite(m11, LOW);            // gate closed

    digitalWrite(m12, LOW);

    delay(1000);

  }

 

  else

  {

    lcd.setCursor(0,0);

    lcd.print(”   No Movement   “);

    lcd.setCursor(0,1);

    lcd.print(”   Gate Closed   “);

    digitalWrite(m11, LOW);

    digitalWrite(m12, LOW);

  }

}

Upload the given code into yuour arduino.

What do you think?

0 points
Upvote Downvote

Written by shahid

Leave a Reply

Your email address will not be published. Required fields are marked *

What Is MPU6050?

Colour Sorting Machine Project