Ks0052 keyestudio PIR Motion Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 9: Line 9:
It features higher reliability, lower power consumption and simpler peripheral circuit.
It features higher reliability, lower power consumption and simpler peripheral circuit.


<br>
<span style="color:red"> '''Special note:''' <br>
1. The maximum distance is 3-4 meters during testing.<br>
2. When testing, first open the white lens, you can see the rectangular sensing part. When the long line of the rectangular sensing part is parallel to the ground, the distance is the best.<br>
3. When testing, the sensor needs to be covered with white lens, otherwise it will affect the distance.<br>
4. The distance is best at 25℃, and the detection distance is shortened when it exceeds 30℃.<br>
5. Done powering up and uploading the code, you need to wait 5-10 seconds then start testing, otherwise it is not sensitive.
</span><br>
<br>[[Image:0052图片2.png|200px|frameless]]<br>
<br>


== Features ==
== Features ==
Line 16: Line 28:
* simpler peripheral circuit
* simpler peripheral circuit


 
<br>
== Parameters==
== Parameters==
* Input Voltage: DC 3.3V~18V  
* Input Voltage: DC 3.3V~18V  
Line 24: Line 36:
* Output Delay Time (High Level): About 2.3 to 3 Seconds
* Output Delay Time (High Level): About 2.3 to 3 Seconds
* Detection Angle: 100°
* Detection Angle: 100°
* Detection Distance: 7 meters
* Detection Distance: 3-4 meters
* Output Indicator LED (If it is HIGH level, it will be ON)
* Output Indicator LED (If it is HIGH level, it will be ON)
* Pin Limit Current: 100mA
* Pin Limit Current: 100mA


==Pinout==
<br>
==PINOUT==
<br>[[Image:KS0335-1.jpg|800px|frameless]]<br>
<br>[[Image:KS0335-1.jpg|800px|frameless]]<br>




<br>
==Wire it Up==
==Wire it Up==
Connect the S pin of module to Digital 3 of UNO board, connect the negative pin to GND port, positive pin to 5V port.
Connect the S pin of module to Digital 3 of UNO board, connect the negative pin to GND port, positive pin to 5V port.
<br>[[Image:Ks0052.jpg|700px|frameless]]<br>
<br>[[Image:Ks0052.jpg|800px|frameless]]<br>


<br>
==Sample Code==
==Sample Code==
Below is an example code, you can upload it to [http://wiki.keyestudio.com/index.php/Download_Arduino_IDE  Arduino IDE].
Below is an example code, you can upload it to [http://wiki.keyestudio.com/index.php/Download_Arduino_IDE  Arduino IDE].
Line 63: Line 77:
</pre>
</pre>


 
<br>
==Example Result==
==Example Result==
<br>[[Image:KS0335-3.jpg|800px|frameless]]<br>
<br>[[Image:KS0335-3.jpg|800px|frameless]]<br>
Line 71: Line 85:
<br>[[Image:KS0335-4.jpg|800px|frameless]]<br>
<br>[[Image:KS0335-4.jpg|800px|frameless]]<br>


<br>
==Resources ==
*'''Code''' <br>
https://fs.keyestudio.com/KS0052
* '''Video:''' <br>
http://video.keyestudio.com/ks0052/


==Resources ==


'''Datasheet Download: ''' <br>
https://drive.google.com/open?id=16aLt_zk9muADaaPwlalsnR0BnHYU4b-c


'''Video:''' <br>
<br>
http://www.keyestudio.com/wp/ks0052/


==Buy from==
==Buy from==


* '''Official Website:'''  http://www.keyestudio.com/wp/ks0052/
* [https://www.keyestudio.com/2016-new-keyestudio-pir-motion-sensor-for-arduino-p0488-p0488.html  '''Official Website:'''  ]


* [https://www.amazon.com/dp/B0177V3A6U    '''From Amazon''']
* [https://www.amazon.com/dp/B0177V3A6U    '''From Amazon''']
Line 88: Line 106:
* [https://www.aliexpress.com/store/product/2016-new-Keyestudio-PIR-Motion-Sensor-for-Arduino/1452162_32618313721.html?spm=2114.12010612.8148356.7.752ac4c67FThSc      '''From Aliexpress''']
* [https://www.aliexpress.com/store/product/2016-new-Keyestudio-PIR-Motion-Sensor-for-Arduino/1452162_32618313721.html?spm=2114.12010612.8148356.7.752ac4c67FThSc      '''From Aliexpress''']


* [https://www.ebay.com/itm/132591399700  '''From eBay''']






[[Category: Sensor]]
[[Category: Sensor]]

Latest revision as of 14:15, 7 January 2021

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.


Special note:
1. The maximum distance is 3-4 meters during testing.
2. When testing, first open the white lens, you can see the rectangular sensing part. When the long line of the rectangular sensing part is parallel to the ground, the distance is the best.
3. When testing, the sensor needs to be covered with white lens, otherwise it will affect the distance.
4. The distance is best at 25℃, and the detection distance is shortened when it exceeds 30℃.
5. Done powering up and uploading the code, you need to wait 5-10 seconds then start testing, otherwise it is not sensitive.


0052图片2.png


Features

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


Parameters

  • Input Voltage: DC 3.3V~18V
  • 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: 3-4 meters
  • Output Indicator LED (If it is HIGH level, it will be ON)
  • Pin Limit Current: 100mA


PINOUT


KS0335-1.jpg



Wire it Up

Connect the S pin of module to Digital 3 of UNO board, connect the negative pin to GND port, positive pin to 5V port.
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


Resources

  • Code

https://fs.keyestudio.com/KS0052

  • Video:

http://video.keyestudio.com/ks0052/



Buy from