tech4nature / HogPi

GNU General Public License v3.0
0 stars 1 forks source link

Camera PIR reacts to wind #26

Open Gabrielkyne opened 5 years ago

Gabrielkyne commented 5 years ago

The camera pir is too sensitive. Reads wind and leaf movement. The false positive test shows no poor reads.

It has no electronic adjustment. Therefore I propose a software adjustment in pir.py pseudo code:

def pir.read(sensitivity)

if pire.read() == 1: i++ if i++ ==sensitivity: #pass in to function number of consequetive times read return 1 elseif: i =0 return 0

This way I can calibrate the PIR to work in different environments. This is an industrial solution which was used according to farnell.

sebbacon commented 5 years ago

Seems sensible on the face of it.

How often will a pir give a read? If I continuously move a hand in front of it, does it switch on and off in a cycle (and if so what is the cycle), or does it stay on until movement stops?

(P.S. Now we're recording these things in issues, you can refer to them with hash+issue number in a commit message and you've got a way of tying code changes to discussions. you can also reference issues in pull requests, and other issues like this #1)