<?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[MMM-PIR-Sensor problems]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">At the moment I am a bit proud having built a working smart mirror using IKEA RIBBA in 40x50cm.<br />
But, for saving energy, I connected a PIR HC-SR504 to a Raspberry Pi 3 like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1523790593343-f3g4pi9iwmqyc7l.large.jpg" alt="0_1523790592096_F3G4PI9IWMQYC7L.LARGE.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><a href="https://forum.magicmirror.builders/topic/5521/mmm-pir-sensor-guide-with-edits-and-updates">Instructions:</a> I followed these instructions by StacheEnthusiast by:</p>
<ul>
<li>cd ~/MagicMirror/modules</li>
<li>git clone <a href="https://github.com/paviro/MMM-PIR-Sensor.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/paviro/MMM-PIR-Sensor.git</a></li>
<li>cd ~/MagicMirror/modules/MMM-PIR-Sensor</li>
<li>npm install wiring-pi</li>
<li>sudo usermod -a -G gpio pi</li>
<li>sudo chmod u+s /opt/vc/bin/tvservice &amp;&amp; sudo chmod u+s /bin/chvt</li>
<li>mv node_helper.js node_helper_backup.js</li>
<li>sudo nano node_helper.js (copied and pasted his code) and saved this</li>
<li>inserted this into config.js:</li>
</ul>
<pre><code>	{
		module: 'MMM-PIR-Sensor',
		config: {
			sensorPIN: 25,
			powerSaving: true,
			offDelay: 30000,
		}
	}
</code></pre>
<p dir="auto">But, it is not working… so I executed npm install in directory MMM-PIR-Sensor afterwards. Still not working… After booting, the screen is showing MagicMirror with all modules. After a couple of minutes, the monitor is showing a blank screen with backlight switched on. The module does not cut off HDMI signal and the HC-SR504 does not switch back to MagicMirror. I can not see if the sensor is recognizing me.</p>
<p dir="auto">“GPIO -v” shows the message "Unable to determine hardware version. I see: Hardware : BCM2835 - expecting BCM2708 or BCM2709. Please report this to <a href="mailto:project@drogon.net" target="_blank" rel="noopener noreferrer nofollow ugc">project@drogon.net</a>.”. Version 2.25 instead of a newer version is install, even after “npm install wiring-pi”.</p>
<p dir="auto">I am not sure having configured the module correctly, because as shown above I have connected the sensor to pin22/GPIO25. Is my module setting correct ?</p>
<p dir="auto">And, the HC-SR504 is offering 2 potentio meters (detection delay/sensing distance) and a jumper (impulse signal permanently or just one). Don´t know what do here:<br />
The mirror is fixed on a wall, where people are crossing several times a day. The mirror monitor should switch on if a person is standing in front of the mirror for about 5 seconds as long as the person is standing there.</p>
<p dir="auto">Would like to save some energy - some help would be very great… Thanks in advance.</p>
]]></description><link>https://forum.magicmirror.builders/topic/6987/mmm-pir-sensor-problems</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 22:54:02 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6987.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Apr 2018 11:26:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sat, 21 Apr 2018 08:22:39 GMT]]></title><description><![CDATA[<p dir="auto">I put the potentio meters to the left position - like in your picture.</p>
<p dir="auto">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.</p>
<p dir="auto">Using MagicMirror-Display-Controller instead of MMM-PIR-SENSOR.</p>
<p dir="auto">Hope, this could be done using right “time” potentio meter. Not sure.</p>
]]></description><link>https://forum.magicmirror.builders/post/38696</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38696</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Sat, 21 Apr 2018 08:22:39 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Thu, 19 Apr 2018 08:11:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blebbens" aria-label="Profile: blebbens">@<bdi>blebbens</bdi></a> <img src="https://i.imgur.com/sFOJv5M.jpg" alt="alt text" class=" img-fluid img-markdown" /><br />
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.<br />
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.</p>
]]></description><link>https://forum.magicmirror.builders/post/38616</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38616</guid><dc:creator><![CDATA[MadScientist]]></dc:creator><pubDate>Thu, 19 Apr 2018 08:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Wed, 18 Apr 2018 17:36:47 GMT]]></title><description><![CDATA[<p dir="auto">Ok, think, it is working… not perfectly, but working.</p>
<p dir="auto">Could you take a picture of your potent meters AND jumper ?<br />
Have set them both to the left position. Would help a lot.</p>
<p dir="auto">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.</p>
<p dir="auto">At the moment it switches on in 1 second.</p>
]]></description><link>https://forum.magicmirror.builders/post/38594</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38594</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Wed, 18 Apr 2018 17:36:47 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Tue, 17 Apr 2018 09:46:53 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
]]></description><link>https://forum.magicmirror.builders/post/38548</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38548</guid><dc:creator><![CDATA[MadScientist]]></dc:creator><pubDate>Tue, 17 Apr 2018 09:46:53 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Tue, 17 Apr 2018 09:15:49 GMT]]></title><description><![CDATA[<p dir="auto">What you could do is put a 10k Resistor between GPIO 22 and GND. if the PIR disconnects your PIN is pulled LOW.</p>
<p dir="auto">PIRs may give different signals my PIR only gives a high (3v3)</p>
]]></description><link>https://forum.magicmirror.builders/post/38547</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38547</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Tue, 17 Apr 2018 09:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 18:39:07 GMT]]></title><description><![CDATA[<p dir="auto">I have 8 HC-SR501 bought a while ago. Some of them are green, some blue.<br />
Tested all of them now…</p>
<p dir="auto"><img src="/assets/uploads/files/1523903552191-pir4.jpg" alt="0_1523903551418_PIR4.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">The message is the same: OUT connected… Motion detected. OUT not connected, no motion detected…  Think, this means OUT and HIGH are working.</p>
<p dir="auto">But, the PIR sensor delivers motion detected permanently if connected.</p>
<p dir="auto">So, according to your PullUp-Link I have to put a 10kohm resistor between Raspberry Pi GPIO 22 and PIR-OUT ?</p>
<p dir="auto">I am wondering why none of those tutorials are telling this. Some of my PIRs should work with 3.3V-OUT ?</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.magicmirror.builders/post/38519</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38519</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Mon, 16 Apr 2018 18:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 17:04:37 GMT]]></title><description><![CDATA[<p dir="auto">You could try to use a pull-up resistor maybe the PIR output is 5V</p>
<p dir="auto"><a href="https://grantwinney.com/using-pullup-and-pulldown-resistors-on-the-raspberry-pi/" target="_blank" rel="noopener noreferrer nofollow ugc">pullup resistor</a></p>
<p dir="auto">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,</p>
]]></description><link>https://forum.magicmirror.builders/post/38515</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38515</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Mon, 16 Apr 2018 17:04:37 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 16:58:41 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for helping…</p>
<p dir="auto">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.</p>
<p dir="auto">I think all I need now is what to do next. Broken PIR ? Wrong PIR-settings (Potentio meters, Jumper) ?</p>
]]></description><link>https://forum.magicmirror.builders/post/38513</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38513</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Mon, 16 Apr 2018 16:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 16:54:40 GMT]]></title><description><![CDATA[<p dir="auto">As I wrote in my previous message check if the GPIO is low when you disconnect the PIR<br />
I always check all parts with an Arduino Nano or Uno to see if it works and if it needs settings it is easily done before installing.<br />
This evening I will not be online any much longer.</p>
]]></description><link>https://forum.magicmirror.builders/post/38512</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38512</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Mon, 16 Apr 2018 16:54:40 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 16:49:10 GMT]]></title><description><![CDATA[<p dir="auto">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”.</p>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p dir="auto">I try without data connection PIR-&gt;RPi</p>
]]></description><link>https://forum.magicmirror.builders/post/38511</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38511</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Mon, 16 Apr 2018 16:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 16:40:21 GMT]]></title><description><![CDATA[<p dir="auto">Maybe your PIR is always HIGH<br />
thats is why you should check with a resistor if it works.<br />
Or disconnect the OUT pin to see in the screen stays off.</p>
]]></description><link>https://forum.magicmirror.builders/post/38510</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38510</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Mon, 16 Apr 2018 16:40:21 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 16:38:23 GMT]]></title><description><![CDATA[<p dir="auto">I am sure I am using GPIO22.</p>
<p dir="auto">I am wondering about the display, which is not switching off. It stays on all the time.</p>
<p dir="auto">Could it be a problem with the fact that the user “pi” is logged in ?</p>
<p dir="auto">Why does the display not switch off ?</p>
]]></description><link>https://forum.magicmirror.builders/post/38509</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38509</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Mon, 16 Apr 2018 16:38:23 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 15:25:05 GMT]]></title><description><![CDATA[<p dir="auto">You could try if you are using the right GPIO by pulling the pin Up.</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.magicmirror.builders/post/38501</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38501</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Mon, 16 Apr 2018 15:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Mon, 16 Apr 2018 10:33:13 GMT]]></title><description><![CDATA[<p dir="auto">Now, screensaver is disabled… PIR not working. Display is switched on all the time…</p>
<p dir="auto">Perhaps, the problem could be the installed GPIO 2.25 instead of a newer version?<br />
After running npm install wiring-pi version 2.25 is still running.</p>
]]></description><link>https://forum.magicmirror.builders/post/38477</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38477</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Mon, 16 Apr 2018 10:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 17:15:45 GMT]]></title><description><![CDATA[<p dir="auto">Maybe you have screensaver not disabled.</p>
]]></description><link>https://forum.magicmirror.builders/post/38438</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38438</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Sun, 15 Apr 2018 17:15:45 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 17:14:54 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.magicmirror.builders/post/38437</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38437</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Sun, 15 Apr 2018 17:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 17:10:08 GMT]]></title><description><![CDATA[<p dir="auto">My PIR has no jumper.   <a href="https://www.banggood.com/5Pcs-RobotDyn-5V-PIR-Motion-Sensor-Adjustable-Time-Delay-Sensitive-Module-For-Arduino-p-1255789.html?p=VQ141018240205201801" target="_blank" rel="noopener noreferrer nofollow ugc">From banggood</a><br />
The two potentiometers are both in the middle position.<br />
There are a few more topics on the screen not reacting properly a few LCD screens do not support switching thru HDMI.</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.magicmirror.builders/post/38436</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38436</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Sun, 15 Apr 2018 17:10:08 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 16:58:38 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it is connected to the 8th bottom from the left…</p>
<p dir="auto">Building the mirror, setting up the pi and magic mirror with modules - no problems… until trying to use the PIR…</p>
<p dir="auto">HDMI signal is sending still in blank screen… magic mirror does not turn back on… it still does not care about the PIR.</p>
<p dir="auto">at what position are your potentio meters and the jumper ?</p>
]]></description><link>https://forum.magicmirror.builders/post/38435</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38435</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Sun, 15 Apr 2018 16:58:38 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 16:54:36 GMT]]></title><description><![CDATA[<p dir="auto">I have just checked my Mirror I am at pin 22 <img src="https://pinout.xyz/resources/raspberry-pi-pinout.png" alt="the 8th pin on the bottom of this print" class=" img-fluid img-markdown" /><br />
The 8th pin on the bottom</p>
]]></description><link>https://forum.magicmirror.builders/post/38434</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38434</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Sun, 15 Apr 2018 16:54:36 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 16:50:29 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1523810786896-bildschirmfoto-2018-04-15-um-18.45.37.png" alt="0_1523810785172_Bildschirmfoto 2018-04-15 um 18.45.37.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Okay, I changed to your config.js-settings.</p>
<p dir="auto">Not sure if I have connected the cables correctly RPIPIR.</p>
<p dir="auto">According to github, default is pin#22 (BCM).<br />
Since the beginning I connected the data cable to pin#22/GPIO 25.<br />
But, github is telling BCM22 should be default, so I now connected it to pin#15/BCM22.<br />
Tried to find correct pins using the scheme above.</p>
]]></description><link>https://forum.magicmirror.builders/post/38433</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38433</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Sun, 15 Apr 2018 16:50:29 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 16:23:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/charley" aria-label="Profile: Charley">@<bdi>Charley</bdi></a> said in <a href="/post/38413">MMM-PIR-Sensor problems</a>:</p>
<blockquote>
<p dir="auto">powerSavingDelay:40</p>
</blockquote>
<p dir="auto">You may want to change your config to only:   powerSavingDelay:40</p>
<p dir="auto">If you switch off thru HDMI then powerSaving:true is not needed imho.<br />
and better use <strong>powerSavingDelay: 60</strong> instaead of offDelay just copy mine config.js settings from above it should work</p>
]]></description><link>https://forum.magicmirror.builders/post/38430</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38430</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Sun, 15 Apr 2018 16:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 16:17:58 GMT]]></title><description><![CDATA[<p dir="auto">The only thing missing is the energy saving PIR-module…</p>
<p dir="auto">Okay, now my config.js PIR-part looks like this:</p>
<pre><code>{
			module: 'MMM-PIR-Sensor',
			config: {
				//sensorPIN: 25,
				powerSaving: true,
				offDelay: 60,
			}
		},
</code></pre>
<p dir="auto">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).</p>
<p dir="auto">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…</p>
<p dir="auto">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 ?</p>
]]></description><link>https://forum.magicmirror.builders/post/38429</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38429</guid><dc:creator><![CDATA[blebbens]]></dc:creator><pubDate>Sun, 15 Apr 2018 16:17:58 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor problems on Sun, 15 Apr 2018 12:58:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blebbens" aria-label="Profile: blebbens">@<bdi>blebbens</bdi></a> I have checked on my js file</p>
<p dir="auto">It says for the offDelay seconds  (30000 = almost 8:20 hours or so. Long time to look at yourself.)</p>
<pre><code>{
    		 module: 'MMM-PIR-Sensor',
		   		config: {
					powerSavingDelay:40
				}
  		},
</code></pre>
<p dir="auto">I am also connected to PIN 25 so no need to add to config.</p>
<p dir="auto">This my is config.js I hope it helps. Mine works perfect.</p>
<p dir="auto">If you are unsure about the pins check this at the bottom of the page.<br />
<a href="https://pinout.xyz/" target="_blank" rel="noopener noreferrer nofollow ugc">https://pinout.xyz/</a><br />
<img src="https://pinout.xyz/resources/raspberry-pi-pinout.png" alt="pinout" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/38413</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38413</guid><dc:creator><![CDATA[Charley]]></dc:creator><pubDate>Sun, 15 Apr 2018 12:58:31 GMT</pubDate></item></channel></rss>