1. Name of Institution
Amity School of Engineering
& Technology
PRACTICAL TRAINING PRESENTATION ON
“AUTOMATIC DOOR WITH VISITOR COUNTER”
INDIRA KUNDU
B.TECH(ECE)- V SEM
SEC-B
1
2. Contents:
Name of Institution
Introduction
Block diagram
AT89C51
Infra-red sensors
LM358
Seven Segment Display & IC-4511
L293D
Working of the project
Pros and Cons
C Code
2
3. Automatic door with visitor Counter
Name of Institution
- Introduction
In this system, doors open automatically when
approached by someone and then closes
automatically and the counter value is
incremented or decremented based upon whether
the visitor has entered or exited.
Depending upon the interrupt from the sensors,
the system identifies the entry and exit of the
visitor.
On the successful implementation of the system,
it displays the number of visitor present in the
room.
3
4. Block Diagram
Name of Institution
Seven
segment
display
IR
Sensor
Op-Amp
Comparaator
(LM358)
motor
driver
L293D
DC
motor
6. Infra Red Sensors
•
Name of Institution
When an object is close to
the sensor, the light from the
LED bounces off the object
and into the light sensor. This
results in a large jump in the
intensity, which we already
know can be detected using a
threshold.
6
8. Seven Segment Display & IC-4511
Name of Institution
4511 works only
with common
cathode seven
segment display
• With the 4511 we can drive the
display with just 4 lines.
• It takes a BCD number as an
input, then outputs the
necessary lines to display that
number on the 7 segment
display.
• In normal operation, the Lamp
Test(LT) and blanking(BL)
inputs are connected HIGH,
and the Latch Enable (LE)
input is connected LOW.
8
9. L293D
Name of Institution
• A single L293D IC allows two
DC motors to drive on either
direction simultaneously.
• For driving the motor with
inputs 1 and 2, we need to
enable pin 1 to high. And for
driving it with inputs 3 and 4, we
need to make the pin 9 to high.
If anyone of the either pin1 or
pin9 goes low then the motor in
the corresponding section will
suspend working.
9
10. Working of the project
Name of Institution
• The microcontroller unit continuously checks for the
arrival of any person from outside or inside by using
the Op-Amp based sensors.
• As soon as the value at the sensor port becomes “1”
or high, the DC motor (here, it represents the door)
rotates first clockwise (opening of the door) and and
then it rotates anticlockwise (closing of the door).
• After this the value of the seven segment display is
incremented by 1 if the person is entering or it is
decremented by 1 if the person is exiting.
10
11. Pros & Cons
Name of Institution
Pros:
• This system can be economically implemented in all
the places where the door automation is required and
visitors have to be counted and controlled. eg.
Auditorium.
• Reduces human labour.
Cons:
• Needs power supply to operate.
• Needs maintenance and check.
11
12. C Code
#include<regx51.h>
void motor(int,int,unsigned int);
unsigned int i;
int x;
void delay(unsigned int d)
{ for(i=0;i<d;i++);}
void main()
{
while(1)
{
if(P1_0==1 && P1_1==0)
{ motor(1,0,50000);
motor(1,1,60000);
motor(0,1,50000);
motor(1,1,60000);
if(x<99)
{ x++;}
P3=x;
delay(60000);}
Name of Institution
else if(P1_0==0 && P1_1==1)
{ motor(1,0,50000);
motor(1,1,60000);
motor(0,1,50000);
motor(1,1,60000);
if(x>0)
{ x--; }
P3=x;
delay(60000);
}
}
}
void motor(int a, int b,unsigned int c)
{ P2_0=a;
P2_1=b;
delay(c);
}
12