Skip to main content

Posts

Showing posts from April, 2017

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 board2 IR sensor  Jumper wireChassis (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  #definein14//defining the in sensor#defineout19//defining the out sensor #defineled2//you can connect led module alsointcount=0;voidIN(){count++;Serial.print("Person In Room:");//it will print Serial.println(count);//+1 if a person enter in the roomdelay(1000);}voidOUT(){count--;Serial.print("Person In Room:");//it will print Serial.printl…