Read the statement by Michael Teeuw here.
MMM-PIR-Sensor problems
-
Thanks for helping…
Without the PIR-Data-Pin connected to GPIO 22, the script does not show the message “motion detected”. It is counting from 180 to 0. Think this means the GPIO is LOW then.
I think all I need now is what to do next. Broken PIR ? Wrong PIR-settings (Potentio meters, Jumper) ?
-
You could try to use a pull-up resistor maybe the PIR output is 5V
Check this website. Otherwise your PIR is broken. If you are in the Netherlands i can post by snailmail another one to you that works for sure,
-
I have 8 HC-SR501 bought a while ago. Some of them are green, some blue.
Tested all of them now…The message is the same: OUT connected… Motion detected. OUT not connected, no motion detected… Think, this means OUT and HIGH are working.
But, the PIR sensor delivers motion detected permanently if connected.
So, according to your PullUp-Link I have to put a 10kohm resistor between Raspberry Pi GPIO 22 and PIR-OUT ?
I am wondering why none of those tutorials are telling this. Some of my PIRs should work with 3.3V-OUT ?
I am afraid there is a mistake I am making, but I don´t know which one and how to solve it. That´s the last part missing for my mirror, the important part.
-
What you could do is put a 10k Resistor between GPIO 22 and GND. if the PIR disconnects your PIN is pulled LOW.
PIRs may give different signals my PIR only gives a high (3v3)
-
Have you tried to set the timer potentiometer (Haltezeit in your picture) on the PIR-sensor to minimum? I have the very same PIR-sensors and they are working very well without any additional resistors.
-
Ok, think, it is working… not perfectly, but working.
Could you take a picture of your potent meters AND jumper ?
Have set them both to the left position. Would help a lot.A lot of people are walking the way the mirror is mounted to the wall. Finally, I would like the mirror to switch on if a person stays in front of it for 10 seconds. Don’t know exactly how to do this.
At the moment it switches on in 1 second.
-
@blebbens
That’s a picture I took before mounting it to the wall. Taking a new picture will be a bit difficult now. Hope it helps.
Btw, I don’t use the MMM-PIR-sensor module. Initially I did though and I didn’t change the jumper. The sensor is set to “high”, in case it’s not clear from the picture. -
I put the potentio meters to the left position - like in your picture.
The screen switches on in seconds… looking for a possibility to turn it on if someone stands in front of the mirror for 10 seconds.
Using MagicMirror-Display-Controller instead of MMM-PIR-SENSOR.
Hope, this could be done using right “time” potentio meter. Not sure.