Posts

Showing posts with the label relay

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

diy relay module

Image
I If you want a relay module and you are thinking that you will buy it online here is a link  Amazon.com : relay module but as you see it is expensive i will tell you a very cheap DIY material needed:- vero board/prototyping board relay 12v diode 40001 or 40007 bc558 transistor 9volt battery male header pin or simple wire for connecting step1:- place all the thing on the veroboard as shown in picture or in schematic or in video breadboard  view schematic picture step2:- connect signal to desired pin of arduino  and ground to ground pin of arduino and don't forget to connect 9volt battery  finished if it is not working check the diode position and transistor position and also see ground connections