How to upload code to ESP8266-01 through Arduino board

It’s a very simple task to accomplish this and is very convenient also. So here I’m writing how to simply upload your well written code to ESP8266-01 module using any Arduino board.

_config.yml

Step 1: Installing Board to Arduino IDE

First, install ESP8266 to Arduino IDE. If you have already installed the board to boards manager of Arduino IDE, skip this step else follow the steps

arduino_ide_preferences_kHcfDP5CUm.jpg
Arduino IDE Preferences
  • Go to Tools > Boards > Boards Manager…

  • Search ESP8266

arduino_ide_preferences_kHcfDP5CUm.jpg
ESP8266 in Arduino Boards Manager
  • Click the Install button to install the ESP8266 Board

  • Now close the Boards Manager window and select the Generic ESP8266 Module from the board selection list

arduino_ide_preferences_kHcfDP5CUm.jpg
Selection of ESP8266 as board in Arduino IDE
  • Installation of ESP8266 in Arduino IDE is done.

Step 2: Circuit Connection

ESP8266 Arduino Board
Tx Tx
Rx Rx
Vcc 3.3 volt of Arduino
Gnd Gnd
CH_PD 3.3 volt of Arduino
GPIO_0 Gnd

The most important thing is to connect the RESET pin of Arduino to GND in order to bypass the Arduino board and to make it a simple intermediator. This will make you enter into the flashing mode of the ESP8266-01.

_config.yml

Step 3: Flashing ESP8266-01 using required firmware

To do this you need to choose the firmware as per your requirement as you will come to know these supports different functions. I have uploaded both flasher and the latest firmware in my drive. The link is provided below.

ai-thinker-v1.1.1

One thing to be kept in mind is to choose the right COM PORT while flashing.And if you face some problem do restart the flasher again.After flashing till 100% you will see the message ‘Failed to leave flash mode’…nothing to worry about.

_config.yml

Just close the flasher and simultaneously disconnect the Arduino board and GPIO_0 from GND.

Step 4: Program ESP8266 using Arduino

Make the circuit as per the above directions. Power up the Arduino UNO board and wait till the Arduino Board boots up successfully. (It will take around 5 seconds) . Then open the Arduino ide and simply choose the correct COM PORT and what then … just upload the program.

Written on June 3, 2018