Difference between revisions of "Sensor-PIR"
From Microduino Wiki
(→Features) |
(→Specification) |
||
Line 26: | Line 26: | ||
==Specification== | ==Specification== | ||
+ | *Voltage | ||
+ | **3.3V~5V working voltage | ||
*Electrical specification | *Electrical specification | ||
− | |||
**Working current: 15uA | **Working current: 15uA | ||
**Working temperature: -20~85℃ | **Working temperature: -20~85℃ | ||
− | **Output voltage: | + | **Output voltage: high level 5V, low level 0V |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[ | + | *Size |
+ | **Size of the board: 23.5mm*13mm | ||
+ | **1.27mm-spacing 4Pin itnerface connected to sensorhub | ||
+ | **The CAD drawing of the sensor: '''[[File:Sensor_CAD.zip]]''' | ||
+ | *Technical parameters | ||
+ | **Output delay(high level): about 2.3~3s | ||
+ | **Induction angle: 100° | ||
+ | **Induction distance: 7m | ||
+ | |||
+ | *Connection | ||
+ | **This sensor can be connected to the following interfaces of core: '''D2~D13''','''A0~A7''' | ||
==Document== | ==Document== |
Revision as of 08:48, 10 November 2016
Language: | English • 中文 |
---|
The product number of Sensor-PIR is: MSDI51 Sensor-PIR is a pyroelectric infrared sensor that can detect infrared rays sent from moving human body or animals. It can output switch signals and be used in various occasions that need to detect moving human body.
ContentsIntroduction of Pins
Features
Specification
Document
DevelopmentEquipment
Preparation
Experiment: Detect If there is person moving
#define sensorPin 6
int state;
void setup()
{
pinMode(sensorPin, INPUT);
Serial.begin(9600);
}
void loop()
{
state = digitalRead(sensorPin);
if (state == 1)
Serial.println("Somebody is in this area!");
else
Serial.println("No one!");
delay(500);
}
When the PIR is detecting the moving persons, it'll output high level in the output pin, which is 5V. And when it detected the PIR signal gone, it'll output low level(0V) after 2.3-3s delay. Therefore, we can according to that to establish a moving person detection project according to that. Program Debugging
Application
ProjectPurchaseHistoryImage
|