Setting Up The Home Automation Server (OpenHAB 2 + MQTT): Final Installation 2017
Hey guys Matt here from MKSmartHouse.com and in this video we are going to be doing a final installation of the home automation server. [Intro] So in this video we are going to be taking the raspberry pi and mounting it on the network wall. First let’s go over the materials we are going to need for this. To start off we are going to need Mscrews that are 20mm, plastic M4 Flat washers about 20 of them but I ordered 100 and black electrical tape. Then for tools we need, a drill, a philips screwdriver, some countersink drill bits, regular drill bits and label maker with label tape. The links to where to get all the materials and products I use will be in the description. While you are there go ahead and press the like button because if all five videos in the Home Automation Server Series hit 200 likes then I will release the videos on how to actually use OpenHAB sooner then it is scheduled.
Let’s get to work, the first thing we have to do is Unplug the raspberry pi from the micro usb cable as well as unplug the ethernet cable. Then bring it over to a table and take the whole case apart because we need to make some small modifications. Next unscrew the raspberry pi from the bottom piece of the case and put it somewhere safe. Make sure you do not loose the small screws so move them somewhere safe. Now, lets modify the case a little, Grab a small piece of wood, I am using a short piece of a 2 x 4, this is to prevent the desk being damaged. Then take the bottom piece of the acrylic case with the straight side to the left and the shorter side to the middle box facing you.
Choose a drill bit that is bigger than the screws you are going to use to mount the pi, The screws I have are Mso I chose a 4mm drill bit. Next grab your drill and put in the drill bit. I am going to drill two holes for mounting, one is going to be in between the micro sd card hole and the square cut out, the other hole is going to be in between the left edge and the square. Once the holes are drilled, we are going to countersink them so they are flush with the case. Find a countersink bit that will make the screw flush, I chose a size 8 and found that it worked really well. Once you choose a size put it in the drill and go to the hole and just start drilling, while you are drilling though take breaks to test and see how flush the screw is.
When the screw is perfectly flush then we are done and then repeat the process for the other hole. Great now that both screws are countersunk, put the case back together but, without the pi inside. Bring it over to where you are going to mount and play around with its positioning, keep in mind the locations of the ports and clearance. Once you chose its position bring the case back over to the table and take it apart. After it is apart find a drill bit that is smaller than the screw we are going to use to mount the case. Take the bottom piece of the case back over to where we are going to mount it and drill holes use the bottom piece as a template. When the holes are drilled bring the bottom piece back to the table and put the two mounting screws through the holes. Then take 8 – 10 of the plastic washers and put them over the screws, the reason we do this is to provide a space between the bottom piece and the mounting surface so we can assemble the case on the wall.
This is the tricky part grab the 4 screws that we use to mount the pi to the case and stick them through (Refer to the video if confused). Now with all the screws in bring it over to the mounting place and screw in the mounting screws into the predrilled holes. To prevent the raspberry pi from ever shorting just in case I put pieces of electrical tape over the metal mounting screws. Next take the 4 small plastic spacers used for attaching the pi to the case and put them over the 4 screws we put in before screwing it to the wall. Then take the pi in addition to the 4 nuts and mount the pi to the case, since we can’t reach the screws we will just finger tighten the nuts. All we have to do is assemble the case, so grab the microsd card side piece as well as the two long pieces and put them on. After take the piece with the fan, and connect the fan as well as put the piece on. Finally take the piece with the port cutouts and put it on. Before we plug in the cables I like to label them.
I used my dymo label maker and made a label for the two sides of the ethernet cable as well as the power brick. I also labeled the actual pi with what type of server it is and its IP address. Then I took the micro usb cable and the ethernet cable and plugged them in. The automation server is now done in terms of hardware. In terms of software it is setup, we just now need to customize openhab 2 from the sitemaps to the rules for automation.
Which is what the next videos are going to be about, so please help me get these 5 videos in the automation server series to 200 likes because I spent a lot of time on and them and it motivates me to release the next videos faster. Alright thank you for watching and If you have any questions leave them in the comments section below or head over to mksmarthouse.com/forum where you have a better chance of it getting answered. Good Bye!.
As found on Youtube