Language: EN

programar-esp8266-con-el-ide-de-arduino

How to program ESP8266 with Arduino IDE

We have several entries in the series on the ESP8266 presenting the popular SoC and the development boards that incorporate it. In this entry, we will see how to program the ESP8266 with the Arduino IDE.

Undoubtedly, being able to use the Arduino environment and all the tools it allows (IDEs, libraries, documentation…) has been a large part of the success of the ESP8266. A success that is largely due to the community and, later, has partial support from the manufacturer Espressif.

In this entry, we will see how to configure the standard Arduino IDE to program the ESP8266 and the boards based on this popular SoC, such as the usual NodeMCU and Wemos. Although we can also use any other compatible IDE like Arduino, Visual Studio Code, or Atom.

Install ESP8266 in Arduino IDE

Currently, configuring the Arduino environment to work with ESP8266 development boards is very simple, thanks to the support it has received from the community, which makes it available as a package that we can download and add to the board manager.

To program the development boards based on the ESP8266, we simply need to configure the package URL so that we can add them to the board manager of the Arduino IDE.

To do this, we access the configuration menu and in “Additional board manager URLs” we click on the small button on the right.

programar-esp8266-arduino-ide-configuracion

In the window that appears, we add the following URL.

http://arduino.esp8266.com/stable/package_esp8266com_index.json

If we had other addresses, we leave each one of them on a new line.

programar-esp8266-arduino-ide-urls-adicionales

Now we enter the board manager of the Arduino IDE.

programar-esp8266-arduino-ide-elegir-placa

We search for the package of development boards based on the ESP8266 and install it.

programar-esp8266-arduino-ide-gestor-placas

We now have the development boards based on the ESP8266 available to program them with the Arduino IDE. It’s that easy!

programar-esp8266-arduino-ide-placas