QB041 PIR Motion Sensor

1.Product Introduction

../../_images/PIR-1.png

Human infrared sensor is used to detect the infrared radiation emitted by the human or animal body module, when someone or other hot objects enter the sensor’s sensing range, the object will cause changes in the infrared radiation.

Its characteristic is that only when the external radiation causes its own temperature to change, it gives a corresponding electrical signal, when the temperature change tends to be stable, there will be no signal output, so it is only sensitive to the moving human body.

Application reference: human body sensor light, automatic door, automatic faucet, automatic stair lighting, etc.

2.Parameter Specification

Parameter Value//Description
Operating voltage 3.3V~5V
Operating temperature -20°C~+85°C
Detection Angle 100°
Detection range 0~4m
Size 3.16cm*2.38cm
../../_images/PIR-5.jpg

3.Wiring Diagram

../../_images/PIR-2.png
PIR Motion Sensor UNO
VCC 5V
GND GND
S Digital Pin 7

4.Sample Code

1
2
3
4
5
6
7
8
9
//www.acebott.com
void setup() {
pinMode(7,INPUT);//Set pin 7 to input mode
Serial.begin(9600);//Set baud rate to 9600
}
void loop() {
Serial.println(digitalRead(7));// Read the state of pin 7and print it to the serial monitor
delay(1000);
}

5.Test Result

After uploading the code to the controller board, open the serial port monitor of the Arduino IDE, set the baud rate to 9600, and switch to scroll mode.

When we move, the sensor returns data 1; When we are at rest, the sensor returns data 0.

../../_images/PIR-3.png
../../_images/PIR-4.png

Hint

The module comes with a delay effect, so when the object is at rest, it will not send 0 data immediately, and it will wait for a period of time. If the serial port cannot display data normally, check whether the hardware connection interface is the same as the code interface.

6.Related Resources

7.Get One Now

B2B Business: info@acebott.com

Individual buyer: shop on aliexpress