Skip to main content

adsense

PIR Motion Detector With Arduino (simple and Easy Demostration)

in the following video we are going to see how we can integrate the passive infra red sensor or simply PIR sensor with an arduino uno board and how you can get serial data through it.the pir sensor basically works on the thermal radiation which are being emitted by the body of humans as well as animals

Step 1: WATCH THE VIDEO

 

Step 2: THINGS NEEDED (PARTS LIST)

 

https://cdn.instructables.com/FJS/BI10/J142GERP/FJSBI10J142GERP.LARGE.jpg
The parts needed for this build are given as
1.Arduino uno or clone
2.PIR Sensor
3.breadboard
4.led(any colour)
5.buzzer
so these are the simple parts which we need to gather

Step 3: PIR Sensor Small Information

 

Features and Electrical Specification
Compact size (28 x 38 mm)
Supply current: DC5V-20V(can design DC3V-24V)
Current drain :< 50uA (Other choice: DC0.8V-4.5V; Current drain: 1.5mA-0.1mA)
Voltage Output: High/Low level
signal :3.3V (Other choice: Open-Collector Output) TTL output High sensitivity
Delay time:5s-18 minute
Blockade time:0.5s-50s (acquiescently 0 seconds)
Operation Temperature: -15oC -70Oc
Infrared sensor: dual element, low noise, high sensitivity
so these are the technical information about the pir sensor
you can download the datasheet from the following link
https://cdn-learn.adafruit.com/downloads/pdf/pir-p...

Step 4: CIRCUIT DIAGRAM

After watching the video you can easily create your own pir sensor module . just
follow the simple circuit and you are ready to go to the programming section
the buzzer used in the circuit is can be of normal 5v buzzer which is easily available
in any electronic parts store.
the connections follows as
ARDUINO UNO                           PIR SENSOR
+5V---------------------------------------+5V(VCC)
GND--------------------------------------GND
5 PIN-------------------------------------OUT

Step 5: PROGRAMMING THE ARDUINO

PROGRAMMING THE ARDUINO

The coding related to the following circuit is very simple the code follows in this way
At the starting we need to declare the pins which we are going to use
int PIR_output=5; // output of pir sensor
int led=13; // led pin
int buzzer=12;// buzzer pin
After that is done we can move on to the void setup fuction
pinMode(PIR_output, INPUT);// setting pir output as arduino input
pinMode(led, OUTPUT);//setting led as output
pinMode(buzzer, OUTPUT);//setting buzzer as output
Serial.begin(9600);//serial communication between arduino and pc
you can download the full program from above PIR_sensor_by_kj_electronics file
and upload it to the arduino uno by using the arduino ide

click here to download the code

Step 6: CHECKING THE OUTPUT

IMG_20170404_190653.jpg

Whenever a thermal body is detected by the PIR sensor it will turn the out pin to its high state
you can adjust the sensitivity of the sensor by adjusting the potentiometer which as shown in the figure above
and you can also change the time delay of the sensor by the potentiometer again.

Step 7: THANKS FOR WATCHING

You can modify the following code and make
something innovative and don't forgot to subscribe to my instructables as well as my youtube channel
in my youtube you can get so many projects in the electronics side as well as so creative videos about the leds and fan dc motors etc..
link to my youtube channel is
https://www.youtube.com/channel/UCZE35bOktFxu8dIad...
thanks for watching

 

 

 

 

 

Comments

Popular posts from this blog

VU METER (Music Visualizer) #1 With Arduino

This is the part one of the music visualizer series and In the following tutorial we are going to make a music visualizer AKA the volume meter or the uv meter from an arduino mega . The build process is very simple and easy and the program of arduino is also not that hard. Step 1: Watch the Video Step 2: Parts List             The parts needed for this build are 1.ARDUINO MEGA 2.COPPER DOT PCB 3.BREAD BOARD 4.JUMPER WIRES 5.LED (RED ,BLUE ,GREEN) 6.TOOLS(SOLDERING IRON ,SOLDER WIRE) 7.AUDIO SPLITER WITH A JACK 8.HEADER PINS Step 3: Testing on Bread Board( 1.LED's and ARDUINO ) Start by inserting the led on the bread board with the negative leg of the led to a common ground rail of the bread board (led count =20) the positive leg of the led will be there at any empty rail of the bread board as shown in the video and following pictures Then connect the ground of the arduino to the common ground rail of the l...

ARDUINO IR REMOTE (USE YOUR OLD REMOTE TO CONTROLL HOME APPLIANCES)

In this project you can choose any remote or a TV remote which you are using and you will notice that some keys are useless for your tv for that you can use that keys for controlling the home appliences like powering your TV,FAN,LIGHTS etc... you need to follow the simple procedure from the video so that you can record hexa values for that particular key and put into the program of the arduino Step 1: WATCH THE VIDEO   Step 2: THINGS NEEDED           The things needed for the following project are 1.ARDUINO UNO OR CLONE 2.IR RECIVER 3.ANY OLD REMOTE 4.RELAY MODULE 5.JUMPER WIRES 6.ARDUINO IDE 7.SOME LED'S IF YOU WANT TO MAKE A RELAY MODULE BY YOURSELF YOU COULD NEED (OPTIONAL) 1.RELAY 2.BC547 TRANSISTOR 3. 1K OHM RESISTOR 4.COPPER DOT PCB Step 3: RECIVING THE IR CODE FROM REMOTE BUTTON   This is the test to recieve the hexadecimal code of the remote button 1.install the ir remote library form the fo...

VU METER (Part-2) Using LM-3914 & LM-3915

This is the second part of the music visualization series and in the video above i have shown how you can make a simple VU meter by using the ic called LM-3914 or LM-3915. The part 1 is basically about how you can make the simple and cool looking VU meter by using the arduino microcontroller link to that is given as and now we will see the step by step construction of the VU meter STEP 1: Watch the Video   STEP 2: PARTS LIST     To make this cool looking UV meter we need these following things 1.LM-3914 IC 2.Breadboard 3.Copper dot PCB 4.18 pin IC Holder 5.Resistor(1.2k & 4k ohm) 6.Potentiometer (1K ohm) & Knob 7.Audio jack 8.Dc jack 9.LED (6-Green & 2-Blue & 2-Red) 10.some connecting wires   TOOLS REQUIRED 1.soldering iron 2.wire cutter 3.soldering wire etc... STEP 3: SPECIFICATION OF LM-3914 & DATASHEET When looking at the LM-3914 ic datasheet these are some important feat...