Happy PI Day!!!

A few years back… ok… like 9 years ago. I built an interesting piece of functional art in my living room. It was my media center pc, mounted in a double picture frame on my wall. This thing served me well for a long time. But now it’s time to upgrade it.

After all this time the ATOM board in there has gotten a little sluggish, the distro isn’t supported, the black lights have gone bad, I think there’s a demon in there. It’s legit struggling.

So how are we going to upgrade it now??!?

Oh good you, you have it under control…

Oh man… I thought you were gone…

You are not a meme…. Let me finish…

Where was I? Oh Yeah. What we are doing to upgrade… So here is the checklist.

  1. Replace old ATOM board with new raspberry pi
  2. Replace black light bulbs with RBG led strip.
  3. Add simple to use RF remote
  4. Flash PI with OSMC for a distro that will keep updated on a regular basis.
  5. Add wemos D1 Mini to control LED in frame lighting
  6. Flash wemos with WLED project for simple easy lighting control
  7. Add wemos to home automation system to turn on/off lights on schedule

Not a ton of work, but there is some work to be done.. So lets get to it!

Woo do work fool!!!

Not helpful…

Materials List

<td>
  <a href="https://amzn.to/30IWvE4 ">https://amzn.to/30IWvE4 </a><br />or<br /><a href="https://amzn.to/2OPuaco">https://amzn.to/2OPuaco</a>
</td>
<td>
  <a href="https://amzn.to/3lfiWtS">https://amzn.to/3lfiWtS</a>
</td>
<td>
  <a href="https://amzn.to/3rQ7gA8">https://amzn.to/3rQ7gA8</a>
</td>
<td>
  <a href="https://amzn.to/2PXjx7P">https://amzn.to/2PXjx7P</a>
</td>
<td>
  <a href="https://amzn.to/3vkwXuW">https://amzn.to/3vkwXuW</a>
</td>
<td>
  <a href="https://amzn.to/2Owwmph">https://amzn.to/2Owwmph</a>
</td>
<td>
  <a href="https://amzn.to/3eyVgiH">https://amzn.to/3eyVgiH</a>
</td>
<td>
  <a href="https://amzn.to/3tuqf3Z">https://amzn.to/3tuqf3Z</a>
</td>
<td>
  <a href="https://amzn.to/30EYidj">https://amzn.to/30EYidj</a>
</td>
<td>
  <a href="https://amzn.to/3qMx6nw">https://amzn.to/3qMx6nw</a>
</td>
<td>
  <a href="https://amzn.to/2PYoJbD">https://amzn.to/2PYoJbD</a>
</td>
<td>
  <a href="https://amzn.to/3rOgOvw">https://amzn.to/3rOgOvw</a>
</td>
<td>
  pi3 – <a href="https://amzn.to/30FX7KH">https://amzn.to/30FX7KH</a><br />pi4 – <a href="https://amzn.to/2OoklCy">https://amzn.to/2OoklCy</a>
</td>
<td>
  <a href="https://amzn.to/3cx8ycP">https://amzn.to/3cx8ycP</a>
</td>
<td>
  <a href="https://amzn.to/3qLjkl1">https://amzn.to/3qLjkl1</a>
</td>
<td>
  <a href="https://amzn.to/30JQ5EK">https://amzn.to/30JQ5EK</a>
</td>
<td>
  <a href="https://amzn.to/3lh4phl">https://amzn.to/3lh4phl</a>
</td>
<td>
  <a href="https://amzn.to/3rHbfix">https://amzn.to/3rHbfix</a>
</td>
<td>
  <a href="https://osmc.tv/store/product/osmc-remote-control/">https://osmc.tv/store/product/osmc-remote-control/</a>
</td>
<td>
</td>
2 Ribba Picture frames
Misc wire / perf board
RBG led strip
Hinges
1 3 port keystone wall plate
1 hdmi keystone jack pass through
1 rj45 keystone jack pass through
1 keystone jack blank
1 5v 10amp power supply (barrel plug)
1 barrel plug
1 usb adapter
1 small pc fan
1 raspberry pi 3/4
1 usb cable
1 wemos d1 mini
LED ribbon cable
motherboard stand offs
LED connectors
OSMC Remote

So, those picture frames don’t look like what you have….

Yes, I know, remember, I am upgrading from an older build. The goal of the picture frame is to be tall/wide enough to house your board and deep enough (why I suggest 2) that you can mount said board inside it with stand offs. The second important piece with the picture frames is to make sure that you have some matting to hide things behind.

How to create a wall mounted pi media player

Ok. So lets get started.

Lets take the 2 picture frames, and stack them, and add some hinges so we have a nice box to work with.

Take the 3 keystone plate and put the hdmi and network pass through it. Take the blank and drill out a hole to fit the barrel plug.

Arrange them however you best see fit. Now with a rotary tool cut around the keystone jacks so that what’s remaining can fit on the side of the frame. I cut around the existing screw holes so they could be reused to fasten to the frame.

As you can see from the first build you mount the board in the middle and start taking care of the wiring.

You take care of wiring.

*sigh*

Then add some lighting.

Ok. So now we have this beautiful beast all built out. Lets make it do a trick.

hehe… what kind of trick?

Are you 12? Seriously, what’s wrong with you?

Me? Im not the one talk to… you know what, nevermind. Continue.

Thank you.

So we have WLED installed on the Wemos D1 Mini. If you don’t know what WLED is, it is a beautifully written program for the d1 mini to do LED light control. HUGE shoutout to Aircookie for such a great piece of software! https://github.com/Aircoookie/WLED

Supports most LED light strip, but also give you some really awesome control over the LEDS. I have worked with it on some other projects including my neo-pixel LED christmas tree decoration I did this past christmas.

Aside from the really cool effects, the mobile apps ([ios][1] / [android][2]) but WLED also has support with tons of Home Automation Systems. I am currently using OpenHab so I will add a scheduled integration so it’s added as a “living room” light, in the group gLivingroomLights. This will automatically add it to the automation to turn on the LED’s with the rest of my living room lights which turn on 15 minutes after sunset each day. If we leave and turn off the lights, when we arrive back home, the lights automatically turn on when we pull in. The picture frame is now part of that. When it’s bedtime and the living room lights all turn off, so does the picture frame lights.

Since this is also a full color/dimmable type of light, it will automatically following follow the rest of the dimming controls for the livingroom lights, including integration into Kodi for the Cinema Vision home automation integration.

For Openhab you can integrate using the build in [binding][3]. Or via MQTT, http rest call.

For HomeAssistant you can integrate like [this][4].

There we go. An upgraded picture frame art PC on the wall. We have added some nicely controlled LED lighting and have integrated in with the home automation system.

So what else does it do?

What do you mean what else does it do? It’s a Kodi Media player integrated in to plex with plexkodiconnect to sync everything up. It can play back all the media on the network, receive casted data and airplay.. what do you mean what else can it do?!

Yeah, what else can it do?

Home automation on screen notices and surveillance camera pop ups on motion?

Ok… that’s pretty good.

TLDR