<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PIR Sensor won't wake up]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">i want to install for my Magicmirror project a PIR Sensor (HC-SR501) for switching the monitor automatically on/off.</p>
<p dir="auto">i have already tested MMM-PIR-Sensor and MMM-PIR. But both have the same issue.</p>
<p dir="auto">After the adjusted delay the monitor switches off. But there is no chance to wake it up again.</p>
<p dir="auto">It seems to me that i have installed something wrong in the pins.<br />
In both modules i need a value for sensorPin:<br />
That mean the "out"wire of the PIR? thats right. That mean according my Occupancy i have to put “16” into it?<br />
<a href="/assets/uploads/files/1613767566593-20210219_213752.jpg">20210219_213752.jpg</a></p>
<p dir="auto">please help!</p>
]]></description><link>https://forum.magicmirror.builders/topic/14662/pir-sensor-won-t-wake-up</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 05:54:35 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14662.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Feb 2021 20:48:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 28 Feb 2021 10:11:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: sceetch">@<bdi>sceetch</bdi></a> I came to a conclusion to not use any modules which do not show any info on the screen. So, in this case, I use a python script at boot which monitors a PIR and executes an HDMI on/off cmd ;)</p>
]]></description><link>https://forum.magicmirror.builders/post/88984</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88984</guid><dc:creator><![CDATA[ebolisa]]></dc:creator><pubDate>Sun, 28 Feb 2021 10:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Tue, 23 Feb 2021 08:58:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jste84" aria-label="Profile: jste84">@<bdi>jste84</bdi></a><br />
i guess i have the same issue.<br />
you can try easily with this module</p>
<p dir="auto"><a href="https://github.com/bugsounet/MMM-NewPIR" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/bugsounet/MMM-NewPIR</a></p>
<p dir="auto">you can change inside the module the mode</p>
<p dir="auto">mode: 1 - use vgencmd<br />
mode: 3 - use tvservice</p>
<p dir="auto">in my case it works. But i think i have an adjustment problem.</p>
<p dir="auto">The screen turns off and also the sensor can wake up the screen again.<br />
But if there is no movement, the screen turn on randomly. Currently i have no solution. I guess there is some wrong settings on sensors Potentiometer.</p>
]]></description><link>https://forum.magicmirror.builders/post/88818</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88818</guid><dc:creator><![CDATA[Sceetch]]></dc:creator><pubDate>Tue, 23 Feb 2021 08:58:39 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Mon, 22 Feb 2021 19:29:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jste84" aria-label="Profile: jste84">@<bdi>jste84</bdi></a> maybe. dont know. you could try</p>
]]></description><link>https://forum.magicmirror.builders/post/88802</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88802</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 22 Feb 2021 19:29:02 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Mon, 22 Feb 2021 19:08:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> is it this line</p>
<pre><code>sudo chmod u+s /opt/VC/bin/tvservice &amp;&amp; sudo chmod u+s bin/chvt
</code></pre>
<p dir="auto">That I need to change?  Would I just change TV service to vcgencmd</p>
]]></description><link>https://forum.magicmirror.builders/post/88800</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88800</guid><dc:creator><![CDATA[jste84]]></dc:creator><pubDate>Mon, 22 Feb 2021 19:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Mon, 22 Feb 2021 19:01:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jste84" aria-label="Profile: jste84">@<bdi>jste84</bdi></a> yes  change the command the module uses</p>
]]></description><link>https://forum.magicmirror.builders/post/88798</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88798</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 22 Feb 2021 19:01:36 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Mon, 22 Feb 2021 17:29:58 GMT]]></title><description><![CDATA[<p dir="auto">Having tested the commands it looks like<br />
sudo tvservice -p doesn’t work with my monitor. (-o works though which is strange?)</p>
<p dir="auto">Vcgencmd works perfectly though…</p>
<p dir="auto">Could this be a reason why it’s not working?</p>
]]></description><link>https://forum.magicmirror.builders/post/88790</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88790</guid><dc:creator><![CDATA[jste84]]></dc:creator><pubDate>Mon, 22 Feb 2021 17:29:58 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Mon, 22 Feb 2021 16:49:19 GMT]]></title><description><![CDATA[<p dir="auto">I’m having a similar issue using Mmm-PIR-Sensor</p>
<p dir="auto">Using a pi 3b+ and it turns the screen off but not back on again…</p>
]]></description><link>https://forum.magicmirror.builders/post/88783</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88783</guid><dc:creator><![CDATA[jste84]]></dc:creator><pubDate>Mon, 22 Feb 2021 16:49:19 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Mon, 22 Feb 2021 09:51:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: sceetch">@<bdi>sceetch</bdi></a></p>
<p dir="auto">I just added a PIR sensor, and I have put jumper on “L” and the two potmeteres on low (clockwise) . This works fine.</p>
<p dir="auto">Here you have som more information on the PIR sensor.</p>
<p dir="auto"><a href="https://lastminuteengineers.com/pir-sensor-arduino-tutorial/" target="_blank" rel="noopener noreferrer nofollow ugc">https://lastminuteengineers.com/pir-sensor-arduino-tutorial/</a></p>
<p dir="auto">I use this module:<br />
<a href="https://github.com/bugsounet/MMM-NewPIR" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/bugsounet/MMM-NewPIR</a><br />
In the config, I have chaged delay from delay: 2 * 60 * 1000 // 2min to delay: 10 * 60 * 1000 //10min</p>
]]></description><link>https://forum.magicmirror.builders/post/88755</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88755</guid><dc:creator><![CDATA[BravoOscar]]></dc:creator><pubDate>Mon, 22 Feb 2021 09:51:45 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 21:22:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: sceetch">@<bdi>sceetch</bdi></a> google to answer those questions</p>
]]></description><link>https://forum.magicmirror.builders/post/88745</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88745</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 21 Feb 2021 21:22:08 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 20:38:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Hi sdetweil, this was a good hint. I think the problem are the adjustments of the sensor itselfs. the time values in my previous post changed now. But the problem still exists.</p>
<p dir="auto">The reason why the screen wake up without  movement is, the overlapping of signals. there is one delay in the script, but also one of the Sensor. If the script turns off the screen and the sensor gives also a signal regarding the time delay a little later, the screen will turn on again. so my opinion.</p>
<p dir="auto">But what is now the best adjustment of it?<br />
is it possible to inactivate the time delay of the sensor itself?</p>
<p dir="auto">In what position is the jumper to be set?<br />
sensivity of it should be clear. thats a customized value for the different situations.</p>
]]></description><link>https://forum.magicmirror.builders/post/88744</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88744</guid><dc:creator><![CDATA[Sceetch]]></dc:creator><pubDate>Sun, 21 Feb 2021 20:38:46 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 17:18:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: sceetch">@<bdi>sceetch</bdi></a> the sensor must be detecting heat difference. its very sensitive. the dial .ust be set to about 2 minutes, since last movement…</p>
<p dir="auto">there is a jumper on some of the boards that changes how long it holds the signal active since movement.</p>
]]></description><link>https://forum.magicmirror.builders/post/88736</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88736</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 21 Feb 2021 17:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 16:35:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>  thx for your comment.</p>
<p dir="auto">I guess the sensor works.<br />
If i start this script, the sensor switch after 2 minutes off.<br />
If the sensor receives movements, the screen turn on, so i think it works. But i will test your script in the evening.</p>
<p dir="auto">If there is no movement registered from the sensor the screen switch on after 1 minute.</p>
<p dir="auto">I don’t understand why the countdown is 2 min? In the script the delay time is setted by 10 sec.</p>
<p dir="auto">And why the screen turns on after another one minute. If there is no signal from the sensor??</p>
]]></description><link>https://forum.magicmirror.builders/post/88734</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88734</guid><dc:creator><![CDATA[Sceetch]]></dc:creator><pubDate>Sun, 21 Feb 2021 16:35:38 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 14:26:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: sceetch">@<bdi>sceetch</bdi></a> also  i think u need to make sure the sensor actually works</p>
<p dir="auto"><a href="https://projects.raspberrypi.org/en/projects/parent-detector/3" target="_blank" rel="noopener noreferrer nofollow ugc">https://projects.raspberrypi.org/en/projects/parent-detector/3</a></p>
]]></description><link>https://forum.magicmirror.builders/post/88731</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88731</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 21 Feb 2021 14:26:05 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 12:45:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: Sceetch">@<bdi>Sceetch</bdi></a></p>
<p dir="auto">Hi</p>
<p dir="auto">I installed the MMM-PIR-Sensor last week and I had a similar problem. I just couldn’t get the sensor to work with the module. I spent a lot of time and tried a few different things and nothing worked… in the end I updated the wiringPi GPIO access library (I’m using a Pi 4 Model B).</p>
<p dir="auto">See here:</p>
<p dir="auto"><a href="http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/" target="_blank" rel="noopener noreferrer nofollow ugc">http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/</a></p>
<p dir="auto">And now it’s working OK. I’m not saying this will fix your problem. It may be that an install I did overwrote the wiringPi files on my Pi or rolled them back in some way,  but it worked for me.</p>
<p dir="auto">Regards</p>
<p dir="auto">dbg62</p>
]]></description><link>https://forum.magicmirror.builders/post/88730</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88730</guid><dc:creator><![CDATA[dbg]]></dc:creator><pubDate>Sun, 21 Feb 2021 12:45:35 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 12:25:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: sceetch">@<bdi>sceetch</bdi></a> off is because the module does this  no motion was detected</p>
]]></description><link>https://forum.magicmirror.builders/post/88728</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88728</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 21 Feb 2021 12:25:09 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 12:16:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dbg" aria-label="Profile: dbg">@<bdi>dbg</bdi></a> i’m using Raspberry Pi 3 Modell B Plus (B +)</p>
<p dir="auto">I have no idea whats wrong.<br />
I can change the delay time value randomly. There is no effect. After exact 2 minutes the screen turn off.</p>
<p dir="auto">Could it be, there is something activated in the tvservice?</p>
]]></description><link>https://forum.magicmirror.builders/post/88725</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88725</guid><dc:creator><![CDATA[Sceetch]]></dc:creator><pubDate>Sun, 21 Feb 2021 12:16:18 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 10:10:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: sceetch">@<bdi>sceetch</bdi></a> Which Raspberry Pi board  are you using?</p>
]]></description><link>https://forum.magicmirror.builders/post/88719</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88719</guid><dc:creator><![CDATA[dbg]]></dc:creator><pubDate>Sun, 21 Feb 2021 10:10:23 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sun, 21 Feb 2021 08:39:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sceetch" aria-label="Profile: sceetch">@<bdi>sceetch</bdi></a> I’ve, more or less, the same setup but the sh files stored in the MagicMirror folder.</p>
]]></description><link>https://forum.magicmirror.builders/post/88715</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88715</guid><dc:creator><![CDATA[ebolisa]]></dc:creator><pubDate>Sun, 21 Feb 2021 08:39:17 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Sat, 20 Feb 2021 13:54:40 GMT]]></title><description><![CDATA[<p dir="auto">hi.<br />
There are some news about my Sensor problem.</p>
<p dir="auto">i tried to install these steps according this link</p>
<p dir="auto"><a href="https://teilzeitrebell.de/blog/magicmirror-part-2-bewegungsmelder" target="_blank" rel="noopener noreferrer nofollow ugc">https://teilzeitrebell.de/blog/magicmirror-part-2-bewegungsmelder</a></p>
<p dir="auto">i made two sh-scripts for screen on &amp; off</p>
<p dir="auto">monitor_off.sh<br />
monitor_on.sh</p>
<p dir="auto">then i created this phyton</p>
<p dir="auto">pir_loop.py</p>
<pre><code>!/usr/bin/env python

import sys
import time
import RPi.GPIO as io
import subprocess

io.setmode(io.BCM)
SHUTOFF_DELAY = 10  # seconds
PIR_PIN = 17        # Pin 11 on the board

def main():
    io.setup(PIR_PIN, io.IN)
    turned_off = False
    last_motion_time = time.time()

    while True:
        if io.input(PIR_PIN):
            last_motion_time = time.time()
            sys.stdout.flush()
            if turned_off:
                turned_off = False
                turn_on()
        else:
            if not turned_off and time.time() &gt; (last_motion_time + SHUTOFF_DELAY):
                turned_off = True
                turn_off()
        time.sleep(.1)

def turn_on():
    subprocess.call("sh /home/pi/Pir-Sensor/monitor_on.sh", shell=True)

def turn_off():
    subprocess.call("sh /home/pi/Pir-Sensor/monitor_off.sh", shell=True)

if __name__ == '__main__':
    try:
        main()
    except KeyboardInterrupt:
        io.cleanup()
</code></pre>
<p dir="auto">i can start this with</p>
<pre><code>python pir_loop.py
</code></pre>
<p dir="auto">and it seems that it works.</p>
<p dir="auto">But  in the code i defined a delay of 10 seconds. But after it, it happend nothing.<br />
the weird thing is, that the screen turn off after exact 2 minutes. If i move in front of the sensor the screen turn on again.<br />
But if i do nothing or cover the sensor with something the screen turn on after exact one minute.</p>
<p dir="auto">does anybody has an idea, whats wrong there?</p>
]]></description><link>https://forum.magicmirror.builders/post/88686</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88686</guid><dc:creator><![CDATA[Sceetch]]></dc:creator><pubDate>Sat, 20 Feb 2021 13:54:40 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Fri, 19 Feb 2021 22:17:25 GMT]]></title><description><![CDATA[<p dir="auto">Thx. now the table should be clear.<br />
But the PIR doesn’t work.<br />
After delay the screen switch off.<br />
But i can breakdance in front of the sensor. It happend nothing…</p>
<p dir="auto">but if i remove the cable from sensorpin 23 the sceen wakes up.</p>
]]></description><link>https://forum.magicmirror.builders/post/88671</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88671</guid><dc:creator><![CDATA[Sceetch]]></dc:creator><pubDate>Fri, 19 Feb 2021 22:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor won't wake up on Fri, 19 Feb 2021 20:56:04 GMT]]></title><description><![CDATA[<p dir="auto">should be 23 (not 16)</p>
<p dir="auto"><img src="https://indibit.de/wp-content/uploads/2015/08/Raspberry-Pi-2-Model-B-GPIO-Belegung-616x800.png" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/88666</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/88666</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Fri, 19 Feb 2021 20:56:04 GMT</pubDate></item></channel></rss>