

Please refer to this link to know more about HC-SR505 PIR Sensor Module Datasheet These sensors use IR technology to use in light-activated systems & also for safety purposes.This sensor is used to detect the motion of an object through IR light radiation.HC-SR505 PIR sensor module is used in various devices which operate with a battery because of its less power utilization.The applications of the HC-SR505 PIR sensor module include the following. Where to use HC-SR505 PIR Sensor/Applications Finally, it will print a message on the serial monitor which can be accessed below tools, or press the Ctrl+Shift+M key. This Arduino code will read the condition of the PIR sensor & control the LED on-board accordingly. In addition, change the time-delay potentiometer value to the lowest value. To work this code accurately, the trigger mode jumper needs to be set to ‘H’ by repeating many times. The above code can be uploaded through the Arduino IDE tool. Change the motion state to false (no motion): If no motion is detected (pirPin = LOW), do the following:ĭigitalWrite(ledPin, LOW) // Turn off the on-board LED.

Change the motion state to true (motion detected): If motion is detected (pirPin = HIGH), do the following:ĭigitalWrite(ledPin, HIGH) // Turn on the on-board LED. Begin serial communication at a baud rate of 9600: Configure the pins as input or output: The following sample code is simply used to control relays for switching ON/OFF the light.īool motionState = false // We start with no motion detected. By using the following example code, you can read out the sensor & control the LED on the Arduino board by connecting it to pin 13. Once the connections are made, the following example code needs to be uploaded to the Arduino board. The GND pin of the PIR sensor is connected to the GND pin of the Arduino UNO board.The OUT pin of the PIR sensor is connected to pin2 of the Arduino UNO board.The VCC pin of the PIR sensor is connected to a 5V pin of Arduino UNO board.The equivalent HC – SR505 PIR sensor is HC-SR01 The induction angle is below 100 degrees.It gives automatic control through continuous triggering by default.The required temperature range is -20 ☌ to 80 ☌.The maximum detecting range is 3 meters.The Quiescent current (IQ) is below 60♚.The operating voltage range is 4.5V – 20V.The features & specifications of the HC – SR505 PIR sensor module include the following. Pin3 (Positive power supply): The supply voltage provided to the device is +5V.Pin2 (Signal Output): This pin is used to provide o/p signal.Pin1 (Ground): To operate this sensor module, pin1 is grounded.This sensor includes three pins which are discussed below. The pin configuration of the HC – SR505 PIR sensor module is shown below.
