Skip to main content

Visitor Counter

This Arduino project will automate the lights of the room and also count the person in the rooms 

it also have self-intelligence that if there is no body in the room it will turn of the light
for example if 3 person enters the room then three person should exit also to turn the lights off

  Material needed:-
  • Arduino board
  • 2 IR sensor 
    IR sensor
  • Jumper wire
  • Chassis (optional) 

Connect the IR sensor output on pin 14&19 (I am using Arduino Mega that's why I have connected  it to 14&19 you can change it as your needs in the program)

and the connect led or Relay module on pin 2 (you can change this also as per your need)

Then upload the code 
#define in 14//defining the in sensor
#define out 19//defining the out sensor 
#define led 2//you can connect led module also
int count=0;

void IN()
    Serial.print("Person In Room:");                  //it will print 
    Serial.println(count);                            //+1 if a person enter in the room

void OUT()
    Serial.print("Person In Room:");           //it will print 
    Serial.println(count);                    //-1 if a person exit out the room
void setup()
  Serial.begin(9600);                      //start Serial moniter
  Serial.println("Visitor Counter");     //print the title of te project
  delay(2000);                          //as serial moniter starts
  pinMode(in, INPUT);                 //describe the
  pinMode(out, INPUT);               //pins 
  pinMode(led, OUTPUT);             //as OUTPUT or INPUT
  Serial.print("Person In Room:");//it will first
  Serial.println(count);         //print the 0 number of member
void loop()
  if(digitalRead(in))       //it works very
  IN();                    //simply if anybody 
  if(digitalRead(out))    //enters the room it will +1
  OUT();                 //and if anybody exit it -1
  if(count<=0)         //if there is anybody is in the room
    digitalWrite(led, LOW);//the led will light up  
  else                          //and if nobody in the room 
      digitalWrite(led, HIGH);//led will be turned off

It will look like this 

.Now use Chassis to make it look good

keep it at the door and use the automated light and visitor counter


Popular posts from this blog

diy relay module

I If you want a relay module and you are thinking that you will buy it online here is a link : relay module
but as you see it is expensive i will tell you a very cheap DIY

material needed:-

vero board/prototyping boardrelay 12vdiode 40001 or 40007bc558 transistor9volt batterymale header pin or simple wire for connectingstep1:-
place all the thing on the veroboard as shown in picture or in schematic or in video
breadboard view
schematic picture

connect signal to desired pin of arduino 
and ground to ground pin of arduino
and don't forget to connect 9volt battery


if it is not working check the diode position and transistor position and also see ground connections

Mosquito repeller

I nowadays mosquito is the huge problem and mosquito is also spreading many diseases and this DIY will really help you 

Here is a list of the components and tools required
Arduino UnoPCBPiezoelectric DiskHeader PinsWiresSoldering IronSoldering Leaddo as shown in video

upload the code from here
/* * this is an arduino project * for those who is getting sucked by mosquito */intspeaker="9";//first let set the pin for pizo diskintfrequency="31000";/*now lets keep the frequency 31000hz * which irritate the mosquito */voidsetup(){pinMode(9,OUTPUT);//set pin 9 as output}voidloop(){tone(speaker,frequency,1000);//use tone command to set frequency/*   * if you dont know about " tone "   * select tone and press   * Crtl + Shift + F   */}

pov display

pov display here is an exciting project for you all pov display this project will
float words in air and easy to made

material needed:-
Arduino nano (but can use any arduino) 5 leds 5 220 ohms resistor jumper wire battery vero/prototyping board switch (if needed)

first connect leds to vero/prototyping board
connect the led to vero/prototyping board be careful that the led should be connected to
digital pins 8,9,10,11,12 of arduino _________________________________________________________________________________________
after fitting leds to vero/prototyping board cut the excess board
cut it by using a sharp knife or scissor. ________________________________________________________________________________________ upload the code on the arduino // how long each led stays on forintdelayTime=4;//how long between each intcharBreak=3;//how long to wait after the message is finished before it repeatsintresetTime=20;intLED1=8;intLED2=9;intLED3=10;intLED4=11;intLED5=12;…