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.
- Replace old ATOM board with new raspberry pi
- Replace black light bulbs with RBG led strip.
- Add simple to use RF remote
- Flash PI with OSMC for a distro that will keep updated on a regular basis.
- Add wemos D1 Mini to control LED in frame lighting
- Flash wemos with WLED project for simple easy lighting control
- 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!!!
|2 Ribba Picture frames||https://amzn.to/30IWvE4 |
|Misc wire / perf board||https://amzn.to/3lfiWtS|
|RBG led strip||https://amzn.to/3rQ7gA8|
|1 3 port keystone wall plate||https://amzn.to/3vkwXuW|
|1 hdmi keystone jack pass through||https://amzn.to/2Owwmph|
|1 rj45 keystone jack pass through||https://amzn.to/3eyVgiH|
|1 keystone jack blank||https://amzn.to/3tuqf3Z|
|1 5v 10amp power supply (barrel plug)||https://amzn.to/30EYidj|
|1 barrel plug||https://amzn.to/3qMx6nw|
|1 usb adapter||https://amzn.to/2PYoJbD|
|1 small pc fan||https://amzn.to/3rOgOvw|
|1 raspberry pi 3/4||pi3 – https://amzn.to/30FX7KH|
pi4 – https://amzn.to/2OoklCy
|1 usb cable||https://amzn.to/3cx8ycP|
|1 wemos d1 mini||https://amzn.to/3qLjkl1|
|LED ribbon cable||https://amzn.to/30JQ5EK|
|motherboard stand offs||https://amzn.to/3lh4phl|
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.
Then add some lighting.
Here are few shots of the build back in the day.
So now, we move to the upgrades. We are removing the board and and replacing with a Raspberry Pi.
Upgrades to move to Raspberry Pi
Now since I have some LED strip, a wemos d1 and a raspberry pi to power, I am going to create a power distribution board.
Wire up our new LED strip instead of the old blacklights.
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.
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 / android) 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. Or via MQTT, http rest call.
For HomeAssistant you can integrate like this.
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.