Read the statement by Michael Teeuw here.
Configured PIR sensor but won't trigger
-
I think this post may be helpful. https://forum.magicmirror.builders/topic/6987/mmm-pir-sensor-problems/10
It appears that you have wired correctly. Although I would use the Red wire on the VCC for power and the black wire to denote ground and the brown wire as the output wire. Thats typically the way wiring is denoted.
I believe that pin 22 is used for the output so double check that. There is also a delay setting in the config.js that the previous thread speaks of that may impact your setup.
Give it a read. -
That was a helpful thread.
I noticed mine did work couple of times, it is working sporadically not sure what is causing that?
Also, many posts are suggesting to use breadboard why is that? I have never used one so not sure its use. Do you know how can I use same PIR sensor to turn on led lights and which type of led does rpi and pir suport
-
@Newbie007 said in Configured PIR sensor but won't trigger:
it is working sporadically not sure what is causing that?
remember, there is a delay on rearming for next movement
as for the lights… PIR sensor ITSELF doesn’t know anything about lights…
it just senses heat…some code would have to turn the event (heat=yes) to action (turn on relay for lights, or set pin to hi/low) depending on what electronics need
-
What module are you using ?
-