How to set up Arduino IDE for ESP8266: Step by Step Guide.

Configure Arduino IDE for ESP8266

How to set up Arduino IDE for ESP8266: Step by Step Guide Cover Image.
Image by manseok Kim from Pixabay 

ESP8266 community creates an ESP8266 core for Arduino, let ESP8266 take advantage of the Arduino environment. It allows the maker to use existing Arduino libraries and functions run on the ESP8266 without other microcontrollers, which means the maker can code using the Arduino IDE and utilize ESP8266's features.

Before Started:

Latest Arduino IDE must install on your computer. If you haven't installed or on the older one, you can download the Arduino IDE on the official website.

Let's Begin:

I'm using macOS, so all my demonstrations will be in this operating system.

  1. Open the Arduino IDE.
  2. Go to Arduino > Preferences.
    On Arduino IDE, Go to Arduino and click Preferences.
    On Arduino IDE, Go to Arduino and click Preferences.

  3. Copy this URL
    "http://arduino.esp8266.com/stable/package_esp8266com_index.json".
  4. Paste into the Additional Boards Manager URLs column.
  5. Click the "OK" button.
    In Preferences, paste the URL to Additional Boards Manager URLs column.
    In Preferences, paste the URL to Additional Boards Manager URLs column.

  6. Go to Tools > Broad > Boards Manager.

    Go to Tools, hover to Board and click Boards Manager.
    Go to Tools, hover to Board and click Boards Manager.

  7. Type "esp8266" in the search column.
  8. Once the search result return, select the first "esp8266" result and click the "Install" button.
    Type "ESP8266" on the search column, select the first result and click install button.
    Type "ESP8266" on the search column, select the first result and click install button.

  9. The installation should take a few minutes. Go to Tools > Board > ESP8266 Boards, select "Generic ESP8266 Module".
    Go to Tools, hover to Board, then hover to ESP8266 Boards, select Generic ESP8266 Module.
    Go to Tools, hover to Board, then hover to ESP8266 Boards, select Generic ESP8266 Module.

  10. That's all.

After, you can start writing code and upload the code to the ESP8266.

Wire Up and Upload Sketch

ESP-01 USB Programmer
ESP-01 USB Programmer
ESP-01S(ESP8266)(ESP8266-01)
ESP-01S(ESP8266)
ESP-01S plug-in to ESP-01 USB Programmer.
ESP-01S plug-in to ESP-01 USB Programmer.

For my convenience, I use ESP-01S as an ESP8266 example and ESP-01 USB Programmer as a helper to upload the code to ESP-01S. 

P.S. don't forget to download and install CH340 Driver for ESP-01 USB Programmer.  

The sample code tries to print a few texts on the serial monitor; the setup function will print "Hello, World!" on the initial, the loop function will keep print my blog website address every 5 minutes.

Upload Arduino Sketch
Upload Arduino Sketch

Click the upload button, then wait until it is complete.

Click the Serial Monitor button.
Click the Serial Monitor button.
Serial Monitor shows Hello,World.
Serial Monitor shows Hello,World.
Serial Monitor shows my blog address.
Serial Monitor shows my blog address.

Click the Serial Monitor button in the Arduino IDE; all the pre-coded messages will show here.

Next Post Previous Post
No Comment
Add Comment
comment url