SlideShare a Scribd company logo
1 of 10
Prepared and Presented
by
Amrita Sil
Avik Adhikary
Mazhar Raza
Dipan Ghosh
Bidirectional Visitor Counter with
Automatic ON-OFF Switch
SILIGURI INSTITUTE OF TECHNOLOGY
SILIGURI -734004
Hardware Part
Circuit Diagram
Circuit Diagram Description
 Sensor section: In this section we have used two IR sensor
modules which contain IR diodes, potentiometer, Comparator (Op-Amp) and
LED’s. Potentiometer is used for setting reference voltage at comparator’s
one terminal and IR sensors sense the object or person and provide a
change in voltage at comparator’s second terminal. Then comparator
compares both voltages and generates a digital signal at output. Here in this
circuit we have used two comparators for two sensors. LM358 is used as
comparator. LM358 has inbuilt two low noise Op-amp.
 Control Section: Arduino UNO is used for controlling whole the
process of this visitor counter project. The outputs of comparators are
connected to digital pin number 14 and 19 of arduino. Arduino read these
signals and send commands to relay driver circuit to drive the relay for light
bulb controlling.
 Display section: Display section contains a 16x2 LCD. This section will
display the counted number of people and light status when no one will in
the room.
Code for Arduino
#include<LiquidCrystal.h>
LiquidCrystal lcd(13,12,11,10,9,8);
#define in 14
#define out 19
#define relay 2
int count=0;
 Code Expansion :
 Included library function for LCD and define pin .
 Define input output pin for sensors and relay.
 LCD is connected with Arduino’s pin numbers: 13,12,11,10,9,8.
 Both the IR Sensor Modules are connected with pin 14(A0) & pin
19(A5).
 And Relay or LED is connected with pin number 2.
void IN()
{
count++;
lcd.clear();
lcd.print("Person In Room:");
lcd.setCursor(0,1);
lcd.print(count);
delay(1000);
}
 Code Expansion:
 The code is for entering.
 Print message in LCD.
 As the person enters room
increment the counter.
 print the counter.
void OUT()
{
count--;
lcd.clear();
lcd.print("Person In Room:");
lcd.setCursor(0,1);
lcd.print(count);
delay(1000);
}
 Code Expansion:
 The code is for exiting.
 Print message in LCD.
 As the persons leave room
decrement the counter.
 print the counter.
void setup()
{
lcd.begin(16,2);
lcd.print("Visitor Counter");
delay(2000);
pinMode(in, INPUT);
pinMode(out, INPUT);
pinMode(relay, OUTPUT);
lcd.clear();
lcd.print("Person In Room:");
lcd.setCursor(0,1);
lcd.print(count);
}
 Code Expansion:
 Given direction to input output pin and initialized LCD in setup loop.
 Send signal to port no.16 and 2 in LCD then it starts.
 prints message in LCD.
 pinMode(in, INPUT) and pinMode(out, INPUT) is for IR sensor
module sends signal to Arduino.
 pinMode(relay, OUTPUT)is for relay or LED.
void loop()
{
if(digitalRead(in))
IN();
if(digitalRead(out))
OUT();
if(count<=0)
{
lcd.clear();
digitalWrite(relay, LOW);
lcd.clear();
lcd.print("Nobody In Room");
lcd.setCursor(0,1);
lcd.print("Light Is Off");
delay(200);
}
else
digitalWrite(relay, HIGH);
}
 Code Expansion:
 Read sensors input and
increment the counter.
 Call IN().
 Read sensors input and
decrement the counter.
 Call OUT().
 If count<=0 then
turn off LED.
print message in LCD.
set the cursor.
print the message in LCD.
else
turn on LED.
Thank You

More Related Content

What's hot

Automatic Room Lock And Lights Off Circuit
Automatic Room Lock And Lights Off CircuitAutomatic Room Lock And Lights Off Circuit
Automatic Room Lock And Lights Off CircuitAmrish Tejas
 
Automatic room light controller using microcontroller and visitor counter
Automatic room light controller using microcontroller and visitor counterAutomatic room light controller using microcontroller and visitor counter
Automatic room light controller using microcontroller and visitor countereSAT Journals
 
Automaticroomlightcontrollerwith bidirectionalvisitorcounterby vivek kumar ku...
Automaticroomlightcontrollerwith bidirectionalvisitorcounterby vivek kumar ku...Automaticroomlightcontrollerwith bidirectionalvisitorcounterby vivek kumar ku...
Automaticroomlightcontrollerwith bidirectionalvisitorcounterby vivek kumar ku...chhuttt
 
Project report on bidirectional visitor counter & home automation
Project report on bidirectional visitor counter & home automationProject report on bidirectional visitor counter & home automation
Project report on bidirectional visitor counter & home automationRoshan Mani
 
Bi-Directional Visitor Counter & Home Automation revised strictly to pattern ...
Bi-Directional Visitor Counter & Home Automation revised strictly to pattern ...Bi-Directional Visitor Counter & Home Automation revised strictly to pattern ...
Bi-Directional Visitor Counter & Home Automation revised strictly to pattern ...Roshan Mani
 
Bi directional visitor counter rewat
Bi directional visitor counter   rewatBi directional visitor counter   rewat
Bi directional visitor counter rewatvishwesh sharma
 
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 counterMannavapremkumar
 
Bidirectional Visitor counter Project Proposal
Bidirectional Visitor counter Project ProposalBidirectional Visitor counter Project Proposal
Bidirectional Visitor counter Project ProposalArsalan Ahmad
 
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 counterNiladri Dutta
 
Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharShivnaresh Likhar
 
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 R3Abhishekvb
 
Automatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterAutomatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterMohit Awasthi
 
Bidirectional visitor counter
Bidirectional visitor counterBidirectional visitor counter
Bidirectional visitor counterZakir Gulzar
 
bidirectional visitor counter using MC-AT89C52
bidirectional visitor counter using MC-AT89C52bidirectional visitor counter using MC-AT89C52
bidirectional visitor counter using MC-AT89C52Sruthi Tangirala
 

What's hot (20)

Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
 
Automatic Room Lock And Lights Off Circuit
Automatic Room Lock And Lights Off CircuitAutomatic Room Lock And Lights Off Circuit
Automatic Room Lock And Lights Off Circuit
 
Automatic room light controller using microcontroller and visitor counter
Automatic room light controller using microcontroller and visitor counterAutomatic room light controller using microcontroller and visitor counter
Automatic room light controller using microcontroller and visitor counter
 
Automaticroomlightcontrollerwith bidirectionalvisitorcounterby vivek kumar ku...
Automaticroomlightcontrollerwith bidirectionalvisitorcounterby vivek kumar ku...Automaticroomlightcontrollerwith bidirectionalvisitorcounterby vivek kumar ku...
Automaticroomlightcontrollerwith bidirectionalvisitorcounterby vivek kumar ku...
 
Visitor counter
Visitor counterVisitor counter
Visitor counter
 
Project report on bidirectional visitor counter & home automation
Project report on bidirectional visitor counter & home automationProject report on bidirectional visitor counter & home automation
Project report on bidirectional visitor counter & home automation
 
Visitor counter
Visitor counterVisitor counter
Visitor counter
 
A bi directional visitors counter
A bi directional visitors counterA bi directional visitors counter
A bi directional visitors counter
 
LDR Counter
LDR CounterLDR Counter
LDR Counter
 
Bi-Directional Visitor Counter & Home Automation revised strictly to pattern ...
Bi-Directional Visitor Counter & Home Automation revised strictly to pattern ...Bi-Directional Visitor Counter & Home Automation revised strictly to pattern ...
Bi-Directional Visitor Counter & Home Automation revised strictly to pattern ...
 
Bi directional visitor counter rewat
Bi directional visitor counter   rewatBi directional visitor counter   rewat
Bi directional visitor counter rewat
 
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
 
Bidirectional Visitor counter Project Proposal
Bidirectional Visitor counter Project ProposalBidirectional Visitor counter Project Proposal
Bidirectional Visitor counter Project Proposal
 
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
 
Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likhar
 
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
 
Automatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterAutomatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counter
 
Magnetic door lock
Magnetic door lockMagnetic door lock
Magnetic door lock
 
Bidirectional visitor counter
Bidirectional visitor counterBidirectional visitor counter
Bidirectional visitor counter
 
bidirectional visitor counter using MC-AT89C52
bidirectional visitor counter using MC-AT89C52bidirectional visitor counter using MC-AT89C52
bidirectional visitor counter using MC-AT89C52
 

Similar to Bidirectional Visitor Counter with Automatic ON-OFF Switch2

Automatic_room_light_controller_ PPT.pptx
Automatic_room_light_controller_ PPT.pptxAutomatic_room_light_controller_ PPT.pptx
Automatic_room_light_controller_ PPT.pptxSwarajDhumal
 
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ajit kumar singh
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 
DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINO
DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINODESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINO
DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINORatnesh Kumar chaurasia
 
Intel galileo gen 2
Intel galileo gen 2Intel galileo gen 2
Intel galileo gen 2srknec
 
Manu’s Employee Estimating Device
Manu’s Employee Estimating DeviceManu’s Employee Estimating Device
Manu’s Employee Estimating DeviceIJTET Journal
 
IRJET - Lie Detector using MATLAB, Arduino and Biomedical Sensors
IRJET -  	  Lie Detector using MATLAB, Arduino and Biomedical SensorsIRJET -  	  Lie Detector using MATLAB, Arduino and Biomedical Sensors
IRJET - Lie Detector using MATLAB, Arduino and Biomedical SensorsIRJET Journal
 
Arduino اردوينو
Arduino اردوينوArduino اردوينو
Arduino اردوينوsalih mahmod
 
Counter digital electronics
Counter digital electronics Counter digital electronics
Counter digital electronics Sooraj Maurya
 
lab_ADC.pdf
lab_ADC.pdflab_ADC.pdf
lab_ADC.pdfboukomra
 
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ajit kumar singh
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfidSaurabh Uniyal
 
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorsIoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorssaritasapkal
 

Similar to Bidirectional Visitor Counter with Automatic ON-OFF Switch2 (20)

Automatic_room_light_controller_ PPT.pptx
Automatic_room_light_controller_ PPT.pptxAutomatic_room_light_controller_ PPT.pptx
Automatic_room_light_controller_ PPT.pptx
 
Arduino Thermometer
Arduino ThermometerArduino Thermometer
Arduino Thermometer
 
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
 
ARDUINO Presentation1.pptx
ARDUINO Presentation1.pptxARDUINO Presentation1.pptx
ARDUINO Presentation1.pptx
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
Arduino programming
Arduino programmingArduino programming
Arduino programming
 
Anup2
Anup2Anup2
Anup2
 
Minor_project.ppt.pdf
Minor_project.ppt.pdfMinor_project.ppt.pdf
Minor_project.ppt.pdf
 
DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINO
DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINODESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINO
DESIGN OF TEMPERATURE BASED FAN SPEED CONTROL and MONITORING USING ARDUINO
 
8051 FINIAL
8051 FINIAL8051 FINIAL
8051 FINIAL
 
Intel galileo gen 2
Intel galileo gen 2Intel galileo gen 2
Intel galileo gen 2
 
Manu’s Employee Estimating Device
Manu’s Employee Estimating DeviceManu’s Employee Estimating Device
Manu’s Employee Estimating Device
 
IRJET - Lie Detector using MATLAB, Arduino and Biomedical Sensors
IRJET -  	  Lie Detector using MATLAB, Arduino and Biomedical SensorsIRJET -  	  Lie Detector using MATLAB, Arduino and Biomedical Sensors
IRJET - Lie Detector using MATLAB, Arduino and Biomedical Sensors
 
Arduino اردوينو
Arduino اردوينوArduino اردوينو
Arduino اردوينو
 
Counter digital electronics
Counter digital electronics Counter digital electronics
Counter digital electronics
 
lab_ADC.pdf
lab_ADC.pdflab_ADC.pdf
lab_ADC.pdf
 
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY ARDUINO BASED TIME AND TEMPERATURE DISPLAY
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
 
EEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdfEEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdf
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
 
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorsIoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensors
 

Bidirectional Visitor Counter with Automatic ON-OFF Switch2

  • 1. Prepared and Presented by Amrita Sil Avik Adhikary Mazhar Raza Dipan Ghosh Bidirectional Visitor Counter with Automatic ON-OFF Switch SILIGURI INSTITUTE OF TECHNOLOGY SILIGURI -734004
  • 4. Circuit Diagram Description  Sensor section: In this section we have used two IR sensor modules which contain IR diodes, potentiometer, Comparator (Op-Amp) and LED’s. Potentiometer is used for setting reference voltage at comparator’s one terminal and IR sensors sense the object or person and provide a change in voltage at comparator’s second terminal. Then comparator compares both voltages and generates a digital signal at output. Here in this circuit we have used two comparators for two sensors. LM358 is used as comparator. LM358 has inbuilt two low noise Op-amp.  Control Section: Arduino UNO is used for controlling whole the process of this visitor counter project. The outputs of comparators are connected to digital pin number 14 and 19 of arduino. Arduino read these signals and send commands to relay driver circuit to drive the relay for light bulb controlling.  Display section: Display section contains a 16x2 LCD. This section will display the counted number of people and light status when no one will in the room.
  • 5. Code for Arduino #include<LiquidCrystal.h> LiquidCrystal lcd(13,12,11,10,9,8); #define in 14 #define out 19 #define relay 2 int count=0;  Code Expansion :  Included library function for LCD and define pin .  Define input output pin for sensors and relay.  LCD is connected with Arduino’s pin numbers: 13,12,11,10,9,8.  Both the IR Sensor Modules are connected with pin 14(A0) & pin 19(A5).  And Relay or LED is connected with pin number 2.
  • 6. void IN() { count++; lcd.clear(); lcd.print("Person In Room:"); lcd.setCursor(0,1); lcd.print(count); delay(1000); }  Code Expansion:  The code is for entering.  Print message in LCD.  As the person enters room increment the counter.  print the counter. void OUT() { count--; lcd.clear(); lcd.print("Person In Room:"); lcd.setCursor(0,1); lcd.print(count); delay(1000); }  Code Expansion:  The code is for exiting.  Print message in LCD.  As the persons leave room decrement the counter.  print the counter.
  • 7. void setup() { lcd.begin(16,2); lcd.print("Visitor Counter"); delay(2000); pinMode(in, INPUT); pinMode(out, INPUT); pinMode(relay, OUTPUT); lcd.clear(); lcd.print("Person In Room:"); lcd.setCursor(0,1); lcd.print(count); }  Code Expansion:  Given direction to input output pin and initialized LCD in setup loop.  Send signal to port no.16 and 2 in LCD then it starts.  prints message in LCD.  pinMode(in, INPUT) and pinMode(out, INPUT) is for IR sensor module sends signal to Arduino.  pinMode(relay, OUTPUT)is for relay or LED.
  • 8. void loop() { if(digitalRead(in)) IN(); if(digitalRead(out)) OUT(); if(count<=0) { lcd.clear(); digitalWrite(relay, LOW); lcd.clear(); lcd.print("Nobody In Room"); lcd.setCursor(0,1); lcd.print("Light Is Off"); delay(200); } else digitalWrite(relay, HIGH); }  Code Expansion:  Read sensors input and increment the counter.  Call IN().  Read sensors input and decrement the counter.  Call OUT().  If count<=0 then turn off LED. print message in LCD. set the cursor. print the message in LCD. else turn on LED.
  • 9.