Arduino Tutorials

Programming your ESP8266 with the Arduino IDE

NodeMCU Amica ESP8266

The board NodeMCU EPS8266* is a real asset for your projects. With it you push the door to the Internet of Things wide open! Best of all, you can easily program it with your Arduino IDE – just like your Arduino boards. But you have to make some preparations for this.

Learn here how to install your EPS8266 in your Arduino IDE in 5 minutes and then start programming.

Install your ESP8266 in the Arduino IDE

First open the settings of your Arduino IDE. There you will find the field Additional Boards Manager URLs. Enter the following address here:
Enter the board manager URL in the Arduino IDE
Enter the URL for your ESP8266 board here

Tip: If you have already entered the URL of your ESP32 there, simply write the URL of ESP8266 after it, separated by a comma. Then you have both in the Arduino IDE.

Now close the window with a click on OK. Next, open the Toolsmenu and select the menu item Boards and then Boards Manager.

In the window that now opens, search for ESP8266. Scroll down a bit until you find the entry ESP8266 by ESP8266 Community. One more click on Install, wait a moment and that should be it. 🙂

Install the package for your ESP8266
Install the package for your ESP8266

Note: If you have problems uploading your sketches using the ESP8266 in the Arduino IDE, try installing an earlier version of the board.

Upload a sketch to the ESP8266

Now you can go ahead and load your first sketch onto the ESP8266. You’ve probably seen the permanently installed LED on an Arduino blinking – it works on your ESP8266, too.

So create a new sketch with the following code:

Blinkende LED

#define LED D0

void setup() {
 pinMode(LED, OUTPUT);

void loop() {
 digitalWrite(LED, LOW);
 digitalWrite(LED, HIGH);

Now connect your ESP8266 to the USB port of your computer. Select the Tools item in the menu again, and under Boards select NodeMCU 1.0 and the port to which your ESP8266 is connected.

Now upload the sketch. When everything has worked, the onboard LED flashes every half second.

But what is an ESP8266 without Internet? In this tutorial you will learn how to connect your microcontroller to your Wi-Fi.

Exciting ESP8266 projects

Time for a little more Internet of Things? Here are some exciting projects you can do with your ESP8266:

You may also like

Comments are closed.