I have tried to adjust the two screws on the module, as described here for time delay and distance (http://www.elecfreaks.com/398.html) but i cant really make it fire the event when a human enters the room (it just fires randomly it seems)
I have attached some images of the sensor.
Is it faulty hardware? Does anyone know how to best adjust it?
Hi Andypanda and welcome to the community.
I have two different PIR modules and one fires every 6 seconds but on a different mainboard (cerberus) and works fine on the spider but the other one works fine with both. Very strange and i havent got to the bottom of it.
I presuime you have tried different sockets etc.
If you do a search of the forum you will find lots of references to similar problems. There has to be a simple reason but im stumped if i can find it.
@ HughB and than you - Ive tried with all sockets available for the module…but still the same behaviour… Im gonna look more around for answers in the forum… but it looks like my solution would be to buy another one?
@ andypanda - what i have done in a project is create my own driver.
all it is is an interrupt on pin 3. When if fires i immediately disable the interrupt pin, do the code it runs, wait a bit then enable the interrupt on the pin.
seems to do the trick…
@ andypanda - more than happy to, but i only have my phone at the moment as i left lappie at the office…
So unless one of the other rocket scientists posts some code i cant help for another 12 hours or so…
@ andypanda - have you taken out the thread sleep?
that is just to mimic some operation and to allow the pir to settle.
taking it out will cause the 6 sec issue to continue