Motion Detector – How to make motion detector using Arduino

Making Motion detector using Arduino and PIR Sensor

The PIR Sensor also known as the passive infrared sensor is used for motion detector. It uses the simple concept of thermal imaging which mean that weather there’s day or night it can detect motion. The motion detector sensor is the minimized form of a motion detector circuit.

Motion detector

Part list

  • Arduino UNO
  • Breadboard
  • Passive Infrared Sensor or PIR Sensor
  • LED’s
  • Connecting wires

If you open the Cap/Dome you’ll see the black film inside which is the PIR Radiation detector. And the IC is used to control the PIR Motion Sensor. You’ll see the two potentiometers which are used to control the sensitivity and time delay. The PIR Sensor has the three pins to connect externally which are Vcc, Ground and Output.

Arduino Uno

The connection is begun with connecting the PIR Ground to the arduno ground and connecting the PIR output pin to the arduino pin number 5 and PIR Vcc to arduino 5v. Now we can connect the LED with the common ground and we connect arduino ground to the LED ground directly. The LED positive is connected to pin number 13. You can find the code and schematic on the indestructible page of KJ electronics. Now the after finishing the connections arduino board should be connected with the Computer and so the program is uploaded.

In the program at the beginning the port for the PIR is declared and the LED pin which is pin number 13 and additionally the buzzer pin is declared at pin number 12.

In Void Setup {} we had declared the pin number 5 for PIR as an input whereas the Pin number 12 and 13 as an output pins. To initiate the communication between the arduino and the system the command serial.9600 is included.

In Void Loop {} we had initiated and if condition which checks weather the pin number 5 is higher or equal to the threshold value. In this case the pin number 13 and 12 are kept high which means that the body is detected. Else if the above condition is not arisen then the output pins 12 and 13 kept low.

After finishing the program is uploaded to the Arduino Uno. And our setup will be capable to detect the heat radiated by the body and will indicate it with glow the LED doesn’t matter whether there’s day or night.

  •  
  •  
  •  
  •  
  •  
  •  

This article has 3 comments

  1. Aisha McCartney Reply

    can you make a motion sensor circuit with the help of mosfet.




    0
  2. Luqman Zainal Reply

    can i use the ultrasonic motion sensor for the same purpose ?




    0

Leave a Comment

Your email address will not be published. Required fields are marked *