Automatic Door Opening System
Automatic Door Opening System
SEMISTER PROJECT
PREPARED BY
Name ID.NO
1. ASHENAFI BIRHANU…………R/0238/06
2. ASMELASH HAILE…...………R/0244/06
3. MENTESNOT TESFAYE…….…R/1208/06
4. MINYAMER GELAWE…………R/1298/06
5. REDIET GENETU….….…...........R/1476/06
Automatic door opening system ASTU June - 2017
Acknowledgment
We are grateful thanks Dr. Santosh for their helpful material. Also we could not have
done this project without Mr. Hinsermu Alemayehu(HOD) and Mr. Wondeson belaygebaw
patience and support. We would like to thanks to our ad-visor Dr. Santosh for suggestions, his
repeatedly advice, comment, and feedback for us. His constructive support and guidelines the
completion of the project works.
Finally, we would like to thank the anonymous reviewers who provided excellent
suggestions for improving the project and we express our heartfelt thanks to all our friends who
stands by our side from 4thyear Electrical and computer engineering department students, who
have been giving a constant source of encouragement for a successful completion of this
project.
Abstract
In this project paper we try to investigate the automatic door opening system using PIR
sensor. Opening and closing of doors is always a tedious job, especially in places like shopping
malls, hotels and theaters where a person is always required to force the door and also It may
impossible or hard to open the conventional door while seated in a wheelchair or navigating
with crutches and people with disabilities in their hands and arms, conventional doors can
present a real obstacle for thus persons. We design it to make life to be easy and smart.it can
completely avoid the person to force the door manually instead he/she simply go near to door
then the door will open by itself it is not a magic but it all about new technology invention.
Simply by combining a DC motor with a micro controller(Arduino-Uno) we make it possible.
This project contains different components like Arduino-Uno, DC motor and PIR sensor.
The objective of this paper is to control the DC motor by using micro controller(Arduino-Uno)
So that first anybody movement near the door will be detected this is achieved with help of a
PIR (Passive Infrared) sensor from a considerable distance and the signal fed to Arduino-Uno
by this means Arduino-Uno operate a DC motor through motor driver IC and according to the
code which loaded on it, it sends a logical command to open the door and adjust the opening
time duration and also automatically closes the door with a fixed time delay after someone enter
through the door. However, if the person stays or fail in the middle of the door the PIR sensor
continuously detect and an interrupt signals will give to the Arduino-Uno then again according
to the code it provides the DC motor to stay open and give some alert to avoid injury. The
power supply consists of a step down transformer 230/12V. This is converted to DC using a
Bridge rectifier and it is then regulated to +5V by voltage regulator 7805.
Key words
Arduino-Uno, DC motor, PIR (Passive Infrared sensor) and motor driver IC (integral circuit)
Contents Pages
Acknowledgment......................................................................................................................................................................i
Abstract ...................................................................................................................................................................................ii
LIST OF TABLES ....................................................................................................................................................................... 2
LIST OF FIGURES ..................................................................................................................................................................... 2
LIST OF ABBRIVATION............................................................................................................................................................. 2
CHAPTER ONE ......................................................................................................................................................................... 3
1. INTRODUCTION........................................................................................................................................................... 3
1.1 Background ..................................................................................................................................................................4
1.2 Statement of problem...................................................................................................................................................4
1.3 Objective of the project ...............................................................................................................................................4
1.4 Methodology ................................................................................................................................................................5
1.5 Block diagram...............................................................................................................................................................7
1.6 Significance of the Project ............................................................................................................................................7
1.7 Limitation of the project ..............................................................................................................................................9
CHAPTER TWO ...................................................................................................................................................................... 10
2 LITERATURE REVIEW ..................................................................................................................................................... 10
2.1 Review of components used in the project ................................................................................................................10
CHAPTER THREE ................................................................................................................................................................... 21
3. SYSTEM DESIGN AND DESCRIPTION ............................................................................................................................. 21
3.1 Components of Automatic door opening system........................................................................................................21
3.2 Overall operation of the project ..................................................................................................................................22
CHAPTER FOUR ..................................................................................................................................................................... 29
4. RESULT AND ANALYSIS ................................................................................................................................................. 29
4.1 Result .........................................................................................................................................................................29
CHAPTER FIVE ....................................................................................................................................................................... 30
5. CONCLUSION AND RECOMMENDATION ...................................................................................................................... 30
5.1 Conclusion ..................................................................................................................................................................30
5.2 Recommendation ........................................................................................................................................................30
REFERENCES ......................................................................................................................................................................... 31
APPENDEX ............................................................................................................................................................................ 32
Automatic doors are doors which open automatically without no one push or pull it.it
simply open when approached by someone rather than needing to be opened manually with a
door handle or bar.
A door fitted with a spring to close it is not an automatic door. Automatic door is one of
the applications of advanced sensor technology and computer programmable controller
(Arduino-Uno micro controller). The electromechanical actuators to open and close a door will
be controlled through motor drive IC which adjusted by Arduino-Uno signal output.
Designs for automatic doors are vary. Some slide open, while others consist of panels
which fold when people enter or exit, and others swing in or out like conventional doors.
However, the doors are equipped with a motion sensor which can detect a motion when they
approach, and the sensitivity of the sensor can be adjusted as needed for people in wheelchairs
and other disabled individuals.
Automatic doors are an immense boon since conventional doors being very hard to work
with, in most case It may be impossible or hard to open the conventional door while seated in a
wheelchair or navigating with crutches and people with disabilities in their hands and arms,
conventional doors can present a real obstacle for thus persons, so to avoid this kind of
difficulty an automatic door opening system will be required mostly because it is free from any
manual operation.
Automatic door opening system is one of the applications of embedded system. it work
with the collaboration of micro controller (Arduino-Uno) and DC motor through PIR sensor.
Alive body generally emits infrared energy which is sensed by the PIR sensor from a
consideration distance. This sensing signal is fed to microcontroller to operate door through
motor driver IC. first the motion near the door detected by the PIR sensor and the signal send to
1.1 Background
Most of the time people in wheelchairs and other disabled individuals are challenged to
open the door so automatic doors are an immense boon for thus person since conventional doors
can be very hard to work with. It may be impossible to open conventional door while seated in a
wheelchair or navigating with crutches and for people with disabilities in their hands and arms,
conventional doors can present a real obstacle. Due to this problem we try to investigate a
solution.
In places like shopping malls, hotels, Airport and theaters the door frequently open and
cloth if it is manually the reliability of the door will be fail because of unnecessary force applied
on the door however by using automatic door opening system we can operate the door by a Dc
motor by this means we can improve the life time of the door.
To allow pedestrians to gain easy entrance in and out without having anyone to keep opening and
closing the sliding door. Especially for disable persons.
1.4 Methodology
In the first stage of conducting the project we are going to search for reading materials.
Since we are going to use digital devices, we are expected to refer points on the working
principles, logical characteristics and general operation principle of those components. And we
may use any related materials and/or their electronic equivalents that can provide us any help
throughout the design process.
And we determine the appropriate power supply for the components. As well as we check
our preceding work and the connections before our next step. And we will draw the right circuit
making it ready for simulation.
LEDs
AC - DC
Fig 1.1 Block diagram representation of the automatic door opening system
Advantages
It’s Accessibility
Automatic sliding doors are user-friendly and virtually self-sufficient. It provides disabled and
aged people easy access, since they are not obliged to open or close the door by themselves.
Security personnel can remotely control automatic doors. They can grant access to selective
traffic or deactivate it, had there been children trying to access the premises.
Although glass is regarded fragile and brittle, the automatic sliding glass doors are made of
toughened material which is almost five times stronger than normal safety glass doors.
Automatic sliding doors are not just transparent but secure as well.
An automatic sliding door does away with the aggravation and struggle associated with opening
a heavy, manual door and instantly demonstrates to users the house/establishment they are
entering cares about their convenience. Automatic sliding doors are quite large, generally twice
as large as the standard entry doors. but also enable users to take out big size purchases such as
hutches, huts, Christmas trees, furniture items such as couches, beds and many other similar
sized things.
Automatic sliding doors are manufactured according to the highest standards for quality and
safety, ensuring minimal maintenance requirements and making them incredibly easy to own,
use and maintain.
Safety
Automatic doors hold an exceptional safety record, consistently providing safe, convenient
access for everyone.
Given that they open only when passing-by traffic is near, and close spontaneously, automatic
doors will easily conserve temperature inside your premises. Thus, effectively reduces wasted
energy in multiple ways and may significantly lessen annual heating and cooling costs, saving-
up on electricity costs.
Since the door is slide we may not get the mechanical door easily.
Due to market shortage we may not get all the necessary hardware component
Arduino Uno
The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). It has
14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16
MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. It
contains everything needed to support the microcontroller; simply connect it to a computer with
a USB cable or power it with a AC-to-DC adapter or battery to get started. The Uno differs
from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it
features the Atmega8U2 programmed as a USB-to-serial converter.
Technical specification
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB of which 0.5 KB used by boot loader
SRAM 2 KB
EEPROM 1 KB
Clock Speed 16 MHz
Physical characteristics
Power
The Arduino Uno can be powered via the USB connection or with an external power
supply. The power source is selected automatically. External (non-USB) power can come either
from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a
2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in
the Gnd and Vin pin headers of the POWER connector.
VIN. The input voltage to the Arduino board when it's using an external power source (as
opposed to 5 volts from the USB connection or other regulated power source). You can
supply voltage through this pin, or, if supplying voltage via the power jack, access it through
this pin.
Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These
pins are connected to the corresponding pins of the ATmega8U2 USB-to-TTL Serial chip.
External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low
value, a rising or falling edge, or a change in value. See the attach Interrupt () function for
details.
PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analog write () function.
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication,
which, although provided by the underlying hardware, is not currently included in the
Arduino language.
LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value,
the LED is on, when the pin is LOW, it's off.
Arduino can sense the environment by receiving input from a variety of sensors and can
affect its surroundings by controlling lights, motors, and other actuators. The microcontroller on
the board is programmed using the Arduino programming language (based on Wiring) and the
Arduino development environment (based on Processing). Arduino projects can be stand-alone
or they can communicate with software on running on a computer (e.g. Flash, Processing,
MaxMSP).
A passive infrared sensor (PIR) is an electronic sensor that measures infrared (IR) light
radiating from objects in its field of view. They are most often used in PIR based motion
detectors.PIR sensor allow us to sense motion,almost always used to detect whether a huwan
has moved in or out of the sensor range. They are small, inexpensive, low-power and easy to
use and don’t wear out. PIRs are basically made of piezoelectric sensor which can detect levels
of infrared radiation. Everything emits some low-level radiation, and the hotter something is,
the more radiation is emitted.
Operating principles
All objects with a temperature above absolute zero emit heat energy in the form of
radiation. Usually this radiation isn't visible to the human eye because it radiates at infrared
wavelengths, but it can be detected by electronic devices designed for such a purpose. The
term passive in this instance refers to the fact that PIR devices do not generate or radiate any
energy for detection purposes. They work entirely by detecting the energy given off by other
objects.PIR sensors don't detect or measure "heat"; instead they detect the infrared radiation
emitted or reflected from an object
An individual PIR sensor detects changes in the amount of infrared radiation impinging
upon it, which varies depending on the temperature and surface characteristics of the objects in
front of the sensor. When an object, such as a human, passes in front of the background, such as
a wall, the temperature at that point in the sensor's field of view will rise from room
temperature to body temperature, and then back again. The sensor converts the resulting change
in the incoming infrared radiation into a change in the output voltage, and this triggers the
detection. Objects of similar temperature but different surface characteristics may also have a
different infrared emission pattern, and thus moving them with respect to the background may
trigger the detector as well.
Features
Most PIR modules have a 3-pin connection at the side or bottom. One pin will be ground,
another will be signal and the final one will be power. Power is usually 3-5v DC input but may
be as high as 12v.The PIR has two knobs on the back for adjusting sensitivity and for changing
the pulse time.
Application using PIR Sensor Automatic Door Opening System Opening and closing of
doors is always a tedious job, especially in places like shopping malls, hotels and theatres where
a person is always required to open the door for visitors. An automatic door opening system
consists of a PIR sensor which senses the presence of human being and sends pulses to the
microcontroller which controls the motor driver by sending appropriate pulses to its input pins
and enable pin. Generally, human body emits infrared energy which is sensed by the PIR sensor
from a considerable distance.
The output from the PIR sensor i.e., passive infrared detector is amplified to a transistor
BC547, the output of which at the collector is connected to pin 1 of the microcontroller. While
any moving object is sensed by the PIR it develops logic high at its output which gets inverted
by the transistor used to develop a logic low at pin 1 of microcontroller. Thus the
microcontroller receives a logic low signal from the PR sensor through the transistor and
through proper programming, sends a logic low to pin 2 and logic high to pin 7, making the
motor run in forward direction and the door connected to the shaft of the motor opens. The
program is so written that it delivers appropriate input to the motor driver IC L293D as
explained above, to run the motor in one direction, so as to enable a door open situation. This
low inverter output is connected to the microcontroller. Based on the input received by the
microcontroller, it controls the motor driver, which in turn controls the motion of the motor.
Liquid Crystal Display (LCD) screen is an electronic display module. An LCD has a
wide range of applications in electronics. The most basic and commonly used LCD in circuits is
the 16x2 display. LCDs are commonly preferred in display because they are cheap, easy to
program and can display a wide range of characters and animations. A 16x2 LCD have two
display lines each capable of displaying 16 characters.
Features:
A light-emitting diode (LED) is a semiconductor device that emits visible light when an
electric current passes through it.
The light is not particularly bright. But in most LEDs it is monochromatic, occurring at a
single wavelength. The output from an LED can range from Red (at wavelength of
approximately 700 nanometers) to blue-violet (about 400 nanometers
Resistor
Fig.2.6 Resistors
The L293D receives signals from the microprocessor and transmits the relative signal to
the motors. It has two voltage pins, one of which is used to draw current for the working of the
L293D and the other is used to apply voltage to the motor. The L293D switches its output
signal according to the input received from microprocessor.
The L293D is a 16 pin, with eight pins, on each side, dedicated to the controlling of a
motor. There are 2 input pins, 2 output pins and 1 enable pin for each motor. L293D consists of
two H-bridge-bridge is the simplest circuit for controlling a low current rated motor.
CHAPTER THREE
2. SYSTEM DESIGN AND DESCRIPTION
3.1 Components of Automatic door opening system
Flow diagram
The project is designed for automatic door opening system using PIR sensor. Opening and
closing of doors is always a tedious job, especially in places like shopping malls, hotels and
theatres where a person is always required to open the door for visitors.
This project proposes a system of automatic opening and closing of door by sensing any
body movement near the door. This is achieved with help of a PIR (Passive Infrared) sensor. A
live body generally emits infrared energy which is sensed by the PIR sensor from a
considerable distance. This sensing signal is fed to a microcontroller to operate a door motor
through motor driver IC. When a body approaches within the operating range of the sensor, it
sends a logical command to open the door. The door automatically closes with a fixed time
delay. If there is no further movement within the PIR operating range. The door stays in closed
condition.
Even though the system is automatically to open and close the door, it is also works
manually by push button during emergency case like PIR sensor fails to work by high current
incoming through it or ageing whatever the problem occurred. But during normal case the push
button must be locked.
The speaker function for this project is mainly focus for blind persons. Because when blind
person near to the door and sensed by the sensor then the door is opened but this person didn’t
know whether the door is opened or not opened. At this time speaker is very important role to
him if the door is opened the speaker tone is activated and the person knowing that the door is
opened by hearing the tone sound.
In our project we used single phase 220v, 50Hz supply and a 12v rechargeable battery. this
battery used for when there is no power from the ac supply.
The transformer is a static device that transfers electrical energy from one electrical
circuit to another electrical circuit through the medium of magnetic field and without a change
in the frequency. If the secondary winding has more turns than the primary winding, then the
secondary voltage is higher than the primary voltage and the transformer is called a step-up
transformer.
When the secondary winding has less turns than the primary windings then the secondary
voltage is lower than the primary voltage and the transformer is called step-down transformer.
The voltages at points A and B on the transformer are changing in opposite directions.
When A is increasing in a positive direction, B is increasing negatively. It is like the opposite
ends of a seesaw. During the first half cycle, A is positive and B is negative. D1 has positive on
its anode, D2 has negative on its cathode. Both are forward biased. Current flows around the
circuit formed by these diodes, the load and the transformer winding, as shown in the second
diagram. The current flowing up through the load produces a pulse of voltage across the load as
shown in the right hand waveform. During the next half cycle, A is negative and B is positive.
D4 has positive on its anode, D3 has negative on its cathode. Both are forward biased. Current
flows around the circuit as shown in the bottom diagram, again flowing in the same direction
through the load and producing another pulse of voltage. Since the full cycle is used, this circuit
is called a Full wave rectifier.
3.2.1.3 Smoothing
During the positive half cycle, the capacitor charges up to the peak value of the
transformer secondary voltage, Vim and will try to maintain this value as the full wave input
drops to zero. Capacitor will discharge slowly until the transformer secondary voltage again
increases to a value greater than the capacitor voltage.
Sometimes a circuit that produces constant output voltage while operating from a variable
supply voltage is needed. Circuits which perform such operation are called voltage regulators.
All the components except speaker is used 5v rang. as a result, IC 7805 is used to power the
components.
IC7805 function.
Provides 5v regulated power supply.
Maintaining this output voltage constant.
Removing the fluctuations. i.e. removing ac components.
From pin-3 5V DC is given to the circuit.
In this section we used PIR passive sensor as a sensing element and the operation is
described below when someone approaches the sensor the sensor it receives the infrared ray that
was emitted by the human body because of body heat. We know that the main component of a
PIR sensor is piezoelectric sensor. Piezoelectric sensor divided in two halves, when there is no
motion, both halves remain in the same state means both sensors the same level of infrared. as
soon as somebody enters in first half the infrared level of one half becomes greater than the
other and this causes PIRs to react and makes the out pin high. For simulation case we used
logic state to activate the PIR sensor module.
For simulation purpose we have used two LEDs identified by color. i.e. red and green
LEDs The green LED will be on when the door is on opening state. The red LED will be on
when the door is back from the opening state to closing state. i.e. when the door is closed the
red LED becomes turn off.
3.2.5 Driver
L293D is a dual H-bridge motor driver so with one IC we can interface two DC motors
which can be controlled in both clockwise and counter clockwise direction if you have motor
with fix direction of motion. You can make use of all the four I/Os to connect up to four DC
motors. L293D has output current of 600mA and peak output current of 1.2A per channel
moreover for the protection from back Emf output diodes are including within the IC the output
As you can see from the circuit three pins are needed for interfacing a Dc motor if you
want the output to be enabled completely then you can connect Enable to Vcc and only 2 pins
needed from the controller to make the motor work.
As per the truth mentioned in the image above its fairly simple to program the
microcontroller it’s also clear from the truth table of BJT circuit and L293D the programming
will be the same for both of them just keeping in mind the allowed combination of A and B.
3.2.6 Speaker
In this project the main advantage of the speaker is to help blind peoples. When
approaches to the door it will be on and make some sound to indicate the door is in opening
state and ready to enter. The speaker activates when input for the microcontroller becomes one
unless it remains in off state by adjusting the resistor value we can control the volume.
Suppose that suddenly the sensor probes not work properly or fully damaged in this case
the door must be work manually for that purpose we had better to use a switching device. In our
case we can use push button to perform the above activity.
LCD: 16×2 Liquid Crystal Display which will display the 32 characters at a time in two
rows (16 characters in one row). Each character in the display of size 5×7-pixel matrix,
although this matrix differs for different 16×2 LCD modules if you take JHD162A this matrix
goes to 5×8. This matrix will not be same for all the 16×2 LCD modules. We can follow these
simple steps for displaying a character or data.
In our case if the sensor detects any motion or movement the LCD will display
“movement detected “and “door opening” else the LCD will display “no movement” and “door
is closed”. The main merit of LCD in our project is to visualize the door condition for the
person who has a problem of hearing and to make the operation of the system easier (user
interface able).
When we conclude our project, Automatic door opening system is a simple yet powerful
concept, which uses PIR sensor as a sensing element. By using this system manual works are
almost removed. It automatically opens the door when the sensor detects some movement. This
is done by a sensor called PIR which senses the movement. It automatically closes the door
after waiting some minutes for the person to enter or to leave the building. When there is no
movement it stays closed. The main idea of this project is to avoiding of manual control.
Because of to avoid any physical contact among the user and the door by itself it gives easy life
style to allow pedestrians. In addition to this we had also consider the door to be operate in
manual for emergency case. And also in our project we have added additional future of the
system for blind and deafness persons.
5.2 Recommendation
The recommendation that we need to inform one who want to improve our project
There can be a Display unit for showing number of persons entered in a particular room.
Upgrading the system using higher bit microprocessors for speed optimization.
Along with this system we can use face-detection through camera for Automated Attendance
System.
A better sensor is recommended to achieve new functionality. For instance, a suitable sensor
such as radar sensor can be used if a Government intended to use the system for checking
contraband goods in any vehicle around the boundary.
1 IC IC 7805,L293D 1,1
2 PIR - 1
3 Diode IN4007,IN4001 4,2
4 Resistor 1K,10K 2,2
5 Capacitor 0.01µF 1
6 LEDs Green and Red 1,1
7 Transformer 220/9V 1
8 Power supply 220V ac,50Hz 1
9 Battery 9V 1
10 speaker - 1
11 switch - 1
12 Push button - 1
Ground 4,5,12,13 Device ground and heat sink pin. Connect to printed-circuit-board ground plane
with multiple solid vias
2 Pin 2 Output
3 Pin 3 Ground
Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
int waiting;
int speakerPin = 5;
int pushButton=2;
int ledPinG=6;
int ledPinR=7;
int PIR=A0;
int mdoPin=3; //motor driver open pin
int mdcPin=4; //motor driver close pin
void setup()