 Hello again, I'm Chris of filmsbychris.com. That's Chris the kid. There should be a link in the description and today I'm just going to do a small demonstration using the ESP8266 module This once again is a microcontroller with Wi-Fi built-in think of it as a small arduino with Raspberry Pi with Wi-Fi built-in Now what we're gonna do here today is very simple. We're going to hook this to a simple Relay. Basically a relay switch is it's a switch like a light switch. It can control higher voltages with low voltage. So basically these modules can only handle a couple of volts So you can turn on LEDs and stuff But if you want to turn on something like lights or something more powerful than that what you gotta do is you're gonna hook your Chip to the low voltage input on a relay And the relay is a switch that turns the high voltage on and off So the high voltage never comes in contact with your microcontroller now again the ESP8266 module here The one I got is what's called the development board and I just use it for my projects It's a few dollars more But it's got the built-in USB port here for powering it and also programming it It also has the pins built in so it can sit right on a breadboard very easily Now you notice I have two different relays here now both these relays can control up to 250 volts AC or 30 volts DC now The difference between two is I ordered these ones because looking at the schematics the pin layout for Our module here. It has two pins that are 3.3 volts and This relay needs five volts to turn it on and off So I ordered a bunch of these. They're only like two bucks a pop. I ordered I think five of them for ten dollars and Then after receiving them I realized Looking at the pin out again for the our microcontroller here There is a five volt pin down here or actually I'm sorry right here So I didn't need to order these ones, but I have five of them now So I put one of the board here and I programmed it to act as a web server and when you go to a certain link on that web server It will turn on this module for half a second and then turn it off. So if you want to again The control a garage door you can do that now a relay Technically would be overkill for a garage door. You could use a MOSFET controller, but Again, you know, I want to keep things simple So even though this is overkill because it can control high voltage and the garage door only needs a small voltage This is all one unit. I don't have to solder anything. I don't have to put components together It's just flip it on flip it off. So that's what I have chosen to use. So again, this is going to be a very simple demonstration I'm going to use a USB Power cord. It's a cell phone charger. Actually, it's my tablet's charger I'm going to plug it in in a couple of seconds. This little device is going to connect my local network at which point I can pull out my phone and redirect or point to the device and I have two different pages on this web server and One is just a button that says click me when you click it It brings you to the other one which actually turns on the relay for a half a second Then turns it off gives you a message output of activating and then it redirects you back to the button It's a kind of ugly interface, but it's very very simple everything that's being done is being done on this chip We're not getting any outside resources Which you could if you wanted to have your web server because you're very limited on the memory on this You can have it pull images from other places and have a very nice layout or even on the device It's very simple to you know make a nice looking web page with CSS and nice looking buttons and you can use some Ajax to send the commands without actually redirecting the page But very bare minimum. It's literally two lines of HTML or JavaScript code to generate this and it's basically a slight modification of a very simple LED blink application only instead of turning in LED on and off We're turning the relay on and off which again control higher voltages So I'm going to plug this into the wall and again the only wire connected. This is power I'm powering it off the wall, but you can power it with you know if you have an external Battery pack for your cell phone, which I have a couple of you could power this for a while Using one of those so you can have it in your pocket if need be so let's go ahead and look at that I'll pull out my phone hook this up I'll go have a look at it and you'll see the relay you should be able to hear clicking Hopefully on the camera, but you'll see a little red light turn on and off on it And again, it's just gonna be a half a second on half a second off kind of like a momentary button press So here we go. I'm gonna plug the power in And again, this is not running a full like Linux operating system or something else So it's pretty much instantly on the only delay is a few seconds It takes to connect to the wireless network, but I'm sure at this point. It's probably very connected so let me pull out my phone here and link to The page so there you go. It's again not the prettiest the button's not very big But there's a button that says click me and when I click it It turned the relay on and off and then redirected back to the button that says click me So again, I'll click that and you'll be able to Hopefully here, but you also see a red light click on and off on the relay That's it and click again So again, that's on and off like a momentary button. I can have it go on and stay on I can have a button for on I can have a button for off technically I can set up sensors hook sensors to our chip here So you can have one button that kind of toggles and it'll detect whether something's on and off But I'm using this again kind of like a switch that you know momentary switch like pressing a button for again Your garage door, which is going to be one of my projects here And so we're just going to click and that's it and again This whole project right here is About ten dollars and that's buying the more expensive ESP 8266 module again You can get them for like three dollars if you don't get the USB and flash or chip all built in And you can actually get this one cheaper if you don't mind waiting for it to being shipped from China So that's just a quick demonstration and again in the future videos We're going to be using this a lot and I'll show you how to program it using the Arduino interface and program called ESP tool and it's very very simple and I hope you enjoyed this tutorial or this this video. It's not really a tutorial. So again, this is just a quick look at We're going to be using this device a lot in the future. Basically, this exact setup can control so many things with slight software tweaks So again, this is my new channel. Be sure to check out my old channel. There should be links in the description to everything But be sure to visit my website filmsbychrist.com. That's Chris with the K there you can search through videos from both channels There's also an RSS feed that you can add to your RSS reader and get updates anytime I post a video to either channel If you enjoy my videos be sure to visit my patreon page It's patreon.com forward slash milux 1000 there you can become a supporter and get videos early from both channels So I'm combining that into one account So if you support one channel you get videos from both and I just want to thank you for watching Be sure to like share subscribe comment as a new channel all that stuff always helps, but especially with a new channel I hope you enjoyed this and we're going to get in some more fun stuff I know this is a very basic example, but I just wanted to give you an idea of what we're going to be doing so I Hope you have a great day be sure to check out the links in the Playlist or the links in the description for a playlist check out my channel and other videos I thank you for watching and I hope that you have a great day