Reports.PIRMotionSensor History

Hide minor edits - Show changes to output

Changed lines 64-66 from:
The PIR motion sensor needs a direct and uninterrupted line of sight. It's unable to detect through cloth or cardboard.
to:
The PIR motion sensor needs a direct and uninterrupted line of sight. It's unable to detect through cloth or cardboard.It detects movement in front of it from about 8 feet away.
Changed lines 64-66 from:
to:
The PIR motion sensor needs a direct and uninterrupted line of sight. It's unable to detect through cloth or cardboard.
Changed lines 73-74 from:
http://itp.nyu.edu/~ago218/sensors/PIRsetup.gif
to:
%center%http://itp.nyu.edu/~ago218/sensors/PIRsetup.gif
Deleted lines 16-20:

(:cell width = 250 align=center:)
%right%http://itp.nyu.edu/~ago218/sensors/pir.gif
(:tableend:)
Added lines 20-25:

(:cell width = 250 align=center:)
%right%http://itp.nyu.edu/~ago218/sensors/pir.gif
(:tableend:)
Changed line 4 from:
%right%http://itp.nyu.edu/~ago218/sensors/pir.gif
to:
Added lines 18-21:
(:cell width = 250 align=center:)
%right%http://itp.nyu.edu/~ago218/sensors/pir.gif
(:tableend:)
Added lines 2-3:
(:table border=0 cellpadding=5 cellspacing=0 width=1000 :)
(:cell width = 600:)
Changed line 2 from:
to:
%right%http://itp.nyu.edu/~ago218/sensors/pir.gif
Changed lines 10-12 from:
%right%http://itp.nyu.edu/~ago218/sensors/pir.gif
to:
Changed lines 10-11 from:
to:
%right%http://itp.nyu.edu/~ago218/sensors/pir.gif
Changed lines 46-47 from:
The alarm pin (black) is an [http://en.wikipedia.org/wiki/Open_collector | open collector], meaning that it needs a resistor (I used 10k) going to power, parallel to the one that goes to DC.
to:
The alarm pin (black) is an [[http://en.wikipedia.org/wiki/Open_collector | open collector]], meaning that it needs a resistor (I used 10k) going to power, parallel to the cable that goes to DC. That's right, both the Alarm pin and the DC pin are connected to power.
Added line 49:
Added line 51:
Changed lines 53-55 from:
They only react to change so they cant detect someone standing still in front of them.
to:

They only react to change so they can't detect someone standing still in front of them.

When using more than one, they can be connected on the same input to Arduino, however the values need to be normalized. I found it better to connect them to different analog inputs
.
Changed lines 42-43 from:
[http://en.wikipedia.org/wiki/Passive_infrared_sensor#PIR-based_motion_detector | more on PIR from Wikipedia]
to:
[[http://en.wikipedia.org/wiki/Passive_infrared_sensor#PIR-based_motion_detector | more on PIR from Wikipedia]]
Changed lines 60-61 from:
'''Electrical specifications'''
Connecting it on a breadboard:
to:
'''Connecting it on a breadboard'''
Changed lines 22-23 from:
This sensor has two elements made of a crystalline material that generates a surface electric charge when exposed to heat in the form of infrared radiation. Each one of them measures 2 x 1 mms and they are 1 mm apart.
to:

It
has two sensing elements made of a crystalline material that generate surface electric charge when they detect a difference in heat energy in the form of infrared radiation. Each one of them measures 2 x 1 mms and they are 1 mm apart. They are connected in a way that cancels signals caused by vibration and weather. The sensing area is set at an angle so that when a body passes in front of the sensor it activates the first element and then the second one. If both elements are affected simultaneously, it gets canceled.

%center%http://itp.nyu.edu/~ago218/sensors/config.gif
Deleted lines 28-29:
It has two sensing elements that activate when there’s a difference in heat energy detected in each side. They are connected in a way that cancels signals caused by vibration and weather. The sensing area is set at an angle so that when a body passes in front of the sensor it activates the first element and then the second one. If both elements are affected simultaneously, it gets canceled.
Added lines 31-32:
%center%http://itp.nyu.edu/~ago218/sensors/source.gif
Changed lines 17-18 from:
'''Infrared'''
to:
'''PIR'''
Changed lines 39-40 from:
to:
[http://en.wikipedia.org/wiki/Passive_infrared_sensor#PIR-based_motion_detector | more on PIR from Wikipedia]
Added line 67:
Added lines 59-61:
http://itp.nyu.edu/~ago218/sensors/PIRsetup.gif

close up of the breadboard
Changed lines 64-65 from:
to:
As you can see it needs a resistor going to power for the Alarm Pin. This keeps the value at around 1023 while no infrared has been detected.
Changed lines 9-12 from:
This is the sensor that activates lights or security cameras or alarms when it detects a person.
to:
This is the sensor that activates lights or security cameras or alarms when it detects infrared energy close to it.
Deleted line 53:
Added lines 59-63:
'''Electrical specifications'''
Connecting it on a breadboard:
%center%http://itp.nyu.edu/~ago218/sensors/PIRbreadboard.gif
Deleted line 64:
Changed lines 47-50 from:
Changing the lens can change the range they cover.
They only react to change so they cant detect someone standing still in front of them.
to:
Changing the cover on it can change the range they cover.
They only react to change so they cant detect someone standing still in front of them.
Changed lines 56-58 from:
to:
It has 3 wires, DC (red), GND (brown) and Alarm (black).
Changed lines 44-45 from:
It uses a pull up resistor in the DC pin.
It works from 3
.3 to 12 volts.
to:
The alarm pin (black) is an [http://en.wikipedia.org/wiki/Open_collector | open collector], meaning that it needs a resistor (I used 10k) going to power, parallel to the one that goes to DC.
It works from 3.3 to 12 volts ( I used it on 5 V)
Changed lines 59-60 from:
This code makes the LED on digital pin 11 blink as soon as the sensor goes past 1000. The regular value without movement is below 20, upon detecting it, it climbs up to 1023.
to:
This code makes the LED on digital pin 11 blink as soon as the sensor goes lower than 20. The regular value without movement is above 1021, upon detecting it, it goes low to 17 - 18.
Changed line 67 from:
' int timer = 700;
to:
' int timer = 500;
Changed line 83 from:
' if (alarmValue > 1000){
to:
' if (alarmValue < 100){
Changed line 83 from:
' if (alarmValue > 1000);
to:
' if (alarmValue > 1000){
Changed line 85 from:
to:
' }
Changed lines 59-60 from:
This code makes the LED on digital pin 11 blink as soon as the sensor goes past 1000. The regular value without movement is below 20, upon detecting it, it climbs up to 1023.
to:
This code makes the LED on digital pin 11 blink as soon as the sensor goes past 1000. The regular value without movement is below 20, upon detecting it, it climbs up to 1023.
Added line 65:
' // example for the PIR motion sensor SE-10
Deleted line 66:
'
Changed lines 63-96 from:
int timer = 700;
int alarmPin = 0;
int alarmValue = 0;
int ledPin = 11;

void setup () {
Serial.begin (9600)
;
pinMode(ledPin, OUTPUT);
pinMode(alarmPin, INPUT);
delay
(2000); // it takes the sensor 2 seconds to scan the area around it before it can detect infrared presence.
}

void loop (){
alarmValue = analogRead(alarmPin);

if (alarmValue > 1000);
blinky(); // blinks when the motion has been detected, just for confirmation.

delay(timer
);

Serial.println (alarmValue);

delay (10);

}

void blinky() {
for(int i=0; i<3; i++) {
digitalWrite
(11,HIGH);
delay(200);
digitalWrite(11,LOW);
delay(200);
}
}
to:
[@

'
'

' int timer = 700;
' int alarmPin = 0;
' int alarmValue = 0;
' int ledPin = 11;

' void setup
() {
' Serial.begin
(9600);
' pinMode(ledPin, OUTPUT);
' pinMode(alarmPin, INPUT);
' delay (2000); // it takes the sensor 2 seconds to scan the area around it before it can

' detect infrared presence.
' }

' void loop (){
' alarmValue = analogRead(alarmPin);

' if (alarmValue > 1000
);
' blinky(); // blinks when the motion has been detected, just for confirmation.

' delay
(timer);

' Serial.println (alarmValue);

' delay (10);

' }

' void blinky
() {
' for(int i=0; i<3; i++) {
' digitalWrite(11,HIGH);
' delay(200);
' digitalWrite(11,LOW);
' delay(200);
'
}
' }
Changed line 103 from:
to:
@]
Added lines 59-60:
This code makes the LED on digital pin 11 blink as soon as the sensor goes past 1000. The regular value without movement is below 20, upon detecting it, it climbs up to 1023.
Changed lines 66-67 from:
to:
int ledPin = 11;
Added lines 70-72:
pinMode(ledPin, OUTPUT);
pinMode(alarmPin, INPUT);
delay (2000); // it takes the sensor 2 seconds to scan the area around it before it can detect infrared presence.
Added lines 77-80:

if (alarmValue > 1000);
blinky(); // blinks when the motion has been detected, just for confirmation.
Added line 82:
Added line 84:
Added line 86:
Added lines 89-98:
void blinky() {
for(int i=0; i<3; i++) {
digitalWrite(11,HIGH);
delay(200);
digitalWrite(11,LOW);
delay(200);
}
}
Changed lines 54-56 from:
to:
%center%http://hanseelec.com/upload/han_prod/PCB-030-1.jpg
Changed lines 59-80 from:


// int
timer = 700;
// int alarmPin = 0;
// int alarmValue = 0;

// void setup () {
// Serial.begin (9600);
// }

// void loop (){
// alarmValue = analogRead(alarmPin);
// delay(timer);
// Serial.println (alarmValue);
// delay (10);
// }

to:
---------

int
timer = 700;
int alarmPin = 0;
int alarmValue = 0;

void setup () {
Serial.begin (9600);
}

void loop (){
alarmValue = analogRead(alarmPin);
delay(timer);
Serial.println (alarmValue);
delay (10);
}

---------
Changed lines 1-2 from:
!!%center%PIR MOTION SENSOR
to:
!!%center%PIR Sensor Module SE-10
Changed lines 52-54 from:
to:
[[http://itp.nyu.edu/~ago218/sensors/SE-10.pdf | Data Sheet SE - 10]]
Changed lines 57-71 from:
int timer = 700;
int alarmPin = 0;
int alarmValue = 0;

void setup () {
Serial.begin (9600);
}

void loop (){
alarmValue = analogRead(alarmPin);
delay(timer);
Serial.println (alarmValue);
delay (10);
}
to:
// int timer = 700;
// int alarmPin = 0;
// int alarmValue = 0;

// void setup () {
// Serial.begin (9600);
// }

// void loop (){
// alarmValue = analogRead(alarmPin);
// delay(timer);
// Serial.println (alarmValue);
// delay (10);
// }
Changed lines 4-6 from:
sold by [[http://www.sparkfun.com/commerce/product_info.php?products_id=8630 |Sparkfun]]
to:
sold by [[http://www.sparkfun.com/commerce/product_info.php?products_id=8630 |Sparkfun]] number SEN-08630
Changed line 3 from:
manufactured by [[http://www.hanseelec.com/eng/ | Hanseelec]]
to:
manufactured by [[http://www.hanseelec.com/eng/ | Hanseelec]],
Changed lines 4-6 from:
to:
sold by [[http://www.sparkfun.com/commerce/product_info.php?products_id=8630 |Sparkfun]]
Added lines 11-12:
Changed lines 51-52 from:
to:
'''Electrical specifications'''

'''Sample code in Arduino'''



int timer = 700;
int alarmPin = 0;
int alarmValue = 0;

void setup () {
Serial.begin (9600);
}

void loop (){
alarmValue = analogRead(alarmPin);
delay(timer);
Serial.println (alarmValue);
delay (10);
}



Added lines 3-6:
manufactured by [[http://www.hanseelec.com/eng/ | Hanseelec]]

Changed lines 15-19 from:
'''Important notes'''

It uses a pull up resistor in the DC pin.
It works from 3.3 to 12 volts.
to:
Changed lines 25-26 from:
It has two sensing elements that activate when there’s a difference in heat energy detected in each side. They are connected in a way that cancels signals caused by vibration and weather. The sensing area is set at an angle so that when a body passes in front of the sensor it activates the first element and then the second one. If both elements are affected simultaneously, it gets cancelled.
to:
It has two sensing elements that activate when there’s a difference in heat energy detected in each side. They are connected in a way that cancels signals caused by vibration and weather. The sensing area is set at an angle so that when a body passes in front of the sensor it activates the first element and then the second one. If both elements are affected simultaneously, it gets canceled.
Added lines 40-50:
'''Important notes'''

It uses a pull up resistor in the DC pin.
It works from 3.3 to 12 volts.
Dual sensor PIR is the most widely used motion detection system. They’re false-triggered less often than ultrasonic.
Changing the lens can change the range they cover.
They only react to change so they cant detect someone standing still in front of them.


Added line 30:
Changed lines 32-33 from:
alarms [[http://www.globalsources.com/gsol/I/PIR-detector/p/sm/1005552896.htm | example]] and security cameras [[http://www.globalsources.com/gsol/I/Dome-camera/p/sm/1001350130.htm | example]]
to:
alarms [[http://www.globalsources.com/gsol/I/PIR-detector/p/sm/1005552896.htm | (example)]] and security cameras [[http://www.globalsources.com/gsol/I/Dome-camera/p/sm/1001350130.htm | (example)]]
Changed lines 35-39 from:
lights that turn on/off when people pass by [[http://www.smarthome.com/2512.html | example]] or
to control electronic appliances [[http://www.gadgetshack.com/motion-light-lamp-controller.html| example]]
to:
lights that turn on/off when people pass by [[http://www.smarthome.com/2512.html | (example)]] or
to control electronic appliances [[http://www.gadgetshack.com/motion-light-lamp-controller.html| (example)]]
Changed lines 34-38 from:
to control electronic appliances [[http://www.gadgetshack.com/motion-light-lamp-controller.html
| example]]
to:
to control electronic appliances [[http://www.gadgetshack.com/motion-light-lamp-controller.html| example]]
Changed lines 30-31 from:
to:
'''security'''
alarms [[http://www.globalsources.com/gsol/I/PIR-detector/p/sm/1005552896.htm | example]] and security cameras [[http://www.globalsources.com/gsol/I/Dome-camera/p/sm/1001350130.htm | example]]
'''automation'''
lights that turn on/off when people pass by [[http://www.smarthome.com/2512.html | example]] or
to control electronic appliances [[http://www.gadgetshack.com/motion-light-lamp-controller.html
| example]]
Added line 8:
Added line 12:
Added line 17:
Changed lines 19-20 from:
[[http://itp.nyu.edu/~ago218/sensors/ir.gif | IR.gif]]
to:
%center%http://itp.nyu.edu/~ago218/sensors/ir.gif
Changed lines 1-4 from:
!! Heading PIR MOTION SENSOR

''Applications''
to:
!!%center%PIR MOTION SENSOR

'''Applications'''
Changed lines 7-10 from:
'''How does it work'''
to:
'''How does it work?'''
It basically scans an area and then detects movement inside of it. When it does, it sends a low through the alarm pin (black wire).

'''Important notes'''
It uses a pull up resistor in the DC pin.
It works from 3.3 to 12 volts.

'''Infrared'''
PIR stands for passive infrared. Infrared is a type of radiation that is not visible to the human eyes but can be detected. It’s part of the electromagnetic spectrum at a longer wavelength than visible light.
[[http://itp.nyu.edu/~ago218/sensors/ir.gif | IR.gif]]

This sensor has two elements made of a crystalline material that generates a surface electric charge when exposed to heat in the form of infrared radiation. Each one of them measures 2 x 1 mms and they are 1 mm apart.

The lens that covers the sensing elements filters the infrared radiation to only let through the most sensitive to human body radiation (8 to 14 µm range). It also works as a focusing device. In this specific sensor it is a silicon coated material.

It has two sensing elements that activate when there’s a difference in heat energy detected in each side. They are connected in a way that cancels signals caused by vibration and weather. The sensing area is set at an angle so that when a body passes in front of the sensor it activates the first element and then the second one. If both elements are affected simultaneously, it gets cancelled.

The detected element must pass across the sensor in a horizontal direction when both pins are on a horizontal plane and thus can get sequentially exposed to the IR source.

This kind of sensor is commonly used in two ways:
Added lines 1-10:
!! Heading PIR MOTION SENSOR

''Applications''

This is the sensor that activates lights or security cameras or alarms when it detects a person.

'''How does it work'''