Read the statement by Michael Teeuw here.
MMM-PIR-Sensor problems
-
I have just checked my Mirror I am at pin 22
The 8th pin on the bottom -
Yes, it is connected to the 8th bottom from the left…
Building the mirror, setting up the pi and magic mirror with modules - no problems… until trying to use the PIR…
HDMI signal is sending still in blank screen… magic mirror does not turn back on… it still does not care about the PIR.
at what position are your potentio meters and the jumper ?
-
My PIR has no jumper. From banggood
The two potentiometers are both in the middle position.
There are a few more topics on the screen not reacting properly a few LCD screens do not support switching thru HDMI.I tested the PIR on an Arduino Nano to see when it was detecting and at what range, but you can also do that with a Raspberry.
-
Normally the monitor is switching to standby if there is no signal from HDMI. I think the problem is the Raspberry. Found nothing to fix this.
I am also wondering why magic mirror switches to no signal/blank screen after a couple of minutes. Is there a possibility to change this to a fix number of seconds? Seems as if the MMM-PIR-setting for switching on/off in seconds has no effect.
-
Maybe you have screensaver not disabled.
-
Now, screensaver is disabled… PIR not working. Display is switched on all the time…
Perhaps, the problem could be the installed GPIO 2.25 instead of a newer version?
After running npm install wiring-pi version 2.25 is still running. -
You could try if you are using the right GPIO by pulling the pin Up.
Take a 10k Resistor one side on 5V and the other side tap the GPIO pin that is what the PIR would do. Then you can check if you use the proper pin.
-
I am sure I am using GPIO22.
I am wondering about the display, which is not switching off. It stays on all the time.
Could it be a problem with the fact that the user “pi” is logged in ?
Why does the display not switch off ?
-
Maybe your PIR is always HIGH
thats is why you should check with a resistor if it works.
Or disconnect the OUT pin to see in the screen stays off. -
Maybe you are right. I tried using MagicMirror-Display-Controller and started the pir.py-python script… the output: “Motion detected… setting timer to 180 seconds”.
Okay, I am a bit afraid, because it is a bit difficult to take a look at the Raspberry Pi - I have to change the place after all is working and final.
Let´s say, the PIN is telling HIGH (=motion detected) the whole time. What do I have to do then ? I am new to linux/RPi and learning day to day.
I try without data connection PIR->RPi