(SKU:RB-02S017)PIR Sensor

From ALSRobot-Wki
Jump to: navigation, search
红外热释电01.jpg

Contents

overview

The PIR (Passive Infra-Red) Sensor is a pyroelectric device that detects motion by measuring changes in the infrared (heat) levels emitted by surrounding objects. When motion is detected the PIR Sensor outputs a high signal on its output pin. This logic signal can be read by a microcontroller or used to drive an external load. Dual output modes and a sensible design that performs within stated datasheet specifications are a few reasons over 100,000 units are in use around the world.

Technical parameters and performance

  1. Power requirements: 3 to 6 VDC; 130 μA idle, 23 mA active (no load)
  2. Communication: Single bit high/low output
  3. Dimensions: 1.41 x 1.0 x 0.8 in (35.8 x 25.4 x 20.3 cm)
  4. Operating temp range: 32 to 122 °F (0 to 50 °C)
  5. Weight: 8g

using method

Pin definition

Hwrsd1.jpg
Hwrsd2.jpg
  • S: signal output
  • +: power supply (VCC)
  • -: (GND)
  • adjustable potentiometer is used to adjust the distance and sensitivity

Connect Icon

红外热释电03.jpg
红外热释电04.jpg

Application Routine

Rsdjx.jpg

Sample code

int PIR  =9;             
int led  =13;             
int time =0;

void setup()
{
  pinMode(led,OUTPUT);      
  pinMode(PIR,INPUT);        
}

void loop()
{
  if(digitalRead(PIR))        
    digitalWrite(led,HIGH);       
  else                           
    digitalWrite(led,LOW);        
}

Program effect

Detected in the human body, LED light

Product recommendation

Buy address:PIR Sensor

Personal tools
Namespaces

Variants
Actions
Navigation
Tools