<?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 ??]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I’ve recently started building a MagicMirror and so far i like it a lot.<br />
Yesterday i ordered a HC-SR501 PIR Sensor and tried to install it.</p>
<p dir="auto">This is were the problems started:</p>
<p dir="auto">I’ve tried some modules but couldn’t get it to work.<br />
I’ve connected my SR501 as followed:</p>
<ul>
<li>PIN4 - 5V</li>
<li>PIN11 - Motion (GPIO17)</li>
<li>PIN6 - GRND</li>
</ul>
<p dir="auto">Is there a 2021 tutorial that can direct me in the right direction?.</p>
<p dir="auto">Before anyone asks ;) . I’m trying for about 5 hours now and used the search box at the top :)</p>
]]></description><link>https://forum.magicmirror.builders/topic/15295/pir-sensor</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 17:52:20 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15295.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jul 2021 14:40:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PIR Sensor ?? on Sun, 08 Aug 2021 22:05:53 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for being late to the party but as of 8/8/2021 I can confirm that this is working on my RPI3…NOT the 4!</p>
<p dir="auto"><a href="https://github.com/cowboysdude/Pir-Sensor" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/cowboysdude/Pir-Sensor</a></p>
]]></description><link>https://forum.magicmirror.builders/post/93455</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93455</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Sun, 08 Aug 2021 22:05:53 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Sun, 25 Jul 2021 10:09:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: MDLefevere">@<bdi>MDLefevere</bdi></a><br />
Check out this post and see if it helps<br />
<a href="https://forum.magicmirror.builders/post/88444">https://forum.magicmirror.builders/post/88444</a></p>
]]></description><link>https://forum.magicmirror.builders/post/93069</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93069</guid><dc:creator><![CDATA[maptecnet]]></dc:creator><pubDate>Sun, 25 Jul 2021 10:09:35 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Sat, 24 Jul 2021 00:07:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/c1olli" aria-label="Profile: c1olli">@<bdi>c1olli</bdi></a> NICE!!!</p>
]]></description><link>https://forum.magicmirror.builders/post/93025</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93025</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Sat, 24 Jul 2021 00:07:45 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Fri, 23 Jul 2021 10:11:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a><br />
It takes 2 seconds for the startup of the monitor.<br />
There is also no start screen , because the Raspberry Pi is still running.</p>
]]></description><link>https://forum.magicmirror.builders/post/93019</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93019</guid><dc:creator><![CDATA[c1olli]]></dc:creator><pubDate>Fri, 23 Jul 2021 10:11:34 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 20:49:55 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 />
Defenitly not.<br />
Although it’s weird at the end it’s working.</p>
<p dir="auto">Going to test this a couple of days to see if it stays this way…</p>
]]></description><link>https://forum.magicmirror.builders/post/93014</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93014</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Thu, 22 Jul 2021 20:49:55 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 18:44:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> never a dull moment!<br />
so not all cables are the same…</p>
]]></description><link>https://forum.magicmirror.builders/post/93010</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93010</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 22 Jul 2021 18:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 18:04:34 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></p>
<p dir="auto">So. I came home after work frustrated that it didn’t work.<br />
After connecting another HDMI cable everything is working as expected 🙄.</p>
<p dir="auto">I had a MicroHDMI to HDMI convertor and a HDMI cable after that.</p>
<p dir="auto">I ordered a Micro to HDMI so i could get rid of the convertor.</p>
<p dir="auto">Strange enough it is working with the convertor cable.</p>
]]></description><link>https://forum.magicmirror.builders/post/93006</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93006</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Thu, 22 Jul 2021 18:04:34 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 13:41:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> yes… getting harder and harder to find monitors that do this…<br />
none of mine do.</p>
]]></description><link>https://forum.magicmirror.builders/post/92999</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92999</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 22 Jul 2021 13:41:45 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 13:40: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></p>
<p dir="auto">Ah i see.<br />
But on the other hand: It goes into stand-by so the front light turns orange, and the screen goes all black (no backlight).</p>
]]></description><link>https://forum.magicmirror.builders/post/92998</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92998</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Thu, 22 Jul 2021 13:40:46 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 13:23:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> that monitor is not energy star compliant.</p>
<p dir="auto">the monitor doesn’t actually turn off,  but enters some lower power mode. or they turn off backlight.</p>
]]></description><link>https://forum.magicmirror.builders/post/92996</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92996</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 22 Jul 2021 13:23:01 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 13:09:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a><br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">I’m running a 8GB PI4.<br />
I’ve installed NewPIR and configured it like this:</p>
<pre><code>		{
			module: 'MMM-NewPIR',
			position: 'top_left',
			configDeepMerge: true,
			config: {
				screen: {
					delay: 20000,
					turnOffDisplay: true,
					mode: 1,
						},
				pir: {
					gpio: 17
				}, 
			}
		},
</code></pre>
<p dir="auto">Strange enough it’s working now on another monitor. No sleepy “No Signal” text on screen but just a monitor turning in stand-by.<br />
It’s not a new monitor --&gt; Fujitsu L20T-4 connected with DVI</p>
<p dir="auto">I can’t get my hands on it…</p>
]]></description><link>https://forum.magicmirror.builders/post/92994</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92994</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Thu, 22 Jul 2021 13:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 13:04:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/c1olli" aria-label="Profile: c1olli">@<bdi>c1olli</bdi></a></p>
<p dir="auto">That might be nice.<br />
But how about the startup?. Do you get the ugly brand boot screen first?. How longt to fire up?</p>
]]></description><link>https://forum.magicmirror.builders/post/92993</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92993</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Thu, 22 Jul 2021 13:04:59 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 11:34:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> No real answer for this… I’ve tried several times.  I can turn it off but  not back on…</p>
<p dir="auto">Are you running a pi4 or pi3?</p>
<p dir="auto">This was my answer to the pi3 and it works… cannot figure out the pi4</p>
<p dir="auto"><a href="https://github.com/cowboysdude/Pir-Sensor" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/cowboysdude/Pir-Sensor</a></p>
]]></description><link>https://forum.magicmirror.builders/post/92990</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92990</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Thu, 22 Jul 2021 11:34:59 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Thu, 22 Jul 2021 11:33:51 GMT]]></title><description><![CDATA[<p dir="auto">I use a mini pir sensor like this:<br />
<a href="https://www.ebay.de/itm/133654306312" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.ebay.de/itm/133654306312</a><br />
That switches the monitor directy completely off without any programming.<br />
That solution works on my MagicMirror since one year without any problems.</p>
]]></description><link>https://forum.magicmirror.builders/post/92989</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92989</guid><dc:creator><![CDATA[c1olli]]></dc:creator><pubDate>Thu, 22 Jul 2021 11:33:51 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 21:56:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> they all use the same 4 commands</p>
<p dir="auto">tvservice<br />
vcgencmd<br />
dpms<br />
cec-client</p>
<p dir="auto">top three turn off hdmi, leaving the ugly message<br />
cec-client turns off the display, BUT, needs something 2018 or newer with CEC support<br />
for it to work…   my 55 in tv will turn off, but not on… (so much for standards!), and only from the pi4… nothing else.</p>
<p dir="auto">this is the screen library in NewPIR<br />
<a href="https://github.com/bugsounet/screen" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/bugsounet/screen</a></p>
<p dir="auto">use the same 4 commands<br />
<img src="/assets/uploads/files/1626904367647-screenshot-at-2021-07-21-16-52-19.png" alt="Screenshot at 2021-07-21 16-52-19.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">and the matching code</p>
<pre><code>    switch (this.config.mode) {
      case 1:
        if (set) exec("/usr/bin/vcgencmd display_power 1")
        else exec("/usr/bin/vcgencmd display_power 0")
        break
      case 2:
        if (set) exec("DISPLAY=:0 xset dpms force on")
        else exec("DISPLAY=:0 xset dpms force off")
        break
      case 3:
        if (set) exec("tvservice -p &amp;&amp; sudo chvt 6 &amp;&amp; sudo chvt 7")
        else exec("tvservice -o")
        break
      case 4:
        if (set) exec("echo 'on 0' | cec-client -s")
        else exec("echo 'standby 0' | cec-client -s")
        break
      case 5:
        if (set) exec("xset dpms force on")
        else exec("xset dpms force off")
        break
    }
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/92983</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92983</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 21 Jul 2021 21:56:51 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 21:21:52 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></p>
<p dir="auto">So weird. I can’t imagine that a crontab can do it and the same line in a .sh not.<br />
That’s bothering me. To be continued.</p>
<p dir="auto">Saw another module im gonna try tomorrow: MMM-NewPIR</p>
]]></description><link>https://forum.magicmirror.builders/post/92982</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92982</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Wed, 21 Jul 2021 21:21:52 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 21:10:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> yes. but can’t turn it off programatically… what else can I do?</p>
]]></description><link>https://forum.magicmirror.builders/post/92981</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92981</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 21 Jul 2021 21:10:11 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 21:04:51 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></p>
<p dir="auto">Ahh so. But doesn’t the backlight stay on all nigjt?. Not very energy efficiënt 😋</p>
]]></description><link>https://forum.magicmirror.builders/post/92980</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92980</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Wed, 21 Jul 2021 21:04:51 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 20:42:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> I use module hiding. never turn the display ‘off’</p>
]]></description><link>https://forum.magicmirror.builders/post/92979</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92979</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 21 Jul 2021 20:42:27 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 20:26:06 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></p>
<p dir="auto">Hmm alright.<br />
So do you have a “workaround”?. How do you handle this?. I just want the screen to be not on all day long when i’m just home for a couple of hours</p>
]]></description><link>https://forum.magicmirror.builders/post/92978</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92978</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Wed, 21 Jul 2021 20:26:06 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 19:41:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> this is where I have trouble… all my displays behave as u describe…</p>
<p dir="auto">turn off the hdml and then they holler about no input… , and 15 mins later power off (energy start complaince) …</p>
]]></description><link>https://forum.magicmirror.builders/post/92977</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92977</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 21 Jul 2021 19:41:44 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 19:39:05 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> said in <a href="/post/92975">PIR Sensor ??</a>:</p>
<blockquote>
<p dir="auto">sudo vcgencmd display_power 0</p>
</blockquote>
<p dir="auto">No i don’t<br />
But i tried it already and didn’t make a difference.</p>
<p dir="auto">Also if i sudo su and then use vcgencmd display_power 0 it’s not sleeping.</p>
]]></description><link>https://forum.magicmirror.builders/post/92976</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92976</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Wed, 21 Jul 2021 19:39:05 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 19:29:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mdlefevere" aria-label="Profile: mdlefevere">@<bdi>mdlefevere</bdi></a> well, when u ran in cron, you ran as root</p>
<p dir="auto">in your script do you do</p>
<pre><code>sudo vcgencmd display_power 0
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/92975</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92975</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 21 Jul 2021 19:29:55 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor ?? on Wed, 21 Jul 2021 19:25:27 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></p>
<p dir="auto">Alright i got i working with <a href="https://magicmirror.tilburgs.com/pir-configuratie/" target="_blank" rel="noopener noreferrer nofollow ugc">this guide</a>.</p>
<p dir="auto">The only thing i’m now facing is, and i can’t understand this, that i get the message “Cable not connected” on my display.</p>
<p dir="auto">When i was using it in crontab with “vcgencmd display_power 0” (timebased) it put the monitor in sleep mode and the led’s of the monitor turned off.<br />
Now when using it in a .sh command the monitor stays on with this message.</p>
<p dir="auto">Do you have any idea?</p>
]]></description><link>https://forum.magicmirror.builders/post/92974</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92974</guid><dc:creator><![CDATA[MDLefevere]]></dc:creator><pubDate>Wed, 21 Jul 2021 19:25:27 GMT</pubDate></item></channel></rss>