SlideShare une entreprise Scribd logo
1  sur  13
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
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
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
Block Diagram

Name of Institution

Seven
segment
display

IR
Sensor

Op-Amp
Comparaator
(LM358)

motor
driver
L293D

DC
motor
Micro-Controller AT89C51 of Institution
Name

5
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
LM358

Name of Institution

This device consist
of two independent,
operational
Amplifiers.

7
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
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
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
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
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
Name of Institution

THANK YOU

13

Contenu connexe

Tendances

Culture of Consumer Behavior
Culture of Consumer BehaviorCulture of Consumer Behavior
Culture of Consumer Behavior
Rupesh Poddar
 
Feature Of Mobile Commerce
Feature Of Mobile CommerceFeature Of Mobile Commerce
Feature Of Mobile Commerce
Saumen Ray
 
Cybercrime.ppt
Cybercrime.pptCybercrime.ppt
Cybercrime.ppt
Aeman Khan
 

Tendances (20)

IoT in Healthcare
IoT in HealthcareIoT in Healthcare
IoT in Healthcare
 
Perceptual selection
Perceptual selectionPerceptual selection
Perceptual selection
 
IoT Business Perspectives
IoT Business Perspectives IoT Business Perspectives
IoT Business Perspectives
 
Internet of things (IOT) | Future Trends
Internet of things (IOT) | Future TrendsInternet of things (IOT) | Future Trends
Internet of things (IOT) | Future Trends
 
Internet of things (IoT)- Introduction, Utilities, Applications
Internet of things (IoT)- Introduction, Utilities, ApplicationsInternet of things (IoT)- Introduction, Utilities, Applications
Internet of things (IoT)- Introduction, Utilities, Applications
 
Business presentation about E Commerce
Business presentation about E Commerce Business presentation about E Commerce
Business presentation about E Commerce
 
Consumer behavior models
Consumer behavior modelsConsumer behavior models
Consumer behavior models
 
Study on Consumer Behavior Towards Online Purchase of Smartphones in Delhi-NCR
Study on Consumer Behavior Towards Online Purchase of Smartphones in Delhi-NCRStudy on Consumer Behavior Towards Online Purchase of Smartphones in Delhi-NCR
Study on Consumer Behavior Towards Online Purchase of Smartphones in Delhi-NCR
 
eCommerce Business Strategies
eCommerce Business StrategieseCommerce Business Strategies
eCommerce Business Strategies
 
Culture of Consumer Behavior
Culture of Consumer BehaviorCulture of Consumer Behavior
Culture of Consumer Behavior
 
The biggest challenge with the Cybersecurity in the era of Metaverse
The biggest challenge with the Cybersecurity in the era of MetaverseThe biggest challenge with the Cybersecurity in the era of Metaverse
The biggest challenge with the Cybersecurity in the era of Metaverse
 
Sensor interfacing in 8051
Sensor interfacing in 8051Sensor interfacing in 8051
Sensor interfacing in 8051
 
Feature Of Mobile Commerce
Feature Of Mobile CommerceFeature Of Mobile Commerce
Feature Of Mobile Commerce
 
THE INTERNET OF THINGS
THE INTERNET OF THINGSTHE INTERNET OF THINGS
THE INTERNET OF THINGS
 
Cybercrime.ppt
Cybercrime.pptCybercrime.ppt
Cybercrime.ppt
 
Internet of Things - The Tip of an Iceberg
Internet of Things - The Tip of an IcebergInternet of Things - The Tip of an Iceberg
Internet of Things - The Tip of an Iceberg
 
Home Automation System using iot
Home Automation System using iotHome Automation System using iot
Home Automation System using iot
 
Impact of IoT
Impact of IoTImpact of IoT
Impact of IoT
 
FUTURE OF IOT
FUTURE OF IOTFUTURE OF IOT
FUTURE OF IOT
 
Business model
Business modelBusiness model
Business model
 

En vedette

Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
DIPAN GHOSH
 
Report on automatic door
Report on automatic doorReport on automatic door
Report on automatic door
Indira Kundu
 
Automatic room light controller with bidirectional visitor counter
Automatic room light controller with bidirectional visitor counterAutomatic room light controller with bidirectional visitor counter
Automatic room light controller with bidirectional visitor counter
Niladri Dutta
 
Automatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterAutomatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counter
Mohit Awasthi
 
MIS1: Organization Management & Information
MIS1: Organization Management & InformationMIS1: Organization Management & Information
MIS1: Organization Management & Information
Jitendra Tomar
 

En vedette (20)

Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
 
Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
 
Amity University
Amity UniversityAmity University
Amity University
 
Report on automatic door
Report on automatic doorReport on automatic door
Report on automatic door
 
Automatic room light controller with bidirectional visitor counter
Automatic room light controller with bidirectional visitor counterAutomatic room light controller with bidirectional visitor counter
Automatic room light controller with bidirectional visitor counter
 
Automatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterAutomatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counter
 
Amity Direct PPT
Amity Direct PPTAmity Direct PPT
Amity Direct PPT
 
Amity Business Review
Amity Business ReviewAmity Business Review
Amity Business Review
 
Amity international campuses
Amity international campusesAmity international campuses
Amity international campuses
 
MIS1: Organization Management & Information
MIS1: Organization Management & InformationMIS1: Organization Management & Information
MIS1: Organization Management & Information
 
Motor driver IC L293D
Motor driver IC L293DMotor driver IC L293D
Motor driver IC L293D
 
Visitor counter
Visitor counterVisitor counter
Visitor counter
 
Vega kit list
Vega kit listVega kit list
Vega kit list
 
ppt of automatic room light controller and BI directional counter
ppt of automatic room light controller and BI directional counterppt of automatic room light controller and BI directional counter
ppt of automatic room light controller and BI directional counter
 
Gas sensor Alarm
Gas sensor AlarmGas sensor Alarm
Gas sensor Alarm
 
Amity Acquires a 170-Acre Campus in New York
Amity Acquires a 170-Acre Campus in New YorkAmity Acquires a 170-Acre Campus in New York
Amity Acquires a 170-Acre Campus in New York
 
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
 
Asian paint ppt
Asian paint pptAsian paint ppt
Asian paint ppt
 
Smart Traffic Light Controller
Smart Traffic Light ControllerSmart Traffic Light Controller
Smart Traffic Light Controller
 

Similaire à Training ppt

56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
Ann Francis Olita
 
Human body temperature sensed automatic door opening system
Human body temperature sensed automatic door opening systemHuman body temperature sensed automatic door opening system
Human body temperature sensed automatic door opening system
Bhumika PATEL
 
automatic rail gate control with collision avoidance
automatic rail gate control with collision avoidanceautomatic rail gate control with collision avoidance
automatic rail gate control with collision avoidance
Raj Anand
 
Monitoring of Machine stausss
Monitoring of Machine stausssMonitoring of Machine stausss
Monitoring of Machine stausss
Umair Zafar
 

Similaire à Training ppt (20)

Automatic gate control
Automatic gate controlAutomatic gate control
Automatic gate control
 
Automatic room light controller with bi directional visitor counter using Ard...
Automatic room light controller with bi directional visitor counter using Ard...Automatic room light controller with bi directional visitor counter using Ard...
Automatic room light controller with bi directional visitor counter using Ard...
 
Final year project presentation
Final year project presentationFinal year project presentation
Final year project presentation
 
sunil jha presentation.pptx
sunil jha presentation.pptxsunil jha presentation.pptx
sunil jha presentation.pptx
 
PLC & SCADA
PLC & SCADAPLC & SCADA
PLC & SCADA
 
PLC 5.docx
PLC 5.docxPLC 5.docx
PLC 5.docx
 
Deepak
DeepakDeepak
Deepak
 
Arduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning SystemArduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning System
 
Plc (PROGRAMMABLE LOGIC CONTROLLER)
Plc (PROGRAMMABLE LOGIC CONTROLLER)Plc (PROGRAMMABLE LOGIC CONTROLLER)
Plc (PROGRAMMABLE LOGIC CONTROLLER)
 
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
56211728 automatic-room-light-controller-with-bidirectional-visitor-counter
 
Finalppt
FinalpptFinalppt
Finalppt
 
Automatic railway gate control
Automatic railway gate controlAutomatic railway gate control
Automatic railway gate control
 
Human body temperature sensed automatic door opening system
Human body temperature sensed automatic door opening systemHuman body temperature sensed automatic door opening system
Human body temperature sensed automatic door opening system
 
AUTOMATIC RAILWAY GATE AND SIGNALLING SYSTEM
AUTOMATIC RAILWAY GATE AND SIGNALLING SYSTEMAUTOMATIC RAILWAY GATE AND SIGNALLING SYSTEM
AUTOMATIC RAILWAY GATE AND SIGNALLING SYSTEM
 
automatic rail gate control with collision avoidance
automatic rail gate control with collision avoidanceautomatic rail gate control with collision avoidance
automatic rail gate control with collision avoidance
 
Plc documentation final
Plc documentation finalPlc documentation final
Plc documentation final
 
Monitoring of Machine stausss
Monitoring of Machine stausssMonitoring of Machine stausss
Monitoring of Machine stausss
 
Atomatic light controller
Atomatic light controllerAtomatic light controller
Atomatic light controller
 
Visiter counter doc
Visiter counter docVisiter counter doc
Visiter counter doc
 
breif about automations and iot.ppt.pptx
breif about automations and iot.ppt.pptxbreif about automations and iot.ppt.pptx
breif about automations and iot.ppt.pptx
 

Dernier

PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTARPEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
doktercalysta
 
ابو ظبي اعلان | - سايتوتك في الامارات حبوب الاجهاض للبيع ف حبوب الإجهاض ... ا...
ابو ظبي اعلان | - سايتوتك في الامارات حبوب الاجهاض للبيع ف حبوب الإجهاض ... ا...ابو ظبي اعلان | - سايتوتك في الامارات حبوب الاجهاض للبيع ف حبوب الإجهاض ... ا...
ابو ظبي اعلان | - سايتوتك في الامارات حبوب الاجهاض للبيع ف حبوب الإجهاض ... ا...
brennadilys816
 
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
nafizanafzal
 
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
daisycvs
 

Dernier (20)

Pitch Deck Teardown: Goodcarbon's $5.5m Seed deck
Pitch Deck Teardown: Goodcarbon's $5.5m Seed deckPitch Deck Teardown: Goodcarbon's $5.5m Seed deck
Pitch Deck Teardown: Goodcarbon's $5.5m Seed deck
 
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
 
Should Law Firms Outsource their Bookkeeping
Should Law Firms Outsource their BookkeepingShould Law Firms Outsource their Bookkeeping
Should Law Firms Outsource their Bookkeeping
 
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTARPEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
PEMATANG SIANTAR 0851/8063/4797 JUAL OBAT ABORSI CYTOTEC PEMATANG SIANTAR
 
Raising Seed Capital by Steve Schlafman at RRE Ventures
Raising Seed Capital by Steve Schlafman at RRE VenturesRaising Seed Capital by Steve Schlafman at RRE Ventures
Raising Seed Capital by Steve Schlafman at RRE Ventures
 
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdfProgress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
 
ابو ظبي اعلان | - سايتوتك في الامارات حبوب الاجهاض للبيع ف حبوب الإجهاض ... ا...
ابو ظبي اعلان | - سايتوتك في الامارات حبوب الاجهاض للبيع ف حبوب الإجهاض ... ا...ابو ظبي اعلان | - سايتوتك في الامارات حبوب الاجهاض للبيع ف حبوب الإجهاض ... ا...
ابو ظبي اعلان | - سايتوتك في الامارات حبوب الاجهاض للبيع ف حبوب الإجهاض ... ا...
 
How to refresh to be fit for the future world
How to refresh to be fit for the future worldHow to refresh to be fit for the future world
How to refresh to be fit for the future world
 
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In HarareTop^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
 
Moradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in PenacovaMoradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in Penacova
 
Exploring-Pipe-Flanges-Applications-Types-and-Benefits.pptx
Exploring-Pipe-Flanges-Applications-Types-and-Benefits.pptxExploring-Pipe-Flanges-Applications-Types-and-Benefits.pptx
Exploring-Pipe-Flanges-Applications-Types-and-Benefits.pptx
 
PitchBook’s Guide to VC Funding for Startups
PitchBook’s Guide to VC Funding for StartupsPitchBook’s Guide to VC Funding for Startups
PitchBook’s Guide to VC Funding for Startups
 
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
 
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
 
MEANING AND CHARACTERISTICS OF TAXATION.
MEANING AND CHARACTERISTICS OF TAXATION.MEANING AND CHARACTERISTICS OF TAXATION.
MEANING AND CHARACTERISTICS OF TAXATION.
 
Innomantra Viewpoint - Building Moonshots : May-Jun 2024.pdf
Innomantra Viewpoint - Building Moonshots : May-Jun 2024.pdfInnomantra Viewpoint - Building Moonshots : May-Jun 2024.pdf
Innomantra Viewpoint - Building Moonshots : May-Jun 2024.pdf
 
1Q24_EN hyundai capital 1q performance
1Q24_EN   hyundai capital 1q performance1Q24_EN   hyundai capital 1q performance
1Q24_EN hyundai capital 1q performance
 
Elevate Your Online Presence with SEO Services
Elevate Your Online Presence with SEO ServicesElevate Your Online Presence with SEO Services
Elevate Your Online Presence with SEO Services
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
How Bookkeeping helps you in Cost Saving, Tax Saving and Smooth Business Runn...
How Bookkeeping helps you in Cost Saving, Tax Saving and Smooth Business Runn...How Bookkeeping helps you in Cost Saving, Tax Saving and Smooth Business Runn...
How Bookkeeping helps you in Cost Saving, Tax Saving and Smooth Business Runn...
 

Training ppt

  • 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
  • 5. Micro-Controller AT89C51 of Institution Name 5
  • 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
  • 7. LM358 Name of Institution This device consist of two independent, operational Amplifiers. 7
  • 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