PIR Motion sensor SEN51 ,R12

PIR Motion sensor SEN51 ,R12

This is HC-SR501 IR Pyroelectric Infrared Motion Sensor Detector Module

PIR sensors are used to detect motion from pets/humanoids from about 7m away. This one has an adjustable delay before firing (approx 2-4 seconds), adjustable sensitivity.

  • working voltage range :DC 4.5-20V
  • Quiescent Current :50uA
  • high output level 3.3 V / Low 0V
  • Trigger L trigger can not be repeated / H repeated trigger
  • circuit board dimensions :32 * 24 mm
  • maximum 110 ° angle sensor 7.
  • 7 m maximum sensing distance

Getting started with PIR Motion sensor

In this project you’re going to create a simple circuit with an Arduino and PIR motion sensor that can detect movement. An LED will light up when movement is detected.

Parts required

Connecting the Hardware

Tx: Adjust the duration of the HIGH output. The shortest time is about 3 seconds and the longest is about 5 minutes. Turning the potentiometer clockwise increases the time and turning it counter-clockwise decreases the time.

Sx: Adjust the sensitivity, or range, of the sensor . The sensor can detect motion in a range from as close as 2 meters up to 7 meters. Turning the Sx potentiometer clockwise decreases the range and turning it counter-clockwise increases the range.

Setting the trigger jumper

With this jumper you can select the mode of the module.

Single trigger(H):

The output pulse starts immediately after a movement is detected and remains ‘H‘ until the set time has elapsed. If during this time other motion detections occur, they have no influence.

Repeatable trigger (L):

Every new movement detected starts a new time cycle.

Connect your Motion sensor to Arduino Uno as shown bellow.

  • GND: GND
  • VCC: 5V
  • Out: D2 (you can choose yours)
  • LED: D13 (you can choose yours)

Uploading the Codes

Upload the following code into your Arduino.

//In this tutorial we have set our trigger jumper to 'H'
int sensorPin = 2; //sensor on digital pin
int LED = 13; //LED on digital pin

void setup() {
pinMode(sensorPin, INPUT);
pinMode(LED, OUTPUT);
Serial.begin(9600); //boud rate
}

void loop() {
int val = digitalRead(sensorPin);
digitalWrite(LED, val);
if(val==1)Serial.println("\tMotion Detected.");
else Serial.println("\tNo motion detected.");
delay(100);
}


Frw 3,800

Related Products

ESP8266 serial port wifi module NodeMCU Lua V3 Internet of Things development board TYPE-C interface CH340

ESP8266 serial port ...

Frw 11,000

Arduino Uno SMD Electronic Development Board, 32 Kb

Arduino Uno SMD Elec...

Frw 10,000

ESP32 NodeMCU Module WLAN WiFi Development Board | Dev Kit C V2 with CP2102 compatible with Arduino

ESP32 NodeMCU Module...

Frw 15,000

HC-SR04 Ultrasonic sensor

HC-SR04 Ultrasonic s...

Frw 4,500

L298N 2A Based Motor Driver Module

L298N 2A Based Motor...

Frw 4,500

L293D driver motor shield for Arduino

L293D driver motor s...

Frw 4,300

Mini Water / Fluid Pump MOD45 ,R12

Mini Water / Fluid P...

Frw 2,450

0.08MPa 370 Motor 12V DC Air pump/Oxygen filling pump COM45, R37

0.08MPa 370 Motor 12...

Frw 8,000

MQ135 Air Quality Detector Sensor Module

MQ135 Air Quality De...

Frw 6,900

Electrolytic Capacitors0.1uF – 4700uF/25v

Electrolytic Capacit...

Frw 300

MAX30100 - Heart Rate Oxygen Pulse Sensor

MAX30100 - Heart Rat...

Frw 3,950

Single Channel 5V Relay Module

Single Channel 5V Re...

Frw 2,400

Channel 5V Relay Module

Channel 5V Relay Mod...

Frw 4,300

4 Channel 5V Relay Module

4 Channel 5V Relay M...

Frw 5,950

PCB Board 9*15cm PRO24, R22

PCB Board 9*15cm PRO...

Frw 1,000

LED 5MM 2MA GN

LED 5MM 2MA GN

Frw 50

Multi Coin Acceptor

Multi Coin Acceptor

Frw 35,000

4 * 4 Matrix Array Matrix Keypad

4 * 4 Matrix Array M...

Frw 5,000

AS608 Fingerprint Reader Sensor Module Optical

AS608 Fingerprint Re...

Frw 27,000

5A ACS712 ACS712ELC Current Sensor Module

5A ACS712 ACS712ELC ...

Frw 5,500

Infrared Obstacle Avoidance Tracking Sensor Module

Infrared Obstacle Av...

Frw 2,500

Soil Moisture Sensor

Soil Moisture Sensor

Frw 500

TTP223 Touch sensor

TTP223 Touch sensor

Frw 3,000

Smallest SIM800L GPRS GSM BRD56 , R11

Smallest SIM800L GPR...

Frw 11,500

Raspberry Pi Camera 175 Degree OV5647 Sensor 5MP Cameras Module Wide Angle Fisheye Lens for Pi 5 / 4B / 3B+ / 3B / Zero 2 W 1.3

Raspberry Pi Camera ...

Frw 35,000

MQ-7 Gas Sensor Module for Carbon Monoxide

MQ-7 Gas Sensor Modu...

Frw 8,900

GY-521 MPU6050

GY-521 MPU6050

Frw 5,500

DSM501A Dust Sensor Module PM2.5 Detection Dector COM45, R28

DSM501A Dust Sensor ...

Frw 18,500

DHT22/AM2302 Digital Temperature And Humidity Sensor Module SENS54 ,R13

DHT22/AM2302 Digital...

Frw 7,800

Arduino Active Buzzer Module COM52 ,R25

Arduino Active Buzze...

Frw 2,700

Arduino Pro Mini 328 – 5V/16MHz Board COM55

Arduino Pro Mini 328...

Frw 9,500

NodeMCU ESP8266 Development Board with 0.96 Inch OLED Display, CH340 Driver Module for Arduino IDE/M

NodeMCU ESP8266 Deve...

Frw 14,000

CNC Shield V3 – Engraving Machine 3D Printer A4988 DRV8825 Driver Expansion Board BRD46 , R34

CNC Shield V3 – En...

Frw 4,500

PIR Motion sensor SEN51 ,R12

PIR Motion sensor SE...

Frw 3,800

SYB-170 Mini Breadboard

SYB-170 Mini Breadbo...

Frw 700

GY-9960-3.3 APDS-9960 RGB Infrared Gesture Sensor COM44

GY-9960-3.3 APDS-996...

Frw 10,000

LilyPad Light Sensor module COM31

LilyPad Light Sensor...

Frw 3,500

Active Single Phase AC Output Voltage Sensor SEN31 ,R11

Active Single Phase ...

Frw 12,000

P6KE16CA 600 Watt Transient Voltage Suppressor Diode COM26

P6KE16CA 600 Watt Tr...

Frw 300

Capacitive Soil Humidity Hygrometer Moisture Sensor SENS54, R14

Capacitive Soil Humi...

Frw 6,000

Normally Open Proximity Magnetic Sensor Reed Switch SEN43

Normally Open Proxim...

Frw 2,500

Non-invasive AC Current Sensor – 30A SEN31

Non-invasive AC Curr...

Frw 11,500

Alcohol Gas Sensor ( MQ-3 ) SEN42 ,R16

Alcohol Gas Sensor (...

Frw 6,000