#1 Program an ESP01: The easy way!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello lovely people welcome to my channel aibegins.net today we'll be looking at a very interesting chipset this has taken maker's community by storm it's really small really powerful esp8266 this one right here is an esp-01 module let me give you a rundown on esp-01 chip so this thing is really small really cheap comes up about two to three dollars and is really powerful it has 32-bit microprocessor which runs at 80 megahertz which is quite a bit more powerful than your average arduino now this thing has two gpios so that's a bit low compared to arduino i know that and if you are not using serial communication you can use up to four but the thing is you could use this in a lot of projects you might often find that you just need a few gpios for your projects to run especially iot based ones so for that this is perfect and another thing to note is that this is not platform friendly you can make it so but right out of the box it's not also it does not contain any regulators so you'll have to supply your 3.3 volt directly to it and if you go any high or low it will not work or burn up so be careful when you do that we have this microprocessor and all so how do you program it well there are a lot of ways to do this you can use either your arduino uno or you could use an usb to ftdi converter but the simplest way i found is to use this this is a ch340 based usb 2 serial communication device for your esp-01 module now this thing is also really cheap you can get it for about two to three dollars right out of the box this thing just acts as a communicator that is you can use the messages that comes into your esp-01 module but to change it into a programmer we need some soldering the theory is that esp-01 module requires you to put one of the gpio pins that is gpio0 to the ground so that you can put it into programming mode but here there is no such setup but if you are using just communication you don't need to do that pull down so what do we do well all you need is a little switch so this is a push button switch which i've wired and you can easily attach this between the gpio uh zero pin and the ground pin and when you put it into your computer you just have to push the button and it enters the programming mode so let's see it in action so hey the soldering is done so i've connected this push button switch between the gpio 0 right here to the ground pin right here if you want a reference you can just take a look at the esp-01 module and you can see on the back you have the pin outs greatly listed so we have connected gpio0 to the ground so this thing will now act as a programmer as well let's put it to test and see what happens our programmer is now ready for action and our esp01 is now ready for programming let's plug this in now to get it into programming mode just push this button hold it on and plug it in your pc and then let go of the button the esp01 has now entered the programming mode we'll now use arduino ide to get a sketch inside and let's see if it works i've opened up arduino ide here and we'll use this to program our esp-01 module but first we'll have to set this up let's see how to do that go to files and from here preferences and in the preferences under additional boards manager url you'll have to paste this link i provide this link in the description box so no need to worry press ok and then go to tools go to your boards menu select board manager you'll have to search for esp8266 so this is now loading yep done and esp8266 is what we have to search and it is right here new system just click on install in my case i've already done so close this and now few more steps and we are ready to program go to tools go to port and select your com port this is the port to which your usb device is connected but make sure that you have already installed ch340 drivers because this particular module runs on ch340 chipset so make sure you do that now we are ready to load the sketch go to files examples and esp82665 go to wi-fi scan so this is a sketch which allows you to view which networks are available in your area we'll this is a simple sketch and we'll begin to upload it it will compile the sketch and then start uploading it into esp01 as you can see it has started uploading the code into the esp-01 module and it's completed now just take it out of your system and plug it back in this time make sure you don't press the button now this smart deal has entered into communications mode in your arduino ide go to your serial monitor right here and just wait yep we got it just started scanning and it has found some networks nice right today we have learned how to program an esp-01 module hope you had fun and you'll use it in a lot of projects to come if you like this video press that like button if you love this video press the subscribe button and please do share it with your friends it will really help the channel take off so see you again in the next video bye bye you
Info
Channel: AIbeginsDotNet
Views: 55,233
Rating: undefined out of 5
Keywords: IoT, ESP01, ESP8266, Electronics, Hobby Electronics, DIY
Id: cTfjqNFAkZ8
Channel Id: undefined
Length: 7min 37sec (457 seconds)
Published: Mon Aug 10 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.