haus bauen ideen modern

haus bauen ideen modern

(background music fades in) hey guys, i'm davis and i'm aaron and in this video, we're going to be making a one-way smart mirror it's basically a mirror with a monitor right behind it, and the mirror is reflective enough so that you can see yourself but you can also see the information on the tv screen. so in this video we're going to spend the first part constructing the frame that holds the tv then the second part we're going to load some application code that we created onto the mirror all the links for the parts and the code will be in the description

uh, so let's get started so to see how this is all going to come together, we built a 3d model of it on the computer and first we started out with this mirror that we bought here, and we're just gonna build a frame around it using four pieces of wood and we're gonna put that mirror right on the back of that frame and then for the sides of the frame, we're gonna use an additional four pieces of wood, just of a slightly smaller size to make sort of a box, and then inside the box, we're gonna put the monitor now to keep the monitor in there, we're gonna use four corner brackets that we're gonna 3d print,

and you can see they're gonna screw right into the frame there and then these triangular pieces are gonna keep the mirror up against the monitor and if you don't have a 3d printer that's okay because we're gonna be selling these for a pretty cheap price uh, so you can, um, easily make this yourself or you could use some other pieces of wood to locate that monitor in there and then lastly, there's gonna be the raspberry pi that's gonna controlling this and that's gonna be somewhere inside here and it's gonna be connected to the monitor though hdmi alright, so we have all our materials here for building the frame, we have a couple pieces of one by threes, and we have a couple pieces of one by twos

these bigger ones here we're gonna use to build the front of the mirror and, these are going to be corner cuts, and glued together, uh, using some wood glue and for the sides, uh, we're gonna use these here these one by twos, they're gonna go on the front just like this and we're gonna make a box basically with this so, first of all, we'll build a box, and nail these pieces together these side pieces, and then we're gonna put that on top of the front pieces that we did and glue them on there and after it's all done

we'll put some uh, cherrywood finish on there, and it should make it look real nice so the length our our monitor is about 13 inches by 22 inches now obviously the size of the frame is going to be different depending on the monitor you have but for what we're doing, we're gonna make the length and width of our frame two and a half inches longer than the dimensions of the monitor so, because for our side pieces, we're gonna be butting up against each other at 90 degrees each piece has to account for the thickness of the adjacent piece and also the thickness of the corner brackets, so each piece then is going to turn out to be 1.75 inches longer than the width of the monitor

or, sorry, the length of the monitor so we're gonna measure two pieces at about fifteen inches and we're gonna have two additional pieces at around 23 and three-quarter inches our mirror is going to be in portrait orientation, so our long pieces are gonna be our side pieces and our short pieces are going to be our top and bottom pieces then we are going to butt these up right against each other just like so and that forms our frame so originally we thought we were going to nail these pieces together

but we just tried this glue on a couple of scrap pieces of wood and it turns out that this is really strong so to make it easier for ourselves i think we are just going to glue these together okay, so the frame is done drying uh, looks like it's pretty rigid just from the glue uh, the nails weren't necessary and so now what i'm gonna do is take the bigger pieces here. this is gonna be the front

of the frame and that's gonna go right on top for the front of the frame, we want the angles to look nice and neat we don't want it to look like these angles here so to make it look better we wanna start these pieces with a 45 degree angle right at the end of the frame like so and so each piece will come together at a 45 degree angle

and, this piece is gonna be about twenty-five or twenty-four and a half inches long and then this piece here is gonna be about fifteen inches and three-quarters alright, i got two of these pieces cut out at a 45 degree angle and we're just gonna glue these here right on top and to each other

and then after that we'll just finish off with these other two pieces alright, so just finished the frame here we put a stain on it so now its got a nice rustic look and what we're gonna do now is we got this, uh, plexiglas sheet we found on amazon the link will be in the description it's got a reflective coating on either side, but also allows light to pass through it so what we're gonna do now is put this on the inside of the frame here and sandwich it in between the frame and the monitor so one we learned when we were doing this is that

this stuff is pretty brittle here so if you're using some thick shears like this with wide blades that's going to crack the sides a lot so we had to switch to some thinner scissors and you also have to make sure it's pretty sharp too otherwise, uh, that will also make it more likely to break one thing we learned that helped is that if you're gonna cut it if you put some tape on there and cut along the edge of the tape like this

then this side may crack a little bit but when you lift the tape up, it's smooth underneath and you get a straight edge so, that seems like the way to do it so looks like we managed to cut it without any major cracks through the glass but there are some minor cracks in here and we put some tape on there to make sure that those cracks don't propagate and so that we don't have a bunch of sharp edges on our mirror alright, last thing we got to put the monitor onto the frame

and the way we're gonna do that is with these 3d printed brackets these are just gonna go on all four corners of the monitor and it's gonna screw right into the wood and it's gonna sandwich that monitor onto the mirror, and up against the frame so the final product looks a little bit like this we got, uh, brackets on all four corners and i should also mention that it's ideal to get a low profile monitor this monitor is just over half an inch thick so it sits in the frame really nicely and if we flip it around to the other side

it just looks like a plain ol' mirror i'm connected to my raspberry pi again through vnc we have a repository online for smart-mirror first thing i'm going to want to do is download this repository so i can open up my terminal and type get clone this repository so the next thing i want to do is install the dependencies for this project so you wanna make sure that you have pip installed if you don't have it installed, you can just, uh, google how to install pip

so i need to run pip install -r requirements.txt and it will install all of my requirements and you might have to run sudo pip install -r requirements okay, now all of my dependencies are installed i need to change a few things in my file so i'm going to open that with vim so if i type vim it will open up file

and so we have, uh, three variables set here one is ip, one is country code, and the third is weather api token you need to set your ip of your raspberry pi to this variable, and it's used for location so we have a service that gets the location of your ip and from the location we determine what the weather is the forecast for the next few days so if you go to, it will give you your current ip address and then the country code is used for news

uh, so it's a iso country code. since we are in the us we put us here but you can use your own country's country code and then the weather api token is, um from a site called so you'll need to make an account on it's free. and it will give you an api token and then you would just replace it in here this is the site and if i scroll all the way down to the bottom

there will be a uh, forecast api under developers and if you register create an account, it will, uh, display a api token which is just a string value and so once you get that, you can come back to your and then replace this token here with your api token once i've done that, i can just hit, uh, escape and then capital zz to save

okay, now i can go back to my console and i'll need to do one more thing before i start this uh, i need to install one more thing and is python imaging tk so you can install that with sudo apt-get install and after i run this, i can run python and depending on how slow your network connection is it might take a few seconds to start up okay, so now it's loaded and if i click on the window and press enter, it goes fullscreen

and then if i press escape, it returns to just the windowed view so let's hook our raspberry pi up to the mirror and set it up so that it runs this application so now i have my raspberry pi hooked up to my smart mirror and the display is still in landscape orientation, and i need to switch it to portrait so in the slash boot folder there should be a file called config.txt if you use sudo vim to open up this config.txt file you should be able to scroll down to the bottom and we need to add a variable, so

i added this variable called display_rotate and i set it equal to one, and this will rotate the monitor so that it is in portrait orientation so if i press escape and then colon w q exclamation mark it will save this file and now i need to restart my raspberry pi okay, so now we are in portrait orientation i'm just going to...

run the application now i'll hit enter to make it fullscreen and now we have our very own smart mirror set up alright, so that's it for this video, we really hope you liked it eventually, we actually want to incorporate some ai components into this mirror where you can talk to the mirror, and the mirror will talk back to you but, unfortunately, that was just a little too much for this video so if you want to stay up to date with all our other videos, make sure your subscribe if you haven't already

but until then, see you next time

Subscribe to receive free email updates: