PIR Motion Detector

by Eswar R M in Circuits > Arduino

408 Views, 1 Favorites, 0 Comments

PIR Motion Detector

1st.jpeg

In this tutorial, I will show you how to make a simple PIR motion detection sensor, without using a breadboard, just with Arduino UNO, a 9v battery, and a PIR.PIR stands for Passive InfraRed, which describes the technology inside—it passively detects infrared light levels (unlike an infrared camera that may also emit infrared light in order to capture its reflection). The white dome is a lens that expands the IR detector's field of vision. The sensor reports a LOW signal by default, reads the amount of ambient infrared light coming in, and then triggers a HIGH signal for a certain period of time when the light levels change, indicating movement. It can tell you whether or not there is movement in a scene, but cannot detect distance— for that you might consider a type of analog input sensor called an ultrasonic rangefinder.

Build the Circuit

2nd.jpg

Above seen is the simpler circuit than the conventional ones, a simple connection of PIR and UNO with a led will help us to detect the motion, the connection can be made as to the following:

1.Connect the ground of the PIR to the UNO's ground.

2.PIR's VCC to the UNO's 5V.

3.PIR's output to the UNO's digital pin no.3

4. Connect a LED to the 13th analog pin and ground pin of the UNO

5.Give the required power to the UNO with a 9V battery.

Code With Text

Let's use the text coding rather than using the block coding interface listen to the PIR motion sensor, then make a decision to light up an LED based on the sensor's state: activated or not activated

Click the "code" button to open the code editor.

Since this is a simpler version we are using a LED instead of using a buzzer circuit, once the PIR detects the motion the LED will start to blink, The above image is the code in the image format for the PIR circuit.

The text version of the code is also added.

PIR Motion Sensor Setup

6th.jpeg
7th.jpeg

If you're building a physical circuit, you'll need to do a little setup with your PIR motion sensor.

Identify the row of three headers on the circuit board. They will be towards the center of one edge and are labeled GND, OUT, and +5v (or something similar). Plugin the included wired connector to the three header pins, with the black wire, lined up with GND. Double-check the connector is firmly seated. Alternatively, you can connect three individual female-to-male prototyping wires to the header pins.

Next, Try...

vid1.mp4

Yes, the simple PIR motion detector sensor is over, the last step is to try to ensure that the circuit is working, try it just by waving your hands for a second or by bringing your hands near the PIR sensor, if your project is successfully done, the LEd will blink if it detects a motion in front of it, hopes everyone will do it successfully, happy learning, Hope you people found this tutorial useful.