Project tutorial
AI-Thinker AI-Cloud Inside ESP8266 Update Firmware(REVIEWED)

AI-Thinker AI-Cloud Inside ESP8266 Update Firmware(REVIEWED) © MIT

This project explains how to update ESP8266 firmware to support AT commands of AI-Thinker vendor.

  • 42,342 views
  • 23 comments
  • 24 respects

Components and supplies

About this project

Required Components

1. ESP8266 – Al-Cloud Inside (Black model: Flash size 8Mbit = 1MByte )

2. Breadboard

3. Arduino UNO;

4. Wires (jumpers);

5. Laptop;

6. Patient (a lot).

About This Project

This is a review of my previous post, but with a lot of improvements. ;-)

1. Before the Firmware Update

1.1) You need to remove Arduino ATMega chip. The Arduino yellow LED should be on.

(Tip: Not use the 'trick' of linking Arduino RESET in GND ports because you can burn your ESP module. All the tests in this section keep the ESP temperature relatively low. If you can not touch the ESP due high temperature, turn off the connections immediately).

1.2) GPIO2 is not used to the firmware update.

1.3) Only VCC and CH_PD (CHip Down) must be connected at 3.3V Arduino ports.

1.4) Only GND and GPIO0 (general purpose input/ouput) must be connected at GND Arduino ports. GPIO0 in GND is to enable programming in ESP8266.

1.5) RST pin is used only to reset the ESP module. You must connect it in Arduino GND only to reset the current ESP firmare, and remove it for update the firmware. A quick 'blue blink' occurs when you connect and remove RST pin from Arduino GND.

1.6) TX with Arduino TX, and RX with Arduino RX.

2. Wiring for Firmware Update

3. Download the Software for Firmware Update

3.1) FLASH_DOWNLOAD_TOOLS_v2.4_150924 (latest version not works) (Available at: https://bbs.espressif.com/viewtopic.php?f=57&t=433&hilit=FLASH_DOWNLOAD_TOOLS_v2.4_150924)

3.2) AT_V1.1_on_ESP8266_NONOS_SDK_V1.5.4 (latest version not works) (Available at: https://www.electrodragon.com/w/File:AT_V1.1_on_ESP8266_NONOS_SDK_V1.5.4.zip)

3.3) Manufacturer firmware: ai-thinker-v1.1.1.bin. (Available at: http://wiki.aprbrother.com/wiki/Firmware_For_ESP8266)

4. Update the Firmware

4.1) Open the Flash Download Tools executable.

4.2) Set the fields as follows:

ESP8266_NONOS_SDK_V1.5.4\AT_bin\blank.bin >>> 0xFE000

ESP8266_NONOS_SDK_V1.5.4\AT_bin\esp_init_data_default.bin >>> 0xFC000

ESP8266_NONOS_SDK_V1.5.4\AT_bin\512+512\user1.1024.new.2.bin >>> 0x1000

ai-thinker-v1.1.1.bin >>> 0x0

4.3) Configure the SPI Flash settings as follows (Note: according these wikis...

https://github.com/arendst/Tasmota/issues/683

https://github.com/arendst/Tasmota/wiki/Theo's-Tasmota-Tips

https://github.com/letscontrolit/ESPEasy/issues/474

...all ESP8266 supports "DOUT" SPI MODE).

4.4) Click on START and wait until the upload be done.

4.5) Close the Flash Download Tools.

5. After Deploying the Firmware

5.1) Disconnect: RX, TX, and GPIO0 connections.

5.2) Unplug Arduino from USB port.

5.3) Reconnect the Arduino in USB port. At this step, these pins should be used:

VCC and CH_PD <---> Arduino 3.3v

GND <---> Arduino GND

RX <---> Arduino RX

TX <---> Arduino TX

5.4) Open Arduino IDE.

5.5) Choose Tools -- Board -- Generic ESP8266 Module.

5.6) Select the proper ESP settings as follows:

5.7) Open the Serial Monitor.

5.8) At this step, if you remove and connect again the CH_PD wire, you should see some characters in the serial monitor. CH_PD wire must be connected to send/receive AT messages. If you do not see any characters, something is wrong and you have to deploy the firmware again.

5.9) Test the AT commands as follows:

Final Remarks

- The baudrate for this ESP8266 model is 115200 bps.

- Remember to unplug RX, TX and GPIO0 after the firmare update. If you don't do it, you will need to redo the firmaware update again when you power off your ESP8266.

Schematics

Fritzing schematic
esp_esquematico_mUUSzSMso3.fzz

Comments

Similar projects you might like

ESP8266 ESP-01 Webserver

by Robin Kanattu Thomas

  • 122,461 views
  • 22 comments
  • 163 respects

Telegram Bot with ESP8266

Project tutorial by Shebin Jose Jacob

  • 38,821 views
  • 44 comments
  • 75 respects

ESP8266 + L298N Motor Drive + Smartphone

by luciorocha

  • 24,423 views
  • 11 comments
  • 33 respects

Connect to Blynk using ESP8266 as Arduino Uno wifi shield

Project tutorial by Nolan Mathews

  • 85,754 views
  • 12 comments
  • 63 respects

Control Arduino Uno Using ESP8266 WiFi Module and Blynk App

Project tutorial by Adithya TG

  • 43,699 views
  • 13 comments
  • 44 respects

The Cheapest ESP8266 Programmer!

Project tutorial by Gustavo Reynaga

  • 4,540 views
  • 0 comments
  • 15 respects
Add projectSign up / Login