<?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[LED Backlight for mirror - PIR to control them]]></title><description><![CDATA[<p dir="auto">Hey,</p>
<p dir="auto">I am planning on buying some led strips to have as backlight on my mirror.<br />
I do not want them to be on all the time, i was hoping there was a way for me to power them from the raspberry pi and have the pir sensor wich now controlls wether the screen is on or off to also turn on/off the LED’s at the same time.</p>
<p dir="auto">Is it doable? Would there be enough power in the PI to make it all work reliably?</p>
<p dir="auto">If so, can i use any kind of led strip? Is there a module existing for this already?</p>
]]></description><link>https://forum.magicmirror.builders/topic/4649/led-backlight-for-mirror-pir-to-control-them</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 01:19:28 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/4649.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Aug 2017 13:46:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Wed, 23 Aug 2017 16:39:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kimzer" aria-label="Profile: Kimzer">@<bdi>Kimzer</bdi></a> said in <a href="/post/26919">LED Backlight for mirror - PIR to control them</a>:</p>
<blockquote>
<p dir="auto">Found this <a href="https://github.com/bmantoni/pi-hue-motion" target="_blank" rel="noopener noreferrer nofollow ugc">hue motion</a> but i couldnt get it to run.<br />
Anyone that has some input?</p>
</blockquote>
<p dir="auto">So i managed to do this. Its probably quite a dirty fix. And only setup to work with phillips hue bulbs/strips. But if u want to know shoot me a pm and ill show it.</p>
]]></description><link>https://forum.magicmirror.builders/post/26939</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26939</guid><dc:creator><![CDATA[Kimzer]]></dc:creator><pubDate>Wed, 23 Aug 2017 16:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Wed, 23 Aug 2017 10:20:27 GMT]]></title><description><![CDATA[<p dir="auto">Found this <a href="https://github.com/bmantoni/pi-hue-motion" target="_blank" rel="noopener noreferrer nofollow ugc">hue motion</a> but i couldnt get it to run.<br />
Anyone that has some input?</p>
]]></description><link>https://forum.magicmirror.builders/post/26919</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26919</guid><dc:creator><![CDATA[Kimzer]]></dc:creator><pubDate>Wed, 23 Aug 2017 10:20:27 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Tue, 22 Aug 2017 17:11:25 GMT]]></title><description><![CDATA[<p dir="auto">Here is one link…<br />
<a href="https://www.reddit.com/r/Hue/comments/48o51m/motion_sensor_controlled_hue_lightstrips/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.reddit.com/r/Hue/comments/48o51m/motion_sensor_controlled_hue_lightstrips/</a></p>
]]></description><link>https://forum.magicmirror.builders/post/26887</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26887</guid><dc:creator><![CDATA[Mirrorolentia]]></dc:creator><pubDate>Tue, 22 Aug 2017 17:11:25 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Tue, 22 Aug 2017 12:08:03 GMT]]></title><description><![CDATA[<p dir="auto">Anyone know a way to control hue light strips to turn on/off via the pir sensor?</p>
]]></description><link>https://forum.magicmirror.builders/post/26876</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26876</guid><dc:creator><![CDATA[Kimzer]]></dc:creator><pubDate>Tue, 22 Aug 2017 12:08:03 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Tue, 22 Aug 2017 05:22:57 GMT]]></title><description><![CDATA[<p dir="auto">Any stats etc on comparison between LPD, APA102, WS2812 and SK series. I find that WS2812B isn’t always able to render all colors properly.</p>
]]></description><link>https://forum.magicmirror.builders/post/26858</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26858</guid><dc:creator><![CDATA[Mirrorolentia]]></dc:creator><pubDate>Tue, 22 Aug 2017 05:22:57 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 21 Aug 2017 20:15:11 GMT]]></title><description><![CDATA[<p dir="auto">Different strips have different ways they need to be programmed. Some have faster refresh rates than others.</p>
<p dir="auto">Most people will suggest ADA102 for beginners. The strips I linked to are LPD8806. As I mentioned previously the only reason I bought those ones is that MMM-PiLights was programmed to use them.</p>
]]></description><link>https://forum.magicmirror.builders/post/26845</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26845</guid><dc:creator><![CDATA[orayoflighto]]></dc:creator><pubDate>Mon, 21 Aug 2017 20:15:11 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 21 Aug 2017 11:50:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kimzer" aria-label="Profile: Kimzer">@<bdi>Kimzer</bdi></a> said in <a href="/post/26805">LED Backlight for mirror - PIR to control them</a>:</p>
<blockquote>
<p dir="auto">Oh lawd! This looks insanely good. Thanks alot for the guide. Out to go buy some strips today! :D</p>
</blockquote>
<p dir="auto">To quote myself…</p>
<p dir="auto">Can i use any sorts of led strips? Im looking to buy something from a store and not order online if possible.<br />
Im in norway so if anyone knows something i could buy please let me know!</p>
]]></description><link>https://forum.magicmirror.builders/post/26820</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26820</guid><dc:creator><![CDATA[Kimzer]]></dc:creator><pubDate>Mon, 21 Aug 2017 11:50:43 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 21 Aug 2017 07:53:08 GMT]]></title><description><![CDATA[<p dir="auto">Oh lawd! This looks insanely good. Thanks alot for the guide. Out to go buy some strips today! :D</p>
]]></description><link>https://forum.magicmirror.builders/post/26805</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26805</guid><dc:creator><![CDATA[Kimzer]]></dc:creator><pubDate>Mon, 21 Aug 2017 07:53:08 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 21 Aug 2017 07:36:58 GMT]]></title><description><![CDATA[<p dir="auto">Just to add some depth to this… If you really want to go “crazy” with animations, I’m recommending <a href="https://github.com/ManiacalLabs/BiblioPixel" target="_blank" rel="noopener noreferrer nofollow ugc">Bibliopixel</a> and <a href="https://github.com/ManiacalLabs/PixelWeb" target="_blank" rel="noopener noreferrer nofollow ugc">PixelWeb</a>. Then you can “animate” lot’s and trigger them with a curl “command”. Plus you get a nice Web-interface to test the animations in. :)</p>
]]></description><link>https://forum.magicmirror.builders/post/26804</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26804</guid><dc:creator><![CDATA[Snille]]></dc:creator><pubDate>Mon, 21 Aug 2017 07:36:58 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 21 Aug 2017 00:35:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/orayoflighto" aria-label="Profile: orayoflighto">@<bdi>orayoflighto</bdi></a> VERY nice, Thank you!!!</p>
<p dir="auto">You outta do a write up with instructions!  MANY people would love this!</p>
]]></description><link>https://forum.magicmirror.builders/post/26792</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26792</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Mon, 21 Aug 2017 00:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 21 Aug 2017 00:31:18 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></p>
<p dir="auto">I used these only because they were incredibly cheap and I originally started out looking at MMM-PiLights which uses the same LPD8806 type:</p>
<p dir="auto"><a href="https://www.amazon.com/gp/product/B01COEJST8/ref=oh_aui_detailpage_o09_s00?ie=UTF8&amp;psc=1" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.amazon.com/gp/product/B01COEJST8/ref=oh_aui_detailpage_o09_s00?ie=UTF8&amp;psc=1</a></p>
<p dir="auto">I used this python code:<br />
<a href="https://github.com/longjos/RPi-LPD8806" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/longjos/RPi-LPD8806</a></p>
]]></description><link>https://forum.magicmirror.builders/post/26791</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26791</guid><dc:creator><![CDATA[orayoflighto]]></dc:creator><pubDate>Mon, 21 Aug 2017 00:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 21 Aug 2017 00:26:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/orayoflighto" aria-label="Profile: orayoflighto">@<bdi>orayoflighto</bdi></a> NICE!!!   What light strips did you use?</p>
]]></description><link>https://forum.magicmirror.builders/post/26790</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26790</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Mon, 21 Aug 2017 00:26:43 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 21 Aug 2017 00:19:36 GMT]]></title><description><![CDATA[<p dir="auto">I did this.</p>
<p dir="auto"><img src="https://media.giphy.com/media/3o7OsGn89EmG7kk2ju/giphy.gif" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">I used the MMM-PIR-Sensor module and changed the following in node_helper.js:</p>
<p dir="auto">From:</p>
<pre><code>        if (data.indexOf("0x120002") !== -1)
          exec("/opt/vc/bin/tvservice --preferred &amp;&amp; chvt 6 &amp;&amp; chvt 7", null);
</code></pre>
<p dir="auto">To:</p>
<pre><code>        if (data.indexOf("0x120002") !== -1){
          exec("/opt/vc/bin/tvservice --preferred &amp;&amp; chvt 6 &amp;&amp; chvt 7", null);
          exec("python /home/pi/py-spidev/RPi-LPD8806/LED.py");
       }
</code></pre>
<p dir="auto">and</p>
<p dir="auto">From:</p>
<pre><code>      exec("/opt/vc/bin/tvservice -o", null);
</code></pre>
<p dir="auto">To:</p>
<pre><code>      exec("/opt/vc/bin/tvservice -o", null);
      exec("python /home/pi/py-spidev/RPi-LPD8806/off.py");
       }
</code></pre>
<p dir="auto">Note that in the first from - to there is a “)” missing in the original code that you will need to fix. Also note that as soon as the module gets updated if you hack the code like I did above it will be wiped out when you update.</p>
]]></description><link>https://forum.magicmirror.builders/post/26789</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26789</guid><dc:creator><![CDATA[orayoflighto]]></dc:creator><pubDate>Mon, 21 Aug 2017 00:19:36 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Sun, 20 Aug 2017 19:05:12 GMT]]></title><description><![CDATA[<p dir="auto">So finally have been able to integrate the led lights :) Got the code working just now. However, will need sometime to make a proper module out of it. Tried out with johnnyfive and node-pixel with some luck…but it was hyperion/boblight that did the magic for me.<br />
Of course, the trigger comes from Alexa/Echo rather than a PIR sensor.</p>
]]></description><link>https://forum.magicmirror.builders/post/26785</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26785</guid><dc:creator><![CDATA[Mirrorolentia]]></dc:creator><pubDate>Sun, 20 Aug 2017 19:05:12 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 14 Aug 2017 20:33:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mirrorolentia" aria-label="Profile: Mirrorolentia">@<bdi>Mirrorolentia</bdi></a> said in <a href="/post/26548">LED Backlight for mirror - PIR to control them</a>:</p>
<blockquote>
<p dir="auto">Please do let me know if you too have started on something.</p>
</blockquote>
<p dir="auto">I’am working on a Pi-hat (plug on to the GPIO connector) witch can control an RGB-LED strip.<br />
For the software I want to use a PIR and the clock for switching On/Off. With PWM (Puls Wide Modulation) regulating the brightness. Color changing will be random, but there will be a fixed color in a white color, around 3000 K (warm-white).</p>
<p dir="auto">It will take some time to build/write the software, because I’am not a software guru.</p>
]]></description><link>https://forum.magicmirror.builders/post/26552</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26552</guid><dc:creator><![CDATA[pjkoeleman]]></dc:creator><pubDate>Mon, 14 Aug 2017 20:33:59 GMT</pubDate></item><item><title><![CDATA[Reply to LED Backlight for mirror - PIR to control them on Mon, 14 Aug 2017 17:37:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello there,<br />
I too want to try out this project. I have a WS2812B (60 leds/meter) that I have used for creating a Hyperion configuration. I am planning to use the same. You will probably have to use an external power supply. Seems like a 5 meter strip of 60leds/meter will need ~10-15 Amp current at 5 Volts  which obviously Pi cannot sustain. Also I found using an Arduino provides more control than the Pi but that is me. Will try to get something started in a week’s time and update on the progress.<br />
Please do let me know if you too have started on something.</p>
]]></description><link>https://forum.magicmirror.builders/post/26548</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26548</guid><dc:creator><![CDATA[Mirrorolentia]]></dc:creator><pubDate>Mon, 14 Aug 2017 17:37:18 GMT</pubDate></item></channel></rss>