FLASH ESP8266 WITH ARDUINO

REASONS TO AT FIRMWARE:

  • To upgrade to latest AT firmwares.
  • To upgrade to NodeMcu firmware.

PROCEDURE:

1.Remove the IC from the Arduino Uno and give connections to ESP8266-01 as give below.

flash-esp8266

ESP8266 ARDUINO UNO
VCC VCC
GND GND
TX TX
RX RX
CH_PD VCC
GPIO1 GND

2.Download the required ESP8266_flasher.exe and required AT-Firmware bin file from here.

3.Select the correct COM port to which Arduino is connect to and the bin file v0.9.2.2 AT Firmware.bin.

Screenshot (49)

4.Then click Download button to flash the Firmware into it.

Screenshot (48)

5. To check the module connect it to Arduino in serial as given below.

ESP

6. Dump the following code into arduino.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "SoftwareSerial.h"
SoftwareSerial Serial1(5,6); // RX, TX
 
 
void setup()
{
 Serial.begin(115200); // serial port used for debugging
 Serial1.begin(9600); // your ESP's baud rate might be different
}
 
void loop()
{
 if(Serial1.available()) // check if the ESP is sending a message
 {
 while(Serial1.available())
 {
 int c = Serial1.read(); // read the next character
 Serial.write((char)c); // writes data to the serial monitor
 }
 }
 
 if(Serial.available())
 {
 // wait to let all the input command in the serial buffer
 delay(10);
 
// read the input command in a string
 String cmd = "";
 while(Serial.available())
 {
 cmd += (char)Serial.read();
 }
 
// print the command and send it to the ESP
 Serial.println();
 Serial.println(cmd);
 
// send the read character to the ESP
 Serial1.print(cmd);
 }
}

7. Open the Serial Moniter and type AT, we will get OK from ESP8266. Type AT+GMR to know the Firmware version.

Screenshot (84)

THANKYOU
SHARE THIS!!!

Gowtham S

Gowtham is a programming enthusiast. His field of interest includes Arduino, NodeMCU, Raspberry Pi, and Python. To know more about him visit https://mybtechprojects.tech/about-us/.

4 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.