Bidirectional Visitor Counter
Bidirectional Visitor Counter
Bidirectional Visitor Counter
Project Report
On
Bachelor of Engineering
In
Gunjan Kushwaha
Kaushal Rai
Nishant Dhote
Priyesh Chandra
Under the Guidance of
Mr. Yogesh Sharma
Assistant Professor
ET&T, SSITM-SSTC
DEPARTMENT OF ELECTRONICS
& TELECOMMUNICATION ENGINEERING
SHRI SHANKARACHARYA INSTITUTE OF TECHNOLOGY
AND MANAGEMENT JUNWANI BHILAI (C.G.) 490020
Session: 2014-2015
DECLARATION
We the undersigned solemnly declare that the report of the project work entitled
Automatic Door with Bidirectional Visitor Counter is based on our own work
carried out during the course of our study under the supervision of Mr. Yogesh Sharma,
Assistant Professor, Electronics & Telecommunication Engineering Department.
We assert that the statements made and the conclusions drawn are an outcome of the
project work. We further declare that to the best of our knowledge and belief that the
report does not contain any part of any work which has been submitted for the award of
any other degree/diploma/certificate in this university or any other university.
-------------------------
-------------------------
Gunjan Kushwaha
Kaushal Rai
-------------------------
-------------------------
Nishant Dhote
Priyesh Chandra
CERTIFICATE
This is to certify that the report of the project submitted is an outcome of the project work
entitled Automatic Door with Bidirectional Visitor Counter carried out by
Name
Roll No
Enrollment No
Gunjan Kushwaha
3352811010
AK2149
Kaushal Rai
3352811015
AK2198
Nishant Dhote
3352811023
AK2292
Priyesh Chandra
3352811028
AK2358
under my guidance and supervision for the award of Degree in Bachelor of Engineering
in Electronics & Telecommunication Engineering of Chhattisgarh Swami Vivekananda
Technical University, Bhilai (C.G.), India.
To the best of my knowledge the report
i) Embodies the work of the candidate him/herself,
ii) Has duly been completed,
iii) Fulfills the requirement of the Ordinance relating to the BE
degree of the University and
iv) Is up to the desired standard for the purpose of which is submitted.
------------------------------
------------------------------
(Head of Department)
Assistant Professor
Associate Professor
-----------------------------Vice-Principal
Shri Shankaracharya Institute of Technology & Management, Junwani, Bhilai.
Roll No.
Enrollment No.
Gunjan Kushwaha
3352811010
AK2149
Kaushal Rai
3352811015
AK2198
Nishant Dhote
3352811023
AK2292
Priyesh Chandra
3352811028
AK2358
has been examined by the undersigned as a part of the examination for the award of
Bachelor of Engineering degree in Electronics & Telecommunication Engineering of
Chhattisgarh Swami Vivekananda Technical University, Bhilai.
------------------------
--------------------------
Internal Examiner
External Examiner
Date:
Date:
ACKNOWLEDGEMENT
We welcome this opportunity to express our heartfelt gratitude and regards to all those
who helped us in completion of this project. We are thankful for their aspiring guidance,
invaluably constructive criticism and friendly advice during the project work.
We would like to express our sincere thanks to our project guide, Mr. Yogesh Sharma,
Assistant Professor, Electronics & Telecommunication Engineering Department for
his guidance and constant supervision as well as for providing necessary information
regarding the project.
We would like to express our gratitude towards
-------------------------
-------------------------
Gunjan Kushwaha
Kaushal Rai
-------------------------
-------------------------
Nishant Dhote
Priyesh Chandra
Roll No : 3352811028
Table of Content
Chapter 1
Content
Page No.
Abstract
List of Tables
ii
List of Figures
iii
Introduction
1.1.
Embedded System
1.2.
Brief Introduction
Chapter 2
Literature Review
Chapter 3
Components Description
3.1. Requirement
Chapter 4
Methodology
18
4.1. Operation
18
18
18
19
4.3. Working
20
21
Chapter 5
22
Chapter 6
23
6.1. Conclusion
23
24
Bibliography
25
ABSTRACT
The project proposes a system wherein the number of persons entering or leaving a room is
displayed on a screen and the door is opened or closed automatically by sensing any body
movement near the door.
This is achieved with help of a PIR (Passive Infrared) sensor. The 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. Interrupt signals are used through limit switches to avoid locked rotor condition
of the motor.
When a person enters the room, count would be increased, whereas on leaving, the count would
be decreased. IR sensing mechanism is used to sense the presence of visitors. Two sets of IR
sensors consisting of an IR LED and photo transistor are placed at two ends. Output from each
sensor is fed to the microcontroller. In normal operation, IR light from the LED would fall on the
photo transistor and the latter would conduct. The output from the sensor would be a logic low
signal in this case. In case of any interruption (due to any person crossing the path), the photo
transistor would cease to conduct or conduct less and the output from the sensor would be a logic
high signal. The transition from low to high, for each sensor pair is detected by the
microcontroller and accordingly the count would be increased or decreased.
List of Tables
Table No.
3.1.
Table Name
Page No.
Hardware Requirement
List of Figures
Figure No.
Figure Name
Page No.
3.1
3.2
IC 741 OP-AMP
3.3
3.4
PIR Sensor
3.5
Transformer
10
3.6
Transistor BC547
10
3.7
Crystal Oscillator
11
3.8
IR Transmitter-Receiver
12
3.9
12
3.10
13
3.11
Diode IN4007
13
3.12
Capacitor
14
3.13
Resistor
15
3.14
Variable Resistance
15
3.15
16
Figure No.
3.16
Figure Name
7-Segment Display
Page No.
16
3.17
Switch
17
4.1
19
4.2
21
Chapter 1
INTRODUCTION
An embedded system is a computer system with dedicated function within a larger mechanical or
electrical system, often with real-time computing constraints. It is embedded as part of a
complete device often including hardware and mechanical parts. Embedded systems control
many devices in common use today. Modern embedded systems are often based
on microcontrollers.
An embedded system is a system that has software embedded into hardware, which makes a
system dedicated for an application(s) or specific part of an application or a product or part of a
larger system. It processes a fixed set of pre-programmed instructions to control
electromechanical equipment which may be part of an even larger system.
The key characteristic of embedded system is being dedicated to handle a particular task. Since
the embedded system is dedicated to specific tasks, design engineers can optimize it to reduce
the size and cost of the product and increase the reliability and performance. Some embedded
systems are mass-produced, benefiting from economies of scale.
1.2. Brief Introduction
The objective of this project is to make a microcontroller based model to control the opening and
closing of door automatically and count the number of persons visiting the room.
A passive infrared sensor is located at the door to control the automatic opening and closing of
the door. There are two IR Transmitter-Receiver pair located at the door which is used to detect
whether a person is entering the room or leaving the room. Based on the detection, the counter
value will be increased or decreased.
The system comprises of a passive infrared sensor which is located at the door. This sensor will
detect the person and will control the opening and closing of the door. Whenever a person will
come within the range of sensor, the sensor will detect the person. This sensing signal is fed to
microcontroller to operate a door motor through motor driver IC. The door will then be opened
and after sometime, the door will close automatically.
There are two IR Transmitter-Receiver pair which is located at front and at the back of the door.
There is a counter which is set at the value 00H, initially. Whenever a person tries to enter into
the room, the IR Transmitter-Receiver pair identifies the person. This sensing signal is fed to a
microcontroller which will control the counter. When a person will enter the room, the counter
value will be increased and when the person will leave the room, the counter value will be
decreased.
Chapter 2
LITERATURE REVIEW
By www.electronicshub.org
This article describes the design and working of a bidirectional visitor counter. The main
intention is to design a system wherein the number of persons entering or leaving a room is
displayed on a screen. When a person enters the room, count would be increased, whereas on
leaving, the count would decrease. IR sensing mechanism is used to sense the presence of
visitors and the whole counting operation is done by a microcontroller.
We have added one more feature to this project. In addition to bidirectional visitor counter, we
have also added the automatic door which will open or close by sensing the movement of person
within the range of sensor.
By learn.adafruit.com
PIR sensors allow you to sense motion, almost always used to detect whether a human has
moved in or out of the sensors range. They are small, inexpensive, low-power, easy to use and
don't wear out. For that reason, they are commonly found in appliances and gadgets used in
homes or businesses. They are often referred to as PIR, "Passive Infrared", "Pyroelectric", or "IR
motion" sensors.
PIRs are basically made of a pyro-electric sensor (which you can see above as the round metal
can with a rectangular crystal in the centre) which can detect levels of infrared radiation.
Everything emits some low level radiation, and the hotter something is, the more radiation is
emitted. The sensor in a motion detector is actually split in two halves. The reason for that is that
we are looking to detect motion (change) not average IR levels. The two halves are wired up so
that they cancel each other out. If one half sees more or less IR radiation than the other, the
output will swing high or low.
PIRs are used for many products that need to detect when a person has left or entered the area, or
has approached. They have a wide lens range, and are easy to interface with.
Chapter 3
COMPONENT
DESCRIPTION
3.1. Requirement
3.1.1. Hardware Requirement
S. No.
Component
1.
IC P89V51RD2
2.
741 OP-AMP
3.
4.
PIR Sensor
5.
Transformer
6.
Transistor BC5473
7.
Crystal Oscillator
8.
IR Transmitter-Receiver Pair
9.
5V
10.
9V
11.
Diode IN4007
12.
Capacitor
13.
14.
Resistor
Variable Resistance
Rating
12-0-12 V
Quantity
1
2
11.0592 Hz
1
2
2
10 F/63V
1000 F/25 V
22 pF
330
10
10 K
100
8.2 K
10 K
4.7 K
15.
16.
7-Segment Display
17.
Switch
Fig.3.3: IC L293D Motor Driver
4. PIR Sensor
PIR sensors allow you to sense motion, almost always used to detect whether a human has
moved in or out of the sensors range. They are small, inexpensive, low-power, easy to use and
don't wear out. For that reason, they are commonly found in appliances and gadgets used in
homes or businesses. They are often referred to as PIR, "Passive Infrared", "Pyroelectric", or "IR
motion" sensors.
PIRs are used for many products that need to detect when a person has left or entered the area, or
has approached. They have a wide lens range, and are easy to interface with.
principle
of
transformer
depends
upon Faradays law of electromagnetic induction. Actually, mutual induction between two or
more winding is responsible for transformation action in an electrical transformer. Transformers
are capable of either increasing or decreasing the voltage and current levels of their supply,
without modifying its frequency, or the amount of electrical power being transferred from one
winding to another via the magnetic circuit.
Fig.3.5: Transformer
6. Transistor BC547
BC547 is a NPN bi-polar junction transistor. A transistor, stands for transfer of resistance, is
commonly used to amplify current. A small current at its base controls a larger current at
collector & emitter terminals.
BC547 is mainly used for amplification and switching purposes. It has a maximum current gain
of 800. Its equivalent transistors are BC548 and BC549.
BC547 is used in common emitter configuration for amplifiers. The voltage divider is the
commonly used biasing mode. For switching applications, transistor is biased so that it remains
fully on if there is a signal at its base. In the absence of base signal, it gets completely off.
material to
create
an
electrical
signal
with
very
precise frequency This frequency is commonly used to keep track of time (as in quartz wrist
watches), to provide a stable clock signal for digital integrated circuits, and to stabilize
frequencies for radio transmitters and receivers.
The most common type of piezoelectric resonator used is the quartz crystal, so oscillator circuits
incorporating them became known as crystal oscillators.
Fig.3.8: IR Transmitter-Receiver
9. Voltage Regulator
The voltage source in a circuit may have fluctuations and would not give the fixed voltage
output. The voltage regulator IC maintains the output voltage at a constant value.
7805 and 7809 are voltage regulator integrated circuits. They are members of 78xx series of
fixed linear voltage regulator ICs. The xx in 78xx indicates the fixed output voltage it is designed
to provide. 7805 provides +5V regulated power supply. 7809 provides +9V regulated power
supply. Capacitors of suitable values can be connected at input and output pins depending upon
the respective voltage levels.
is
component used
to
store energy electrostatically in an electric field. The capacitors contain two electrical
conductors (plates) separated by a dielectric (i.e. insulator). The conductors can be thin
films, foils or sintered beads of metal or conductive electrolyte, etc. A dielectric can be glass,
ceramic, plastic film, air, vacuum, paper, mica, oxide layer etc. An ideal capacitor does not
dissipate energy. Instead, a capacitor stores energy in the form of an electrostatic field
between its plates.
Fig.3.12: Capacitor
12. Resistor
A resistor is a passive two-terminal electrical component that implements electrical
resistance as a circuit element. Resistors act to reduce current flow, and at the same time, act to
lower voltage levels within circuits. In electronic circuits resistors are used to limit current flow,
to adjust signal levels, bias active elements, terminate transmission lines among other uses.
Resistors can have fixed resistances that only change slightly with temperature, time or operating
voltage. Variable resistors can be used to adjust circuit elements (such as a volume control or a
lamp dimmer), or as sensing devices for heat, light, humidity, force, or chemical activity.
Fig.3.13: Resistor
13. Variable Resistance
A variable resistor is a device that is used to change the resistance according to our needs in an
electronic circuit. It is applied in an electronic circuit for adjusting circuit resistance to
control voltage or current of that circuit or part of that circuit.
incandescent light sources including lower energy consumption, longer lifetime, improved
physical robustness, smaller size, and faster switching.
16. Switch
A switch is an electrical component that can break an electrical circuit, interrupting the current or
diverting it from one conductor to another Switches are essentially binary devices: they are either
completely on ("closed") or completely off ("open").
Fig.3.17: Switch
Chapter 4
METHODOLOGY
4.1. Operation
4.1.1. Automatic Door
The system comprises of a passive infrared sensor which is located at the door. This sensor will
detect the person and will control the opening and closing of the door.
Whenever an obstacle will come within the range of sensor, the sensor will sense that there is an
obstacle. This sensing signal is fed to microcontroller. The microcontroller is connected to a
motor driver IC. The motor driver IC will operate the door motor for opening of door. The door
will then be opened.
When the sensor will detect that there is no movement within its range, the sensor will again
send a signal to microcontroller. The microcontroller is connected to motor driver IC. The motor
driver IC will operate the door motor and the door will be closed.
4.1.2. Bidirectional Visitor Counter
The system comprises of IR Transmitter-Receiver pair which will detect the person entering or
leaving a room. Based on this detection, the microcontroller will operate the counting operation
and increase or decrease the counter accordingly.
There are two IR Transmitter-Receiver pair which is located at front and at the back of the door.
There is a counter which is set at the value 00H, initially. Whenever a person tries to enter or
leave the room, the IR Transmitter-Receiver pair will identify the person. This sensing signal is
fed to a microcontroller which will control the counting operation. The signal will tell the
microcontroller that whether a person is entering a room or leaving a room. When a person will
enter the room, the counter value will be increased and when the person will leave the room, the
counter value will be decreased.
The circuit is divided in three parts: IR Transmitter-Receiver pair, Microcontroller and Counter
Display. The IR Transmitter-Receiver pair will observe an interruption and provide an input to
the microcontroller. The microcontroller will run the counter in up/down mode depending upon
the selector setting. The same count is displayed on a set of 7-segment displays through the
microcontroller. The total number of persons inside the room is displayed on the seven segment
display.
4.2. Block Diagram
IR
Transmitter
-Receiver
Logic
Circuit
IR
TransmitterReceiver
Passive
Infrared
Sensor
Logic
Circuit
P
8
9
V
5
1
R
D
2
7-Segment
Display
Motor Control
Circuit (For
Automatic
Door)
Power
Supply
the phototransistor. As per the program, the count value is increased and this value is displayed
on the 7-Segment Display.
Similarly, if a person inside wants to go out, then the Op-Amp based IR sensors detects that a
person is standing in front of the door, inside the room. The value at the inside sensor port goes
high, the DC motor then first rotates clockwise (opening of the door) and remains in the same
state for few seconds so that the person may leave the room and then it rotates anticlockwise
(closing of the door).
Now the compiler starts scanning the other input pin-P1.1. Similar to the first sensor pair, for this
sensor pair also the phototransistor conducts in absence of any interruption and P1.1 is at logic
low level. In case of an interruption, the pin P1.1 goes high and this interruption is perceived by
decreasing the value of count.
The value of the seven segment display at any instant corresponds to the number of persons
inside the room. It acts as a counter here.
4.4. Circuit Diagram
Chapter 5
RESULT AND
DISCUSSION
Thus the project entitled Automatic Gate with Bidirectional Visitor Counter helps to
control the opening and closing of the door in a room and measure the visitor entering and
exiting a particular passage or way.
The circuit opens and closes the door of the room automatically by sensing the movement of
person within the range of sensor. The gate will open automatically by sensing the movement of
the person and then it will close after a particular time delay. Then the circuit counts both
entering and exiting visitors and displays the number of visitors present inside the hall.
On the successful implementation of the system, it displays the number of visitor present in the
room. This system can be economically implemented in all the places where the door has to be
opened automatically and visitors have to be counted and controlled.
Chapter 6
CONCLUSION AND
FUTURE SCOPE
6.1. Conclusion
This project titled Automatic Door with Bidirectional Visitor counter is designed and presented
in order to open and close the door automatically and count the visitors of an auditorium, hall,
offices, malls, sports venue, etc. Depending upon the interrupt from the sensors, the system
identifies the entry and exit of the visitor. The system counts both the entering and exiting visitor
of the auditorium or hall or other place, where it is placed. On the successful implementation of
the system, it displays the number of visitor present in the auditorium or hall. This system can be
economically implemented in all the places where the visitors have to be counted and controlled.
6.1.1. Advantages of automatic door
For people in wheelchairs and other disabled individuals, automatic doors are an immense boon,
since conventional doors can be very hard to work with. It may be impossible to open a
conventional door while seated in a wheelchair or navigating with crutches.
In hospitals and scientific labs, automatic doors can be used to secure an area by ensuring that
the doors are shut at all times, while reducing the risk of cross-contamination since people do not
need to handle the doors to pass through them.
Automatic doors can also be useful in warehouses and other facilities where people frequently
have their hands full, contributing to safety and efficiency by making it easier for people to get
around.
It reduces human labour and prevents the situation of inconvenience.
Some additional features can be added to this project to make this project more useful like digital
calendar. The digital calendar using microcontroller will display the day, date and month.
The automatic light controller can be added to this project. Lights can be turned OFF/ON
according to the number of people in the room. We can check the ambient light intensity and then
decide if the light needs to be turned ON or not.
Metal detector can be added for security purposes.
BIBLIOGRAPHY