How to Program NodeMCU with Arduino IDE

Learn how to Program NodeMCU with Arduino IDE. You just need to install the board and connect it to the computer for programming it. We are using the Blink LED program as a sample program.

Step 1: Required Components

NodeMCU x 1
Arduino IDE
Breadboard (optional)
Jumper WiresLED (for Blink LED Program)

Step 2: Installing Board to Arduino IDE

First, install NodeMCU Board to Arduino IDE. If you have already installed the board to boards manager of Arduino IDE, skip this step else follow the steps

  1. Start the Arduino IDE
  2. Go to File > Preferences
  3. Add the below-given link to Additional Boards Manager URLs
  4. Go to Tools > Boards > Boards Manager…
  5. Search ESP8266ESP8266 in Arduino Boards Manager
  6. Click the Install button to install the NodeMCU Board to Boards Manager
  7. Now close the Boards Manager window and select the NodeMCU 1.0 (ESP-12E Module) from the board selection listSelection of NodeMCU as board in Arduino IDE
  8. The installation of NodeMCU in Arduino IDE is done.



Step 3: Program NodeMCU using Arduino IDE

Now you can connect NodeMCU to your computer. Select the proper board (NodeMCU 1.0). Sample program for Blink LED is as below




After the Arduino IDE shows done uploading of the Blink LED program, connect the LED to the D4 Pin of NodeMCU (also known as GPIO_2 Pin). Please do not connect the LED before or at the time of uploading the program, it can cause some issues in uploading the program.

Leave a Reply