Pages: [1]   Go Down
Author Topic: PIR sensor as Occupation detector  (Read 515 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey ..friends ..!!!
i m goin to make Occupation detector using 2 pir sensor ..!!
i tried a lot to make code on this but the delay of sensor cant make it work properly ..!!

Arrangement :
2 pir sensors are kept at distance and if somebody passed near to sensor then sensor will detect alternatively ..!!
if first sensed by 1st pir and then 2nd then person is IN.or vice versa OUT.

soppp ,I want some idea to make it proper.
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 613
Posts: 49291
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

PIR sensors are the wrong kind of sensors for this project.

What would happen in someone wandered near the first sensor, and then wandered away, without ever going near the second sensor?

How would you keep the relatively large range of sensor one from extending past that of sensor two?

What if someone is entering while someone else is leaving?

Quote
i tried a lot to make code on this but the delay of sensor cant make it work properly ..!!
But, you showed none of it. If the delay is consistent (that is, there is a 3 second delay after a person is detected by either sensor before the Arduino becomes aware of it), the delay doesn't matter.

If the delay from one sensor is not the same as the delay from the other sensor (but both are consistent), the delays can be negated (i.e. you can determine the time that each sensor actually fired) and the actual order still can be determined.

If the delays are not consistent, start again at the top.
Logged

Topsham, Vermont USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 1906
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

And, when the 'occupant' goes to sleep or sits very quietly reading it drops out.

My wife designed 3 libraries in Saudi Arabia and the cool 'occupied' lighting controls dictated by the facilities guys had to be defeated for the libraries because the lights kept going off!

A type of IR temperature sensor is supposed to work for this, and only drop out if you become room temperature (and probably dead..)
Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Pages: [1]   Go Up
Jump to: