The ESP8266 community created an add-on for the Arduino IDE that allows Arduino-like (C or C++) programming to be uploaded/flashed as software for the ESP8266 microcontroller.
This add-on enables the ESP8266 (i.e. ESP-01 boards) to be selectable as a ‘core’ under the Tools -> Board menu and will make this microcontroller compatible with the Arduino IDE. By adding the ESP8266 core to the Arduino IDE, an extensive range of libraries and sample code is also added.
For quick reference, see the YouTube video on Popcorn Electronics.
You will need
- Latest version of the Arduino IDE for your operating system.
- Internet connection with more than 150 Mb data.
This post was done using Windows 10 and the Arduino IDE Store version 1.8.5.
Additional Boards Manager URLs
Adding the ESP8266 board is similar to adding any other third party core to the Arduino IDE – by using the Boards Manager. Before doing so, the ESP8266 JSON file needs to be added to the ‘Additional Boards Manager URLs’ under Preferences (File -> Preferences).
By clicking on the folder icon next to Additional Boards Manager URLs, the Additional Boards Manager URLs popup screen will appear where multiple JSON files can be added at the same time. To add the ESP8266 core JSON file, copy and paste the link below into the space provided and choose OK. Choose OK again for the Preferences to accept the URLs.
Additional boards can be added at any time.
This will take to you back to the Arduino IDE programming screen. The ESP8266 will now be selectable from the Boards Manager (Tools -> Board -> Boards Manager).
When the Boards Manager opens, a selection of installed and available boards will be listed. Before the list is accessible, the index file has to be downloaded.
From the Arduino IDE Boards Manager, use the search bar at the top and type in
ESP8266. This will filter the options to the ‘esp8266 by ESP8266 Community’ core. Click on it, choose the desired/latest version and press Install.
Depending on the speed of your internet connection, the installation process can take several minutes to complete. After completion, press the Close button.
Choosing the ESP8266 board
After the ESP8266 core has been installed, it can be chosen as a Board form the Arduino IDE Board Menu (Tools -> Board -> ESP8266 Modules). Scrolling might be needed.
Save, share & Disqus
Comment via Disqus
More ESP8266 related posts
15 October 2018
Breadboard power supplies are easy-to-use, companion modules which provide regulated voltage to the power rails of solderless breadboards. They are both easy to use and extremely useful for fast, efficient breadboard prototyping of micro-electronic projects.
5 June 2018
UART (universal asynchronous receiver/transmitter) is a communication interface used between two microcontrollers. Data signals are transferred using two lines, one for transmitting signals (Tx) and one for receiving signals (Rx).
5 June 2018
The FTDI USB to TTL serial converter module is an UART (universal asynchronous receiver-transmitter) board used for TTL serial communication. It is a breakout board for the FTDI FT232R chip with an USB interface, can use 3.3 or 5 V DC and has Tx/Rx and other breakout points.
19 December 2017 | Updated 5 June 2018
The ESP-01 is a popular, inexpensive microcontroller board with built-in Wi-Fi. It makes use of the, now, widely used ESP8266 microcontroller chip.
12 September 2017 | Updated 4 June 2018
When compared with some other microcontroller boards (e.g. the Arduinos), the ESP8266 is slightly more complex to hook up to a serial port for programming. This post will show how to connect the ESP-01 module to a breadboard and FTDI programmer for ‘flashing’ purposes.