Skip to main content

Bidirectional Visitor Counter

Bidirectional Visitor Counter using Arduino

A bidirectional visitor counter using Arduino may be a reliable circuit that takes over the task of counting variety of Persons/Visitors within the Room very accurately. if somebody enters into the space then the Counter is incremented by one and also leaves it might be incremented.

MATERIALS REQUIRED:

  • Arduino
  • IR Module
  • 16*2 LED
  • 5V Relay
  • Resistor(1K,220 ohm)
  • Breadboard
  • Jumper Wires

The total number of persons inside the space is Shows on the 16X2 LCD module. The microcontroller does the work it receives the signals from the sensors, and this signals operated under the control of software which is stored in EPROM of Arduino.

There are two IR Modules are used. first, one are often wont to count the amount of persons entering a hall within the up mode at the doorway gate. and therefore the other can count the amount of persons leaving the hall by decrementing the count at the exit gate.

In this Project will helps to Wastage of electricity. In our home, school, colleges or industry we see that fan and lighting point are kept on albeit there's nobody within the room. This happens thanks to negligence or because we forgot to show lights off or we are during a hurry.

To avoid all such situations this project called “Automatic light controller with visitor counter” is meant . This project has two functions, the primary one is understood as “ Visitor counter” and therefore the other is understood as “Automatic light controller”.

The main concept behind this project is understood as “Visitor counter System” which measures the amount of persons entering any room sort of a room , hotel rooms, seminar hall. This project is implemented using the IR sensor module with Arduino. Whereas Arduino receives the signals from the sensors, and this signal is operated under the control of software which is stored within the EPROM of the Microcontroller.

Bidirectional Visitor Counter using Arduino may be a simple hobby project which may do any of them without an Electronics or Programming Knowledge

Code:

#include<LiquidCrystal.h>
LiquidCrystal lcd(13,12,11,10,9,8);

#define in 14 // Analog pin A0 has a IR Module attached to it.
#define out 15 // Analog pin A1 has a IR Module attached to it.
#define relay 2 // Digital pin D2 has a Relay attached to it.
int count=0;
void IN()
{
    count++; // increment the value
    lcd.clear();
    lcd.print("Person In Room:");
    lcd.setCursor(0,1);
    lcd.print(count);
    delay(1000);
}
void OUT()
{
  count--; // increment the value
    lcd.clear(); // Clear the LCD Value
    lcd.print("Person In Room:");
    lcd.setCursor(0,1); // set the cursor positon
    lcd.print(count); // Display count value
    delay(1000);
}
void setup()
{
  lcd.begin(16,2);
  lcd.print("Visitor Counter");
  delay(2000);
  pinMode(in, INPUT); // Assign the IR is Input
  pinMode(out, INPUT);Assign the IR is Input
  pinMode(relay, OUTPUT); Assign the Relay is output
  lcd.clear();
  lcd.print("Person In Room:");
  lcd.setCursor(0,1);
  lcd.print(count);
}
void loop()
{  
   if(digitalRead(in))
  IN();
  if(digitalRead(out))
  OUT();
    if(count<=0)
  {
    lcd.clear();
    digitalWrite(relay, LOW); // relay is in ON conditon
    lcd.clear();
    lcd.print("Nobody In Room");
    lcd.setCursor(0,1);
    lcd.print("Light Is Off");
    delay(200);
  }
    else
    digitalWrite(relay, HIGH); // relay is OFF condition  
}
Hope you enjoyed the blog and completed the project and if you have any doubt please comment below.
Stay Home Stay Safe!!

Comments

amazon banner

Popular posts from this blog

Motion Detector Camera

Motion Detector With Photo Capture Camera   Hello friends!! Welcome to This Blog. In this Blog, we will make a motion sensor detector with photo capture using ESP32CAM and the PIR module. The logic behind is when the PIR sensor detects any motion, the ESP32CAM will start taking the pictures. So you can use this project as a security camera. In thisblog, I will share the circuitdiagram, Arduino sketch, and the component list, so after reading the complete article you can easily make this project. Now ESP32 CAM is a small camera module that has ESP32S chip on the back and some GPIO pins to connect peripherals and it also has a micro-SD card slot, where you can insert the micro-SD card and store the pictures. Now before going to the circuit diagram and Arduino sketch, let me give you a quick overview of this project.  Components Required ESP32-CAM  PIR Motion Sensor Module BC547 NPN Transistor 220ohm, 1k, 10k Resistor. LED 5-mm FTDI 232 USB to Serial Interface board 5 volt DC supply  The

Automatic Hand Sanitizer Dispenser

Automatic Hand Sanitizer Dispenser Using Arduino Hi guys! Welcome to an exciting Blog. Today we are going to do a project which is very relevant in the present scenario We are going to make an automatic hand sanitizer or hand wash dispenser. We just need to keep our hand below it and it dispenses hand sanitizer or hand wash without any direct contact. Components: Arduino Battery Servo Motor HC - SR04 Glue Gun Now, Let's Begin.  Description: First of all, we need some sheets to make the structure of the dispenser We'll stick the longer sheet on the smaller one by using a hot gun We are using the sheet that is used to make the ceiling Next we need a piece of sheet with a hole in its center we can stick that sheet on top of the longer sheet Now lets stick a small piece in the gap for a stronger hold Then stick a washer over the hole We made this washer Then we made a piston using a sketch pen and wheel cup of a toy JCB For a stronger hold we stick a washer between the sketch pen a