Thursday, May 14, 2015

ESP8266 Firmware Update with Arduino Board



ESP8266 Firmware Update with Arduino Board


The ESP8266 module is a cheap Wireless module.It has SOC(system on chip) that can handle TCP protocols. By default, these modules come with an AT command processor and can act as a serial to WiFi bridge. There is lots of info on the web about this module.



Some Application need to flash firmware.

So,I try to update firmware with Arduino Board.


Hardware

  1. ESP8266 WiFi Module ( we use ESP-01 )
  2. Arduino UNO Board
  3. Logic Level converter
and some jumper cable.



Wiring Diagram

Normal Arduino is 5V supply must use level converter. 



If use Arduino 3.3v ,so don't need level converter.



Software 
  1. Arduino IDE with Set upload mode code
  2. ESP Flash Download Tool V0.9.3.1
  3. Firmware bin file ( xxx.bin )


Arduino IDE 1.x.x and Set Upload Mode code



 Arduino Code for Set ESP8266 Upload Mode

     int ch_pd = 3;
     int io0 = 2;

     void setup() {
       pinMode(ch_pd, OUTPUT);
       pinMode(io0, OUTPUT);
       digitalWrite(io0,LOW);
       digitalWrite(ch_pd, LOW);
       delay(1000);
       digitalWrite(ch_pd, HIGH);
     }

     void loop()
     {
      
     }




ESP Flash Download Tool



Download link




Reference

http://www.thaieasyelec.com/



ESP Flash Download tool

Download link