Easy way to program an ESP8266

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this tutorial will be setting up the esp8266 on the note MC us on the left hand side set up on this board which has a mini USB to connect to it however the cheaper version which is esp8266 on its own requires a little bit more love as you can see in front of you it's a lot smaller and it's a lot more difficult to connect to a breadboard however we are going to find a way to connect it but I'll be using a few bits and pieces that you can use regularly on a regular basis to set it up with a guaranteed power supply so what we're going to need is an ESP unit this is the zero one model as you can see it's quite small a few pins already said I've on it but like I said those pins are difficult to plug into the two the breadboard and connect to your cable so what we're going to use is a nano over here which I bought from some founder nice and cheap and I'll use that board continuously to connect to the PC and use it as a power supply now you can use this for your project or keep it to connect all your ESP devices you're going to need some jumper cables and I took some smaller jumper cables also you can use an ohm resistor as a jumper cable in this case but I'm not going to use it so let's get started we'll set up the ground cable to the ground that's the first thing we want to do I used like two second say before I'd like to keep my cables colored so ground to ground red to VCC which is the three point three on this chord after that I used like to use my colors in this case I'll be using yellow to our X then green to TX I can show those are connecting properly I'll use the gray cable to set to the reset and the blue to set to the GPG HPD which on the board says en that's the one you want to connect it to the G HPD then brown to GPIO 2 and purple the GPIO 0 so now we've got our cable set up here for now we can connect it to the breadboard there we go making sure that's all nice and tight setup will carefully place the Nano onto the breadboard making sure not to bend the pins making sure that that's a mini USB port on the Nano just so you know it's not on micro USB you may have a different version but in this case it's a micro allowed mini excite all right let's get the cable sorted up so we're going to make sure everything is kept connected in the right order here I'm going to start off with is try to get the order so it's easy to remember I'm going to probably grab a hold of the ground to get started with connect that using green which is the TX red which is VCC brown which is the GPIO 2 and purple GPIO 0 and blue the CHP D yellow Rx and gray reset now I found the gap between the two cables here was too far apart so I reset it again which you get the general idea you got those all set up now using the Nano fine is very easy because it's a like a like easy to configure board as well as it's an easy power supply other power supplies like usb-to-serial can be a bit funky and I find this to be a more stable and easy to set up but you can use an ohm resistor in this case I'm using Android K resistor but and I'm actually going to use a red jumper cable to be more visual doesn't make any difference as no current that will be passing through I'm going to be using that from the CHP d2 the VCC so we're making sure those two are connected and I'm going to do a little bit of zoom in here so you get a better close-up so you can see those cables are going and then we are going to connect the GPI 0 to ground now this connection will put the ESP into programming mode that's what we really want at the end of the day so once we've done this we basically want to get ready to set up the connection to the computer which is through the Nano first thing we need to do is get that out the way and connect the reset to ground this will put the board into sort of a null and void it'll be like a pass through and then we need to connect the aurochs which is yellow if you remember earlier to the Oryx so just a close up there so you can see the RX pin is put that in and connect it to the yellow cable like I said I like to keep my cables all colorful and matching and then the TX you can never look there on the board with the cable looks like and then the TX to the TX which is green to green these cables are little bit I gotta get in sometimes and that's that connected so the power supply let's make sure that we have the 3.3 volt connected let's move the ESP cord of the way and grab us a red cable here keeping everything in color fashion and putting that in the 3.3 volt on the Nano board and connecting it to the VCC on the ESP which is right through all these little cables yet there and finally the ground which will be next you go you got a nice clear view of what's going on here tom is that I don't have any black cables left site to use blue which goes against my principles but in this case when you don't have you have to make do so from the ground pin to the ground pin of the ESP that's your board pretty much set up to program where did you go we just need to connect the USB and connect it to the computer nice little finale hardware setup and we can move on to programming so let's get the Arduino IDE started if you haven't got it installed earlier you remember how to install it from previous videos not difficult go to the web site close that down first thing we need to do is go to preferences to make sure idle board manager has the URL which will be included in the YouTube video click so over the tools and board manager first thing we do is go over to is it's contributed which is the drop down there and we're looking for the ESP community install here I've done it already so let's skip that close it down just to make sure it's installed once it's installed and then we're going to look for a few examples oh yeah first to look for the board go down and then you'll find a new thing called the generic USB click that board make sure that there's a comm set up for it it's not necessarily just yet the way I'm connected and we'll go to file preferences and examples and we'll go down to ESP Wi-Fi and this is a really good way to take to see if the boards working open that example is this called scan Wi-Fi scan compile it just make sure that they're compiled through not sure if the text is going to be good in low quality videos but you might want to put it up to the highest value so you can see what's going on here so once that's compiled which will be in a few seconds make sure that you set the serial monitor to the value above which is 11 5200 it's important to remember I had nothing better to do so I just kept reminding everybody there and we're compiled now so what we're going to do is upload this to the board and that's hopefully everything should go well what do you think it is done the upload and she's up and running those little dots that's always a good sign so now this programs basically you're just going to scan for the Wi-Fi in the area it's only to give you an example of that the fact that the board is programmable like I said there's a lot more you can do with this board it's cheap it's easy to use it's efficient like for example sitting up on relays that kind of thing right tools serial monitor booyah now scanning all the wi-fi's in a local area not only does that it gives you an example with the strength is for this card so we're up and running and the Internet is available if you've got the programming skills so use your fancy and make something cool but on one last note make sure that this is what it looks like when you set it up plug it in the USB and it should be blinking like this when it is uploading if it's not that's not cool and things are not set up right some versions of the ESP down come with a red LED but if the blue is blinking you're all good have a good one good luck
Info
Channel: IT Chop Shop
Views: 152,213
Rating: undefined out of 5
Keywords: easiest way to program ESp8266, easy way to program ESp8266, Arduino, ESP8266, Best ESP8266, fastest ESP8266, program ESP8266, IOT ESP
Id: ZJnpgYlelEA
Channel Id: undefined
Length: 10min 36sec (636 seconds)
Published: Thu May 04 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.