Configured PIR sensor but won't trigger
Quite new to MM and this is me trying first module.
I connected the pins (which I think might be the problem) and added module in config.js too. Now my MM is booting and modules are being displayed but the senor is not turning off the monitor.
I strongly believe the issue might be with the pins I have connected, cause I have zero knowledge about these connections.
If not what else could be the problem?
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
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 ?