Posts

Showing posts from April, 2017

Visitor Counter

Image
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  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  /* * This Code is For Visitor Counter * made by Diy-Areeb * http://bit.ly/diyareebyoutube */ #define in 7       //defining the in sensor #define out 6     //defining the out sensor #define led 13   //you can connect relay module also int count = 0 ;   void setup ( ) {   Serial . b