How to program esp8266 Nodemcu using Arduino ide

Spread the love

Espressif is one of the leading company who mainly deals in Wi-Fi enabled microcontrollers. Their popular development boards are ESP8266 Nodemcu, ESP32, and ESP01. These tinny little powerful beast have onboard Wi-Fi connectivity. Which makes it a perfect device for IoT projects. These boars are very cheap which makes it perfect for esp8266 projects.

We can program any ESP board using the Arduino IDE. We already know how to install and setup the Arduino IDE here we focus on programing of esp8266 Nodemcu.

Material Required

ESP8266 Nodemcu1
USB 2.01
Arduino IDE

Esp8266 Nodemcu board integration

ESP launch after Arduino so Arduino IDE doesn’t have pre-installed esp Boards. And second reason Arduino and ESP are two different companies that’s why they Can’t provide software with pre-installed ESP boards.

The good news is Installation of esp8266 Arduino IDE is very simple.

  • The First Step is to add the ESP board in Arduino IDE. For that open Arduino IDE File,>Preferences a new window will pop up.
espressif inc
  • Copy the following command and paste in the Additional board manager URLs column. Then click on ok. This is the address from where Arduino will download the board files.
esp8266 arduino ide
  • The next Step is to Add ESP board. for that go to tools > Board and the first option is Boards Manager.
esp8266 tutorial
  • In Search bar type ESP8266 and install the first option. Select esp8266 by ESP8266 Community in my case(version 2.6.3). This will download and install all the available boards of ESP. After this, you are ready to program the ESP board.
nodemcu boards manager

ESP8266 programming

We will upload the blink code on esp to verify esp8266 programming.

  • Open example code of Arduino Blink or copy the following Code and paste in Arduino IDE.
void setup()
void loop()
digitalWrite(LED_BUILTIN, HIGH); 
digitalWrite(LED_BUILTIN, LOW); 
  • We are using esp8266-12e nodemcu board. So go to Tools>Board>NodeMCU 1.0 (Esp-12E Module). Then select the COM port and upload the code.
esp8266 nodemcu

Check the ESP8266 pin-out and connect a led to pin no 13. Also a onboard blue led is connected to pin no. 13 which start blinking.

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *