ESP 8266 -01 FirmWare Upgrade & BaudRate setting

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello all this video is on using esp826601 module and let us see how to upgrade the firmware on this esp8266 the acquired smd ic is seen on this board and nearby you can see an 8 pin ic smd ic this is sba flash 25qf08 this one megabyte capacity ram which is equal to 8 mega bits eight megabit is equal to one mega byte and to the bottom you can see 26 megahertz on board crystal and uh antenna for this antenna is pcb antenna it has got totally eight pins in two rows you can easily plug the esp826601 module on a baseboard like this this baseboard has got a reset switch and a jumper for gpu to make it ground and you can directly give 5 volt to this on board there is 3.3 volt regulator and for rx pin there is a level shifter as such esp8266 is 3.3 volt level device this is esp12e module an advanced version of esp826601 this has got more number of gpu pins and the node mcu is built on this esp-12e in this video we'll see how to use the esp826601 module the zero one module uh it has got eight pins in two rows but the spins are not breadboard compatible so you you cannot plug it on to breadboard let us see the pins of esp826601 to the right top is the vcc pin which should be connected to 3.3 volt never give 5 volt as esp8266 is a 3.3 volt device to the bottom is the rst pin this is reset pin generally it is pulled high to 3.3 volt through a resistor of value 4k 7 to the bottom is connected the reset switch to ground so when you press this reset switch ground is applied to rst and the module will reset otherwise it is pulled up to 3.3 volt but to the bottom is chpd pin which is chip power down pin this is directly pulled up to 3.3 volt no resistor is required at the bottom is tx pin the fourth pin is tx pin which is uart transmit pin generally it is connected to a microcontroller like arduino or pic or 8051 we will connect it to rx pin of the microcontroller the tx level is at 3.3 volt but you can connect directly to 5v level of any microcontroller so in no level shifter is required at the tx pin of esp8266 the left side top in his rx pin the rx pin goes to tx of any microcontroller for while communicating but this rx level is it receives only 3.3 volt level but the microcontroller will be having five volt level so always use a level shifter like this a one k in series and two k two to ground while connecting to rx pin of esp8266 this level shifter is a must the next pin is gpio0 this gpu pin is ground connected to ground when esp is put into programming mode when you connect gpu 0 to ground esp8266 enters programming mode the next pin is the gpu-2 which is the only gpu pin available for connecting any sensors usb to ttl device is generally required for programming this esp8266 module so this is ftdi a usb to ttl board there is a level shifter on board so you can connect the jumper to make it 3.3 volt device so this can be used with this type of baseboard for programming esp82660 but in this video we'll be using arduino you know for programming purpose as arduino you know has got a 3.3 volt supply on board you can usually connect this 3.3 volt to esp826601 let us see how to use arduino you know to program this esp826601 there is a tx rx pins on arduino and we'll be connecting reset to ground so that the bootloader of arduino is bypassed and the rx and dx of arduino is connected directly to esp8266 uart pins there is no reverse connection direct connection now let us connect the 3.3 volt and ground to the breadboard top rails and connect the reset pin of audi node to ground there is a reset pin near the 3.3 volt pin you connect this by a male to male jumper to ground so this will bypass the arduino bootloader so we'll be using only the uart function of the arduino you know so in this eight esp8266 the right side top pin is 3.3 volt and the bottom fourth pin is on the bottom left side four pin is ground let us connect it to the power supply 3.3 volt and ground the next is rst let us use a 4k 7 resistor to pull up to 3.3 volt and use a reset switch like this out of this four pin only two pins is used as reset there is one pin is connected to rst other pin is connected to ground so when you press this reset switch esp8266 will get a reset the next pin is chpd chip pull down that pin is connected to 3.3 volt directly no resistor is required you have to pull it up directly to 3.3 volt that is the third pin and tx and rx pins let us connect a female to male pin before that gpu 0 the left hand side second pin is gpu 0 let us connect a female to male pin so when programming is done we'll be connecting this gpu 0 to ground generally this rx is connected to tx of any microcontroller and tx is connected to rx of microcontroller but in this mode we are using arduino for as only the uart of arduino we are using so we will be connecting direct rx to rx and tx2 tx don't get confused this is straight connection as we are using uh we are bypassing by a bootloader and using only the uart so that white wire we have connected to rx so connected to rx of arduino and the grey wire to tx of arduino tx2tx rx2rx destroyed connection to vcc let us connect an led through a resistor this is for power indication now plug in uh the usb to arduino usb of your laptop to arduino now you can see the power led on on the esp8266 as well as on the arduino now you can press the reset switch and see the reset condition of esp8266 a blue led will blink when you press the reset switch now connect the gpu 0 to ground to make esp8266 enter into programming mode after this you just press the reset switch again now esp826601 has entered the programming mode now open the device manager and under ports you'll see the arduino you know com port number is allotted not on this port number now let us download the firmware to upgrade that is a bin file you can get it from two websites that is a thinker one website is there another one is yes espressif let us use the a thinker website go to documents scroll down click on wi-fi module series and then esp8266 and click various 80 firmware there you'll see a list of fimbas that is for mqtt and cloud that are all not required here you click on factory default at fimber and download the d out firmware and for flashing we'll be using a simple flasher that link is also given in the description below you can download the simple flasher esp8266 flasher unzip the downloaded files the bin file if you unzip it you'll see two two folders one is eight megabit folder and the next one is 32 megabit notice that it is mentioned as bits so 8 megabit version means one megabyte ram so we will be using 8 m bit version of firmware and the flasher we will be using the simple flasher open the double click the esp8266 downloader and from uh device manager uh we have noticed that the com port is 16 here so feed in com16 and then click on bin and browse to the location of the firmware we have downloaded we are using 8 megabit version so select that bin file and then click on download at the first item you may get a file to connect again you click on download it'll start erasing the flash it will show the percentage of writing uh to flash and the blue led on esp826601 will flash accordingly and after some time you will get up to 99 percent only it will not go up to 100 finally it will show fail to release but it is ok condition now firmware is upgraded now remove the gpu 0 ground condition and then press reset you have to remove the connection gpu zero from ground we'll be using a cool term terminal software for testing the at commands same arduino you know com port will be using open the cool term and then click on options and select the com port as com 16 that is the one allotted to arduino you know and border it is 9600 click on connect you will see some garbage so the baud rate is not correct so select options again and select baud rate 115 200. so the default baud rate is 115 200 for the bin file we have upgraded now click on reset you will get a ready now type in 80 the module will respond with ok type in 80 plus gmr to get the version number of the firmware and at plus rst will give a reset now you can notice the sp flash size it is mentioned as 8 mega bit which is equal to 1 mb so the flash ram is you can get the size of the flash drum by using 80 plus rst this is one megabyte that is 8 mega bit ram on the esp826601 now click on clear data to clear the data on the screen and type in at plus cw mode and a question question mark this will written as cw mode is true there are actually three modes one is ap mode second is station mode we'll make it to s a t plus c w mode equal to three which will make the model uh operate in both that is lacked as a station as well as access point now you can give this command a t plus c w l a p which will list the surrounding access points so this will work only when cw mode is equal to 3 it will search for the surrounding access points and it'll list out you can join with the any access point by this command a t plus cw join ap equal to in double quotes you have to provide the ssid name and then the password if the ssid credentials are correct you will get a connections otherwise you will get wi-fi disconnect so there is also another command a t plus c w jp underscore def underscore def is for uh credentials written to flash and a t a plus c w g a ap underscore cur that is for current 80 commands df will return the credentials written to flash and the cur for current there is a 80 command list there is a huge list of 80 commands the description is given below you can check out all the 80 commands in the pdf file there are basic 80 commands networking commands server commands there is a whole list of 80 commands you can try this one by one remember always use cit commands while communicating with another microcontroller there is also a t command for auto connect 80 plus cw auto call will return one which is uh actually which will auto connect to ssid when power is on and off 80 plus restore will restore to factory condition including the baud rate now to change the baud rate use the command 80 plus cio board equal to 9600 current baud rate is 115 200 we have changed it to 9600 so this terminal will not respond go to options change the baud rate to 9600 now you can type the 80 commands the baud rate has changed to 9600 you can you also use this command a t plus uart underscore def equal to 115 200 comma 8 comma 1 comma 0 comma 0 this is very important you cannot just use eleven five two hundred now the baud rate has changed to eleven five two hundred so from options i change the battery to eleven five two hundred this for uh matching the terminal to the esp8266 border it will match and you can type in the 80 commands now so instead of connecting this to arduino you know you can use the baseboard this green baseboard the link is given in the description below you can buy from there you can plug the esp826601 on this board and you can use this usb to ttl to connect with this board you can connect 5 volt to vcc and ground to ground as the board has got a 3.3 volt regulator on board you can connect this 5 volt directly and the rx to tx and tx2 rx notice the reverse connection here that is the general uh condition of connecting rx to tx this has got a level shifter at rx so you can connect directly to rx to tx and tx 2 rx there is also a jumper for uh making gpu to ground so this will enter the programming mode plug in plug this usb to ttl to your pc open device manager and note on the com port of this cp2102 so for this you you should have installed cp2102 driver and open the flash esp flasher tool and from there you can select the bin file and click on download to flash the firmware thank you for watching you
Info
Channel: Saravanan AL
Views: 57,727
Rating: undefined out of 5
Keywords:
Id: 2r8evY6-1M0
Channel Id: undefined
Length: 17min 49sec (1069 seconds)
Published: Wed Feb 24 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.