How to Program ESP01 WiFi Module | Arduino IDE | DIY

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
In this video we will have a look at ESP01 Wifi Module And learn how to program it Which can be useful If you wish to control only few GPIOs Pins So in this video lets see how to program it and use it So with out any further a do lets get started Firstly, let`s start with Pinout, This tiny ESP01 module has a total of 8 pins Starting from Top Left they are as follows, First one is GND Second one is GPIO 2 Third one is GPIO 0 Fourth one is Rx pin or you can use it as GPIO 1 Fifth one is Tx pin or you can use it as GPIO 3 Sixth one is Chip_enable Seventh one is Reset And finally Eighth one is Vcc If you are not using Rx and Tx lines in your project you can use those as GPIO1 & 3 respectively. While working with this module keep in mind that it works with 3.3V So don’t accidentally connect it to 5V it will destroy it. Since this tiny module costs only $2 whereas an ESP8266 Node MCU board can cost you around $12 it can be a great alternative which is cheaper if you are just using few GPIOs. For programming you can use and pretty much any Arduino it doesn't really matter or you can even use FTDI breakout board. I prefer this type of FTDI because it has an option for 3.3V and 5V levels all you have to do is change the jumper position. But if you wish to use an Arduino you can do so, just head over the my website link is in the video description I have mentioned more details over there. Before we can start programming you will need to make an adapter board like this one. Since the pins on this ESP01 module are not bread board friendly. Once you have your module on breadboard. Firstly, Remove The ESP01 from breakout board & now connect the Vcc & GND to 3.3V and GND, Now connect Tx of ESP01 to Rx of FTDI and Rx of ESP01 to Tx of FTDI. Now that is done connect Chip_Enable pin to 3.3V and Lastly to put this ESP01 into Programming Mode connect GPIO0 to GND. Additionally you can add a pushbutton between ground and Reset or you can do it manually later. After connecting USB cable to FTDI, Now open the Arduino IDE, select the Port of your FTDI before doing so make sure to install Drivers of FTDI board. Now in the Arduino IDE select the board as Generic ESP8266. If you don’t see this board you might want to check out my previous video which shows how to install ESP8266 boards into Arduino IDE. Now open the Blink Example under ESP8266. And now all you have to do is upload the code. After a hitting upload it will show connecting and then it will start uploading the code. Once the uploading is done, remove the GND wire from GPIO 0 and reset the ESp01 using pushbutton. This will put the ESP01 into mode where it will run the code we just uploaded. Now connect an LED between GPIO2 and GND and if you did Everything correctly LED will start blinking. So that is how you program ESP01 So for programming ESP01 you have to follow these steps every time and it can be confusing as well as time consuming so I created this Schematic using Easy EDA and converted it into PCB layout. And ordered my PCB from JLCPCB.com who are also the sponsor of this video. They are truly amazing company you can order 5 PCBs only for a price tag of $2 for 2 layer PCB and if you need an SMD stencil for your project you can add it along side with your order for only $7 they not only provide PCB service for 2 layer PCB but also for 4 layers and 6 Layers PCB as well. Now they have even started PCB assembly Service which can be very convenient if you work with a lot of SMD components. So check out JLCPCB link is in the video description Once I received my PCBs I just had to solder all the components which included Female headers, a pushbutton, one 10Kohm resistor and a switch. Now to program ESP01 using this board all you have to do is first insert the ESp01 Module like this and then connect the FTDI breakout board and now just flip the switch switch to put the ESP01 into programming mode then upload the code using Arduino IDE and once that is done flip the switch again to come out of programming mode Now press reset once and there you go it works! And you can use this board as many time as you want. And now its very simple to program your very own ESP01 Module. So that’s pretty much it for this video guys I hope you enjoyed this video, If you need any more information about this video then you can head over to my website Link is in the video description and as usual dont forget to like this video, share this video with your friends and subscribe for more awesome content like this and I will see you guys in the next video!
Info
Channel: NematicsLab
Views: 108,430
Rating: undefined out of 5
Keywords: Electronics, Robotics, How, to, DIY, Basics, Arduino, Project, using, signal, resistor, capacitor, cmos, do it yourself, Easy, Nematic, NematicsLab
Id: FbHiz3O6JYk
Channel Id: undefined
Length: 6min 4sec (364 seconds)
Published: Fri Dec 25 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.