Professional Documents
Culture Documents
By
Adarsh Singh(1671910004)
Vikas Patel(1671910062)
Usman Ahmad(1671910058)
Suraj Patel(1671910053)
of
Bachelor of Technology
In
“MAY,2020
1
B.Tech. Report On
SHAIL DUBEY
DEPARTMENT OF CS/IT
ROOMA KANPUR
MAY,2020
II
Table of contents page
DECLARATION I
CERTIFICATE II
ACKNOWLEDGEMENT III
ABSTRACT IV
LIST OF FIGURES V
CHAPTER -1 1-7
1-2
1.1 INTRODUCTION
1.2 PROJECT DESCRIPTION 2
CHAPTER 2 8-16
2.2 MICRO-CONTROLLER 11
I
2.6 COMPONENT REQUIREMENT FOR AUTOMATIC DOOR OPENING 15
SYSTEM
2.7 MODULE 16
CHAPTER-3 17-23
3.1 METHODLOGY 17
CHAPTER- 4 24-31
CHAPTER-5 32-33
5.1 CONCLUSION 32
5.3 REFERENCE 33
5.4 APPENDIX
II
DECLARATION
I hereby declare that this submission is my own work and that, to the best of my knowledge and belief,
it contains no material previously published or written by another person nor material which to a
substantial extent has been accepted for the award of any other degree or diploma of the university or
other institute of higher learning, except where due acknowledgment has been made in the text.
Signature : Signature :
Date : Date :
Signature : Signature :
Date : Date :
III
IV
CERTIFICATE
This is to certify that Project Report entitled “Automatic Door Opening System” which is
submitted by Adarsh Singh(1671910004),Vikas Patel(1671910062),Usman
Ahmad(1671910058),Suraj Patel(1671910053) in partial fulfillment of the requirement for the
award of degree B. Tech. in Department of Computer Science & engineering of Dr. A.P.J. Abdul
Kalam Technical University, is a record of the candidate own work carried out by him under
my/our supervision. The matter embodied in this thesis is original and has not been submitted
for the award of any other degree.
Date: Supervisor
IV
V
ACKNOWLEDGEMENT
It gives us a great sense of pleasure to present the report of the B. Tech Project undertaken during B.
Tech. Final Year. We owe special debt of gratitude to Mrs. Shail Dubey ,project coordinator,
Department of Computer Science & Engineering, College of Engineering, kanpur for her constant
support and guidance throughout the course of our work.
We would also like to thank our project guide Mrs. Shail Dubey for constant support and
guidance .His/her constant input throughout the entire project work was remarkable. It is only
his/her efforts that our endeavors have seen of the day.
We also take the opportunity to acknowledge the contribution of Professor Dr Shubha Jain., Head,
Department of Computer Science & Engineering, Axis Institute of Technology and Management,
Kanpur for her full support and assistance during the development of the project.
We also do not like to miss the opportunity to acknowledge the contribution of all faculty members
of the department for their kind assistance and cooperation during the development of our project.
Last but not the least, we acknowledge our friends for their contribution in the completion of the
project.
V
VI
ABSTRACT
The Arduino based automatic door opening system with entry counter for university
library was designed and simulated. To program the micro-controller, Arduino IDE
was used. Proteus Professional software was used to simulate the design. Presence
of every module has been reasoned out and placed carefully, thus contributing to the
best working of the system. In this way, the overall system has been successfully
implemented.
VI
VII
LIST OF FIGURES
1. Circuit diagram
2. Block diagram of Automatic Door Opening System with Entry and Exit Point
3. FLOW CHART
4. DFD
8. Power supply
9. CIRCIUT OF AUTOMATIC DOOR OPENING SYSTEM
10. COMPONENT
VII
VIII
VIII
1
CHAPTER-1
1.1 INTRODUCTION
The automatic door opening systems are used in commercial buildings, shopping
malls, theaters, etc. These systems are used to open the door when a person comes
near to the entrance of the door and closes it after he moves away from the door or
after entering into the door. There are various kinds of sensors are available in the
market to make such types of systems such as Radar sensors, PIR sensors, Infrared
sensors, and Laser sensors, etc. This project uses a PIR sensor to open or close the
door automatically which senses the infrared energy produced by the human body.
When someone approaches the door, the IR energy sensed by the PIR sensor
changes and activates the sensor to open and close the door automatically. Further,
the signal sent to the micro-controller to control the door.
The general operation of the system is whenever there is any person at the entrance
door should be opened. Light focusing on the LDR determines whether a person is
present or not. When there is an object at the entrance, LDR is in dark and
immediately doors are opened. In addition to this, we can add Wi-Fi module, to
upload the door’s present status into the remote cloud and it can be accessed it
from anywhere.
1
2
You will need an Arduino Uno board to act as the brain of the system. The micro-
controller will be connected to a Wi-Fi module to establish an internet connection
program. The system you are going to design will have an LDR (Light Dependent
Resistor) which act as an Eye for the system. You will programme the micro-
controller in such a way that not only the door should be opened, whenever you
some person is standing in front of the door but also it should store the present
status door etc., in the remote cloud simultaneously
2
3
common household appliances. Its blocking voltage varies from 50 volts (1N4001)
to 1000 volts (1N4007).
6. Wi-Fi Module : ESP8266 Wi-Fi module is generally used to establish the
wireless communication between the devices. But this module is not capable of
5-3V logic shifting and will require an external logic level converter.
1. SOFTWARE REQUIRED
2. Arduino IDE : You will be needing Arduino IDE software to write and upload the
programming logic onto the Arduino Uno board
3. Thing-speak : Also, you need to create an account in the Think-speak IoT
platform to integrate the system onto the cloud and store the data online
4. Programming language: Arduino Programming (C++)
Arduino
LDR (Light Dependent Resistor)
7805 IC
IN4007 IC
Wi Fi Module
3
4
Automation
Human Detection
IOT
Opening and closing of doors have been always a boring job, especially in places
where a person is always required to open the door for visitors such as hotels,
shopping malls, and theaters. Here is a solution to open and close the door i.e,
movement sensed automatic door opening and closing system. This project is used
to sense any body movement near the door. This is achieved with the help of
a passive infrared sensor. Generally, a human body emits infrared energy which is
detected by the PIR sensor from a particular distance. This signal which is detected
by the sensor is fed to a controller to function a door motor through motor driver IC.
When a body reaches the operating range of the PIR sensor, it sends a signal to the
micro controller to open and close the door.
Automatic door opening system is used throughout the world. They are used in
theaters, etc. These systems are used to open the door when a person comes
near to the entrance of the door and close after entered into the door. The
The entry unit is outdoor equipped for the entry door while the exit unit is indoor
equipped for the exit door. The PIR sensor senses the infrared energy produced by
the human body from a considerable distance. This sensing signal is fed to a micro-
controller to operate the door motor through motor driver.
4
5
Automatic Door Opening System with Entry Counter The entry unit is equipped at
the entry door of library. If there is no further movement within the PIR operating
range, the LCD shows welcome message. When a body approaches within the
operating range of the sensor, it sends a logical command to open the door, the LCD
show “Door Opened” and count the entry person. The counting result is shown on 7-
segment display. And then the door automatically closes with a fixed time delay and
the LCD show “Door Closed”.
In the exit unit, the door is opened or closed by sensing PIR sensor. Real time format
is shown on LCD according to RTC module. The quotes for library is also shown on
LCD
Interfacing to Counter
Interfacing to LCD
The circuit connection of an automatic door opening system is shown above. Here, the PIR
sensor consists of three terminals such as Vcc, Dout, and GND. Where Dout pin is directly
connected to pin14 (A0) of Arduino UNO. An LCD display is used to display the status. LCD
display pins RS and EN are connected to 12 and 13 pins of Arduino. Data pins namely D0 to
D7 are connected to Arduino digital pins 8,9,10,11 and RW is directly connected to the GND
terminal. Motor driver L293D is connected to pin0 and pin1 of Arduino for opening & closing
the door. Here in the above circuit, a motor is used for a door.
5
6
The circuit diagram of an automatic door opening and closing system is shown
below. The circuit is built with an Arduino UNO, 16×2 LCD, PIR sensor, connecting
wires, breadboard, 1 k resistor, power supply, motor driver and DVD. The micro-
controller (Arduino Uno) needs to receive supply power. Recommended power
supply for Arduino Uno is from 7V to 12V. [1] A PIR sensor is able to sense motion,
and are often used to detect whether a human has moved into or out of the sensor’s
range about six meters. [8] The output pin of the PIR sensor is connected to pin 17 of
Arduino Uno. The DS1307 Real-time clock (RTC) counts seconds, minutes, hours,
date of the month, day of the week, and year with leap-year compensation valid up
to 2100. [9] The serial data (SDA) pin and serial clock (SCl) pin are connected directly
to SDA and SCL pins of Arduino Uno. CD4033 is a 5 stage Johnson decade counter
which convert the Johnson code to 7-segment decoded output. Pin 5 is used to
complete one cycle for every 10 clock input cycle and is connected to pin 7 of
Arduino Uno. A 20x4 LCD means it can display 20 characters per line and there are 4
such lines. [11] The data pins of LCD are connected to pin 8 to 11 of Arduino Uno.
L293D is a dual H-bridge motor driver IC that acts as a current amplifier to provide a
higher-current signal. This higher current signal is used to drive the motors. [12] The
input pins are connected to pin 0 and pin 1 of Arduino Uno
6
7
1.5 AUTOMATIC DOOR OPENING SYSTEM WORKING
This automatic door opening system project is used to open and close the door
automatically using the PIR sensor. The hardware and software requirements of this
project mainly include; 8051 series micro-controller, transformer, PIR sensor, the
motor with sliding door, motor driver IC, diodes, resistors, capacitors, crystal and
transistor, Keil compiler, language: embedded C Or assembly.
This proposed system uses a PIR sensor to sense the human body movement near to
the door. Generally, a human body emits infrared energy in the form of heat, which
is detected by the PIR sensor from a particular distance. Then the sensing signal is
fed to an 8051 microcontroller to function a door motor via motor driver IC.
When a live body approaches the operating range of the PIR sensor, it sends a signal
to open the door. The door routinely closes with a particular time delay. If there is no
extra movement within the operating range of a PIR sensor. Interrupt indications are
used through limit switches to avoid the motor’s locked rotor condition.
CHAPTER-2
7
8
This proposed system uses a PIR sensor to sense the human body movement near to
the door. Generally, a human body emits infrared energy in the form of heat, which
is detected by the PIR sensor from a particular distance.
ACCESSBILITY
Since automatic doors can be opened without the use of hands, they offer
convenience to everyone even with baggage in both hands or carrying a cart.
Automatic doors are widely used at high traffic places like commercial buildings,
hotels and public facilities to show care and good customer service.
ENERGY SAVING
HYGIENE CONTROL
8
9
SYSTEM REQUIREMENTS
The hardware and software requirements of this project mainly include; 8051 series
micro-controller, transformer, PIR sensor, the motor with sliding door, motor driver
IC, diodes, resistors, capacitors, crystal and transistor, Keil compiler, language:
embedded C Or assembly.
REQUIREMENT OF HARDWARE
SOFTWARE REQUIREMENT
REQUIREMENT OF HARDWARE
a) PIR Sensor
b) Micro-controller
c) LCD Display
SOFTWARE REQUIREMENT
In the Automatic Door Opening System, the main component or hardware is the
sensor which detects the persons (well, the motion of the person in our case).
For this purpose, we will be using the PIR Motion Detector Sensor.
9
10
We have already seen in the Arduino PIR Sensor Tutorial about how a PIR Sensor
Works and how to interface a PIR Sensor to an Arduino. Before continuing with
this project, I suggest you to take a look at the Arduino PIR Sensor Tutorial.
For the purpose of demonstration, I have used a CD Tray to replicate the door.
Whenever the PIR Sensor detects a motion, the CD Tray opens and then closes
after some time.
In order to control the 5V DC motor in the CD Tray, I’ve used the L298N Motor
Driver Module. I’ve already done a tutorial on controlling a DC Motor using Arduino
and L298N Motor Driver Module. Also read: Arduino DC Motor Control using
L298N
This system uses a PIR sensor to sense the human body movement near to the
door. Generally, a human body emits infrared energy in the form of heat, which
is detected by the sensor from a particular distance. Then the sensing signal is
fed to an 8051 microcontroller to function a door motor via motor driver IC.
These sensors are quite effective, but have one major shortcoming: they can
only detect motion. Therefore, a person standing still or walking very slowly (like
senior citizens) might not be detected, which can lead to accidents.
PIR SENSOR
10
11
2.2 MICROCONTROLLER
LCD DISPLAY
MOTOR DRIVER IC can drive motor simultaneously in its common mode, both in
forward and reverse direction.
These days, however, most automatic doors use motion detection sensors or optical
sensors, which are installed on the sides of the door, to trigger the opening/closing
11
12
of doors. These sensors, as their names imply, detect or ‘look for’ motion in front of
the gate. In these sensors, motion is detected by a microwave beam (10.5 GHz)
produced by an antenna that is installed on the door header and generally points in
the downward and outward direction.
FLOW CHART
12
13
2.5 TECHNOLOGY REQUIREMENTS
Most automatic doors use motion detection sensors or optical sensors, which are
installed on the sides of the door, to trigger the opening/closing of doors.
Many people tend to believe that automatic doors are an invention of the modern
world, but it may surprise you to know that automatic doors have been around
for almost half a century. Over time, these doors have become more technologically
sophisticated, but the idea has been around for quite a while! All automatic doors,
irrespective of their type or design, consist of sensors that help trigger the
opening/closing of doors when the need arises.
In the 1960s, ‘control mats’ were used as sensors to detect the approach of
pedestrians. These mats detected changes in the weight/pressure on a specific area
of the ground in front and back of the gates. If the weight that a particular area
experienced was more than the set limit (the ‘trigger limit’ was set lower than the
average human weight), then the doors would open.
FRONT END
Note that these sensors work efficiently by themselves, but different sensors are
often used in various combinations in a single system to prevent hiccups or
oversight. For example, motion sensors do their job of triggering the opening
mechanism as soon as they sense or ‘see’ motion in front of the doors. However, if
the individual is moving too slowly or standing still near the doors, the pressure
sensors detect the weight of the individual and prevent the doors from closing until
the weight is relieved, i.e., the person moves away from it or pass through the
doorway.
13
14
BACK END
After the sensors detect the presence of an individual, the job of actually
opening/closing the doors must be completed. Sensors are connected to an
electronic drive train, which is attached to the panels of the door through an
auxiliary drive or a cog wheel. The auxiliary drive is connected by rubber belts that
regulate the opening and closing motions of the doors. At the bottom of these doors
are rollers that allow the doors to slide so smoothly. A person would have to stand
or walk over the pressure-sensitive area due to its strategic placement
The advantage of using this kind of system was, and still is, that the doors remain
open as long as there is pressure on the mat, or in other words, if there is a person
standing/walking near the doors. This not only makes it easy for swift entry/exit, but
also prevents the doors from ‘closing in’ on an individual.
2.7 Module
The circuit connection of an automatic door opening system is shown above. Here,
the PIR sensor consists of three terminals such as Vcc, Dout, and GND. Where Dout
14
15
pin is directly connected to pin14 (A0) of Arduino UNO.
DFD
An LCD display is used to display the status. LCD display pins RS and EN are
connected to 12 and 13 pins of Arduino. Data pins namely D0 to D7 are connected to
Arduino digital pins 8,9,10,11 and RW is directly connected to the GND
terminal. motor is used for a door
15
16
CHAPTER-3
3.1 METHODLOGY
Gather all hardware required to assemble system. LCD and Piezo Buzzer is not a
mandatory requirement of this system. These are added just only for Visual and
Audio identification to user for status of door whether it is open or closed. To starts
making such mechanical system following elements and
tools are required...
MATERIAL
ATMEL : ATmega328-PU
The Module automatically sends eight 40 kHz and detect whether there is a pulse
signal back
IF the signal back, through high level , time of high output IO duration is the time
from sending ultrasonic to returning
16
17
Test distance = (high level time X velocity of sound (340M/S) / 2
4. 12V DC Motor
Weight : 30gm
6. Piezo Buzzer
The L293 and L293D devices are quadruple high current half-H drivers. Reason to use
Motor shield :
You can run motor directly connect to 9-12 V DC supply. The motor will draw current
as much it requites from 12V DC supply. But In this project we have to control motor
with program instruction so we have to connect motor through the arduino
controller which output voltage and current is limited. So when you connect motor
to arduino controller it will draw more current at 5V. So there will be chances to
burn controller. To prevent micro-controller to burn, i used motor shield. which is
simply acts as amplifier.
17
18
8. Mechanical elements : To make a prototype i used plastic acrylic sheet and cut
them into peaces to make a house type model having sliding door.
9. Jumper Wires
10 Power Supply
TOOLS
1. Multi-meter
2. Soldering Iron
The tools are not required, but if you have then you will be good.
18
19
3.1.2 STEP 2: ARDUINO PROGRAM
int in2 = 3;
int sensor = 8;
void setup()
Digital write(in1,LOW);
Digital write(in2,LOW);
while(mills()<13000)
delay(50);
delay(50);
Digital write(in1,LOW);
19
20
Digital write(in2,HIGH);
void loop()
If (digital read(sensor)==HIGH)
Digital write(in1,HIGH);
Digital write(in2,LOW);
delay(2000);
Digital write(in1,LOW);
Digital write(in2,LOW);
delay(2000);
Digital write(in1,LOW);
Digital write(in2,LOW);
20
21
21
22
Connects all hardware to arduino controller. The attached schematics are just for the
reference only. You may use pins as per available at controller board. The best way
you can use my program for pin information. Also you raise me request to share
Provide
22
23
CHAPTER-4
Automatic Door Opening System is a simple automated system, where the door is
automatically opened up on detecting a person and automatically closes after some
time. Opening and closing of doors have been always a tedious and boring job,
especially in places where a person is always required to open the door for visitors
such as hotels, shopping malls, theaters, etc.
Automatic door opening systems are used in many places like shopping malls, bur or
railway stations, airports, etc. to eliminate manual control of opening and closing the
doors. Automatic door opening systems can be implemented using different sensors
like Infrared, pressure, ultrasonic, laser etc. This project deals with an interesting
manner of automating the process of opening and closing the door by detecting the
presence of a human.
23
24
Power supply
This automatic door opening system project is used to open and close the door
automatically using the PIR sensor. The hardware and software requirements of this
project mainly include; 8051 series micro-controller, transformer, PIR sensor, the
motor with sliding door, motor driver IC, diodes, resistors, capacitors, crystal and
transistor, Keil compiler, language: embedded C Or assembly
The principle of the project lies in the functioning of the PIR Sensor. A PIR or Passive
Infra-red Sensor, as the name indicates, doesn’t emit infrared rays but only detects
them.
All humans emit infrared radiations in the form of body heat. A PIR Sensor will
capture the difference between the room temperature and body temperature in the
form of change in infrared radiation.
This change in infrared pattern is converted to a voltage. The voltage from the Data
Out of the PIR Sensor can be given to a micro-controller for further processing like
controlling a motor etc.
24
25
CIRCUIT DIAGRAM
AT89C51 Micro-controller
AT89C51 Programmer Board
11.0592 MHz Quartz Crystal
2 x 22pF Ceramic Capacitor
2 x 10KΩ Resistor
10µF Electrolytic Capacitor
Push Button
16 x 2 LCD Display
3 x 1KΩ Resistor
25
26
10KΩ POT
Passive Infrared Sensor (PIR Sensor)
L293D Motor Driver
Motor
Connecting Wires
PIR Sensor
26
27
The range of this sensor is 30 feet. It can be reduced to 15 feet using a jumper. The
output of a PIR sensor is a digital output. So interfacing a PIR with micro-controller
is very easy and simple as all you need to do is to check for the pin to go high or
low.
For proper operation, the PIR sensor must be given a warm up time of 20 to 60
seconds. During this time, the PIR sensor calibrates itself .If the sensor is not given
enough calibrating time, the output of the PIR sensor may be erroneous. PIR
Datasheet
The motor driver used in the project is L293D. It is a dual H-bridge motor driver
integrated circuit (IC).
MOTOR DRIVER
Motor drivers act as current amplifiers since they take a low current control signal
and provide a higher current signal which drives the motors.
It can drive two motors simultaneously in its common mode, both in forward and
reverse direction. L293D Motor Drive is available in 16-pin Dual in-line Package.
27
28
The main components of the project are 8051 Micro-controller, 16 x 2 LCD
Display, PIR Sensor, L293D Motor Driver and a motor.
First we’ll see the connections of micro controller. A reset switch is needed to
reset the micro-controller. The reset switch is generally associated with a 10K
Resistor and a 10uF capacitor. The connections are mentioned in the circuit
diagram.
An 11.0592 MHz crystal along with two 22pF Capacitors will form the
external oscillator circuit for the micro-controller. The EA pin must be
connected to Vcc using a 10K Resistor.
The 16 x 2 LCD is used to display the status and other messages. The
connections of the LCD are mentioned in the circuit diagram. A 10K POT is
connected to Pin 3 of the LCD to adjust the contrast.
The RS, RW and E pins of the LCD must be connected to PORT 0 pins i.e. P0.0
to P0.2. But before that, the PORT 0 pins must be pulled high using 1K
resistors. The data pins of the LCD i.e. D0 to D7 are connected to PORT 2 of
the micro-controller.
The PIR Sensor has only one data out pin. It must be connected to P3.0 of the
micro-controller. The other two pins are power supply pins.
The next component is the motor driver. Connect the two input pins i.e. IN1
and IN2 (Pins 2 and 7) to P3.6 and P3.7 of the micro-controller. Also the
Enable 1 (EN1 – Pin1) is connected to Vcc to enable the driver channel 1. A
motor is connected to OUT1 and OUT2 (Pins 3 and 6) of the motor driver.
28
29
The aim of this project is to design an Automatic Door Opening system using 8051
micro-controller, in which the door is automatically opened and closed by detecting
the movement of a person.
Before going to the working of the project, let us see the basic requirements of the
project.
When a person approaches the door through the doorway, the system must
detect the person and open the door automatically.
The door should stay open as long as the doorway is not clear i.e. as long as the
system detects a person.
Once the doorway is cleared, the system must close the door automatically and
wait for the next person.
Considering the above requirements, the working of the project is explained here.
Once we turn on the circuit, the micro-controller will initialization the PIR sensor
with a settling time of 20 seconds for the sensor to calibrate the surroundings.
During this time, the LCD will display the message as Loading.
Once the setup is done, the PIR sensor is now ready to detect the human movement
within its range. At this time, the micro-controller will display the message as
Scanning on the LCD display.
If there is any human movement in front of the PIR Sensor, it will detect the
movement and indicate the micro-controller by making the data out pin Logic HIGH.
Now, the micro-controller will open the door by initialing the motor driver. A
welcome message is displayed on the LCD. The door remains open as long as the
data out from the PIR Sensor is high.
When there is no human movement, the data out of the PIR Sensor becomes LOW.
Once the data out is LOW, after a small delay, the door is automatically closed and
comes back to initial position.
29
30
APPLICATION AND ADVANTAGE
30
31
OUTPUT OF THE SYSTEM
CHAPTER-5
5.1 CONCLUSION
Integrating features of all the hardware components used have been developed in it.
Presence of every module has been reasoned out and placed carefully, thus
contributing to the best working of the All rights Reserved Page 89 unit. Secondly,
using highly advanced IC’s with the help of growing technology, the project has been
successfully implemented. Thus the project has been successfully designed and
tested.
31
32
5.3 REFERENCE
1. http://www.ehow.com/list_7521509_types-automatic-handicap-door-openers.
2. htmlhttp://www.ehow.com/how-does_4596955_motion-sensor-work.html
3. http://www.handicappedequipment.org/automatic-handicap-door-openers/
4. http://en.wikipedia.org/wiki/Automatic_swing_door_opener
5. https://www.youtube.com/watch?v=C9AKrdWoKPs
6. https://youtu.be/yDS6Umvh5gc
32