Ks0122 keyestudio EASY plug PIR Motion Sensor: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
Line 7: | Line 7: | ||
One important thing to mention is that when motion is detected, the output will stay high for 2.3 to 3 seconds after the motion stops.<br> | One important thing to mention is that when motion is detected, the output will stay high for 2.3 to 3 seconds after the motion stops.<br> | ||
Regarding the power supply, it can work with voltages of both 3.3V and 5V. The device has a detection range of 7 meters and a detection angle of 100º.<br> | Regarding the power supply, it can work with voltages of both 3.3V and 5V. The device has a detection range of 7 meters and a detection angle of 100º.<br> | ||
<span style= | This module should be used together with EASY plug control board.<br> | ||
<span style=color:red> '''Special Note:''' <br> | |||
The sensor/module is equiped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equiped with the RJ11 6P6C interface but have different internal line sequence, can not be used compatibly with our sensor/module. </span><br> | |||
<br> | <br> | ||
==Specification== | ==Specification== |
Revision as of 08:53, 22 May 2019
Introduction
PIR stands for Pyroelectric Infrared (many times, they are also referred as Passive Infrared sensors). This is because their principle of operation is based on the detection of infrared energy emitted by a moving body.
The PIR sensor can detect infrared signals from a moving person or moving animal, outputting switching signals.
One important thing to mention is that when motion is detected, the output will stay high for 2.3 to 3 seconds after the motion stops.
Regarding the power supply, it can work with voltages of both 3.3V and 5V. The device has a detection range of 7 meters and a detection angle of 100º.
This module should be used together with EASY plug control board.
Special Note:
The sensor/module is equiped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equiped with the RJ11 6P6C interface but have different internal line sequence, can not be used compatibly with our sensor/module.
Specification
- Connector: Easy plug
- Input Voltage: 3.3 ~ 5V, Maximum 6V
- 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
Technical Details
- Dimensions: 38mm*20mm*18mm
- Weight: 5.6g
Connect It Up
Connect the EASY Plug PIR Motion sensor and LED module to control board using RJ11 cables. Then connect the control board to your PC with a USB cable.
Test Code
Below is an example code. Open or drag below code to Mixly Blocks and upload.
What You Should See
After uploading the code, slide the potentiometer, the servo motor will rotate to a certain angle.
Done uploading the code, if the sensor detects someone moving nearby, you should see the LED is turned on.
Open the serial monitor and set the baud rate to 9600, it will print out the data.
Controlling Fan Motor
What You Should See
If the sensor detects someone moving nearby, you should see the LED is turned on, and the fan motor is rotating. Otherwise, LED is turned off and motor stops rotating.
Resources
Download the Arduino information:
https://drive.google.com/open?id=1HoUeqZLyOxS6nmIxfN09AtgajnjPSE5L
Download the Mixly Code and Datasheet:
https://drive.google.com/open?id=1FBzF4Ozko22xGxCgdsu2rQ_9E56_w6_b