 Today we are going to be opening and closing our garage door with our smartphone. So right here I have a button that opens and closes my garage door just like you probably have at your house for your garage door if you have a garage. All this is two wires that when you press the button are connected and it's screwed into two bolts up on the garage door motor. So right here you can see the two screws and if you take a wire and connect those two they open or close the garage door. Now you can see I have some alligator clips, this is a temporary setup right here. Some alligator clips connected to those. Also this motor is run by an outlet right here, it's powered by an outlet right here so I just plugged in a USB cell phone charger to there and ran that down to my ESP8266. Sorry for the wobbly camera work, I am standing on a step ladder here. The microcontroller is in a breadboard because again this is a temporary setup. You can see I have that it has some wires that go to a relay and the relay is connected to the alligator clips which are connected up to the garage motor. So now all I have to do is take out my smartphone, open my web browser, point it to our microcontroller and click the button and the garage door closes. Again, this is something we worked on in previous videos where I set it up as a momentary switch so it connects the relay for a half a second and then disconnects just like pressing in the button and letting go. I was a little concerned because again my phone is not talking directly to the microcontroller, it's talking through Wi-Fi so the microcontroller had to be able to connect to my Wi-Fi which is on the other side of the house and I wasn't sure I was going to get a signal in the garage because I wasn't sure how strong the ESP8266 module is but it was able to reach that no problem. So now theoretically I can open and close my garage door from anywhere in the world because all I have to do is open up a port on my router and now I can connect to that device from anywhere in the world that I have an internet connection to. That being said, right now there is absolutely no security on that device besides the fact that my network is encrypted. So if I open up ports on my router and access it, there's no security to it. If someone breaks into my Wi-Fi and they find the link to that, they can get to it. There's no password and even if we did set up a password at this point, there's no encryption for the communication so it could be sniffed. So those are some things to think about. We're going to look in future tutorials, we're going to look into setting passwords but again there's no encryption on the device itself. There might be ways I haven't looked into that yet but right now there's no encryption on that device. The only encryption I have is my WPA encryption on my network which is fairly secure but could be broken. Luckily I live out in the middle of nowhere so as you can hear all the bugs around me so it's not like I have a lot of neighbors trying to sniff my Wi-Fi, not that someone couldn't pull up out in front of my house but they would be a little suspicious. But again, this is my temporary setup, I'm still going to work on it, I'm going to add some security to it but again all I have to do is click that button. I can open or close my garage door remotely with my phone, laptop, tablet, anything connected to the internet that or at least right now my local network with a web browser and if I know which IP address and what the URL is for that device. So thank you for watching as always. This is my second channel which is mainly on hardware. If you want to know more about how this works be sure to check out previous videos and future videos because we're going to be doing a lot more stuff like this. There should be a link in the description of this video to a full playlist where I go into stuff in more detail. This is basically just a demonstration. I thank you for watching. Please visit FilmsByChris.com, that's Chris of the K. There should be a link to that in the description as well. There you can search for the videos on both my channels. My other channel is mostly talking about software, this channel is mostly focusing on hardware projects and on my website you can search through videos from both channels. One RSS feed that you can at your RSS reader and get updates from both of my YouTube channels from that one feed. I thank you for watching. If you like my videos think about not only sharing, subscribing, commenting, liking this video but if you have a dollar or two or more check out my Patreon page at Patreon.com forward slash mail X1000. There's a link to that in the description. Again, check out all my videos. I thank you for watching and I hope that you have a great day. Don't worry about all the noisy bugs because someone will complain about that. Have a great day. One more quick thing to think about while you're hooking this up. There are different GPIO pins you can use, you can use a lot of them. Some of the GPIO pins you got to think about if there's a power surge is this device going to flip on that GPIO pin when it's rebooting because you don't want there to be a power surge and every time there's a power surge your garage door opens or closes. That would be bad. Again, hopefully in the future we'll add sensors to this to where you can detect whether the garage door is open or closed and you can do things like maybe if it's open for a certain amount of time automatically close or something along those lines or again if you're not here, if you're not at your house and you're trying to open or close the garage and you can't see it, you don't know at this point whether it's open or closed. There's one button that opens it or closes it so definitely want to think about adding some sensors maybe even a webcam so you can view whether it's open or closed. So those are things to think about, things we might touch on in the future and as always again thank you for watching.