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 v...

Obstacle Avoiding Robot

Obstacle Avoiding Robot using Arduino and Ultrasonic Sensor A simple project on Obstacle Avoiding Robot is meant here. Robotics is a stimulating and fast growing field. Being a branch of engineering, the applications of robotics are increasing with the advancement of technology.The concept of Mobile Robot is fast evolving and therefore the number of mobile robots and their complexities are increasing with different applications. There are many kind of mobile robot navigation techniques like path planning, self – localization and map interpreting. An Obstacle Avoiding Robot may be a sort of autonomous mobile robot that avoids collision with unexpected obstacles. In this project, an Obstacle Avoiding Robot is supposed. It's an Arduino based robot that uses Ultrasonic range finder sensors to avoid collisions.  Components Required Arduino NANO or Uno  🛒 HC-SR04 Ultrasonic Sensor  🛒 LM298N Motor Driver Module  🛒 5V DC Motors  🛒 Battery  🛒 Wheels 🛒 Chassis...