Ks0052 keyestudio PIR Motion Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
Line 1: Line 1:
[[image:Ks0052 PIR motion.png|thumb|600px|right|Keyestudio PIR Motion Sensor]]
==Introduction==
==Introduction==
Pyroelectric infrared motion sensor can detect infrared signals from a moving person or moving animal, and output switching signals. It can be applied to a variety of occasions to detect the movement of human body. Conventional pyroelectric infrared sensors require body pyroelectric infrared detector, professional chip and complex peripheral circuit, so the size is much more bigger, with complex circuit and lower reliability.  
The Pyroelectric infrared motion sensor can detect infrared signals from a moving person or moving animal, and output switching signals. It can be applied to a variety of occasions to detect the movement of human body.  
Now we launch this new pyroelectric infrared motion sensor, specially designed for Arduino. It uses an integrated digital body pyroelectric infrared sensor, with smaller size, higher reliability, lower power consumption and simpler peripheral circuit.
Conventional pyroelectric infrared sensors are much more bigger, with complex circuit and lower reliability.  
<br>[[File:Ks0052 PIR motion.png|500px|frameless|thumb]]<br>
Now we launch this new pyroelectric infrared motion sensor, specially designed for Arduino. This sensor integrates an integrated digital pyroelectric infrared sensor, and the connection pins.
It features higher reliability, lower power consumption and simpler peripheral circuit.
 
 
== Features ==
* smaller size and light weight
* higher reliability  
* lower power consumption  
* simpler peripheral circuit
 
 
== Parameters==
* Input Voltage: 3.3 ~ 5V, Maximum6V.  
* Working Current: 15uA
* Working Temperature: -20 ~ 85 ℃
* Output Voltage: High 3V, Low 0V
* Output Delay Time (High Level): About 2.3 to 3 Seconds
* Detection Angle: 100°
* Detection Distance: 7 meters
* Output Indicator LED (If it is HIGH level, it will be ON)
* Pin Limit Current: 100mA
 
==Pinout==
<br>[[Image:KS0335-1.jpg|600px|frameless]]<br>
 
==Wire it Up==
<br>[[Image:Ks0052.jpg|600px|frameless]]<br>
 
==Sample Code==
Below is an example code, you can upload it to [http://wiki.keyestudio.com/index.php/Download_Arduino_IDE  Arduino IDE].
<pre>
byte sensorPin = 3;
byte indicator = 13;
void setup()
{
  pinMode(sensorPin,INPUT);
  pinMode(indicator,OUTPUT);
  Serial.begin(9600);
}
 
void loop()
{
  byte state = digitalRead(sensorPin);
  digitalWrite(indicator,state);
  if(state == 1)Serial.println("Somebody is in this area!");
  else if(state == 0)Serial.println("No one!");
  delay(500);
}
</pre>
 
 
==Example Result==
<br>[[Image:KS0335-3.jpg|800px|frameless]]<br>
 
Done wiring and powered up, upload well the code, if the sensor detects someone moving nearby, D13 indicator on UNO board will light up, and "Somebody is in this area!" is displayed on the serial monitor. <br>
If no movement, D13 indicator on UNO board not lights, and "No one!" is displayed on the serial monitor.
<br>[[Image:KS0335-4.jpg|800px|frameless]]<br>


==Specification==
==Specification==

Revision as of 14:10, 27 July 2018

Keyestudio PIR Motion Sensor

Introduction

The Pyroelectric infrared motion sensor can detect infrared signals from a moving person or moving animal, and output switching signals. It can be applied to a variety of occasions to detect the movement of human body. Conventional pyroelectric infrared sensors are much more bigger, with complex circuit and lower reliability. Now we launch this new pyroelectric infrared motion sensor, specially designed for Arduino. This sensor integrates an integrated digital pyroelectric infrared sensor, and the connection pins. It features higher reliability, lower power consumption and simpler peripheral circuit.


Features

  • smaller size and light weight
  • higher reliability
  • lower power consumption
  • simpler peripheral circuit


Parameters

  • Input Voltage: 3.3 ~ 5V, Maximum6V.
  • Working Current: 15uA
  • Working Temperature: -20 ~ 85 ℃
  • Output Voltage: High 3V, Low 0V
  • Output Delay Time (High Level): About 2.3 to 3 Seconds
  • Detection Angle: 100°
  • Detection Distance: 7 meters
  • Output Indicator LED (If it is HIGH level, it will be ON)
  • Pin Limit Current: 100mA

Pinout


KS0335-1.jpg

Wire it Up


Ks0052.jpg

Sample Code

Below is an example code, you can upload it to Arduino IDE.

byte sensorPin = 3;
byte indicator = 13;
void setup()
{
  pinMode(sensorPin,INPUT);
  pinMode(indicator,OUTPUT);
  Serial.begin(9600);
}

void loop()
{
  byte state = digitalRead(sensorPin);
  digitalWrite(indicator,state);
  if(state == 1)Serial.println("Somebody is in this area!");
  else if(state == 0)Serial.println("No one!");
  delay(500);
}


Example Result


KS0335-3.jpg

Done wiring and powered up, upload well the code, if the sensor detects someone moving nearby, D13 indicator on UNO board will light up, and "Somebody is in this area!" is displayed on the serial monitor.
If no movement, D13 indicator on UNO board not lights, and "No one!" is displayed on the serial monitor.
KS0335-4.jpg

Specification

  • Input Voltage: 3.3 ~ 5V, 6V Maximum
  • Working Current: 15uA
  • Working Temperature: -20 ~ 85 ℃
  • Output Voltage: High 3V, low 0V
  • Output Delay Time (High Level): About 2.3 to 3 Seconds
  • Detection Angle: 100 °
  • Detection Distance: 7 meters
  • Output Indicator LED (When output HIGH, it will be ON)
  • Pin Limit Current: 100mA
  • Size: 30*20mm
  • Weight: 4g

Connection Diagram


thumb

Sample Code

byte sensorPin = 3;
byte indicator = 13;
void setup()
{
  pinMode(sensorPin,INPUT);
  pinMode(indicator,OUTPUT);
  Serial.begin(9600);
}

void loop()
{
  byte state = digitalRead(sensorPin);
  digitalWrite(indicator,state);
  if(state == 1)Serial.println("Somebody is in this area!");
  else if(state == 0)Serial.println("No one!");
  delay(500);
}

Resources

Video

http://www.keyestudio.com/wp/ks0052/

PDF

https://drive.google.com/open?id=1Iu_l3kL6sfRrfSqLupX2air_QZgp18Mz

Buy from

Official Website

http://www.keyestudio.com/ks0052.html

Amazon Store

https://www.amazon.com/keyestudio-PIR-Motion-Sensor-Arduino/dp/B0177V3A6U/