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.
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.
4.Then click Download button to flash the Firmware into it.
5. To check the module connect it to Arduino in serial as given below.
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.
THANKYOU
SHARE THIS!!!
4 Comments
vce
(February 21, 2018 - 8:25 am)This is good. Thanks!
Gowtham S
(February 21, 2018 - 4:05 pm)Thank you!!!
zgirls hack
(February 25, 2018 - 5:18 am)I must say, as a lot as I enjoyed reading what you had to say, I couldnt help but lose interest after a while.
Little Snitch
(March 15, 2018 - 10:09 pm)I like this site because so much useful stuff on here