Read the statement by Michael Teeuw here.
MMM-PIR-Sensor problems
-
The only thing missing is the energy saving PIR-module…
Okay, now my config.js PIR-part looks like this:
{ module: 'MMM-PIR-Sensor', config: { //sensorPIN: 25, powerSaving: true, offDelay: 60, } },
After booting magic mirror, the monitor is showing the working magic mirror. After a few minutes (not the 60 seconds as setup in MMM-PIR-Sensors config.js-part) the screen is showing a blank black screen with backlight on is full power consumption. Seems, as if the HDMI signal does not get the OFF order… A problem with a screen saver, perhaps ? Turned it off as shown in the official tutorial (running Raspbian Stretch).
Running in front of the PIR does not turn the magic mirror screen on. Pressing a key on the wireless keyboard does turn it back on…
So, there are 2 problems: why does the HDMI switches to “show blank screen” instead of “switch off” ? What kind of settings do I have to do with the PIR-Jumper and potent meters ?
-
@Charley said in MMM-PIR-Sensor problems:
powerSavingDelay:40
You may want to change your config to only: powerSavingDelay:40
If you switch off thru HDMI then powerSaving:true is not needed imho.
and better use powerSavingDelay: 60 instaead of offDelay just copy mine config.js settings from above it should work -
Okay, I changed to your config.js-settings.
Not sure if I have connected the cables correctly RPIPIR.
According to github, default is pin#22 (BCM).
Since the beginning I connected the data cable to pin#22/GPIO 25.
But, github is telling BCM22 should be default, so I now connected it to pin#15/BCM22.
Tried to find correct pins using the scheme above. -
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.