KEY TAKEAWAYS
- The Arduino IDE can program ESP8266/NodeMCU boards after adding the ESP8266 board manager URL
- Install the ESP8266 board package from the Boards Manager to get board definitions and libraries
- Select the correct board (NodeMCU 1.0) and port before uploading sketches
- Most Arduino libraries work with ESP8266, plus it adds WiFi and web server capabilities
NodeMCU is Lua based firmware of ESP8266. Generally, ESPlorer IDE is referred for writing Lua scripts for NodeMCU. It requires to get familiar with ESPlorer IDE and Lua scripting language. There is another way of developing NodeMCU with a well-known IDE i.e. Arduino IDE. We can also develop NodeMCU applications using Arduino development environment. This makes things easy for Arduino developers than learning new language and IDE for NodeMCU.
Let’s see about setting up NodeMCU with Arduino IDE . This is the first part of a tutorial series on NodeMCU. In this post I’ll show you how to install the NodeMCU and ESP boards.
Prerequisites: Install Arduino IDE
First Download Arduino IDE (version 1.6+) from the below link and install it
https://www.arduino.cc/en/Main/Software
Now that Arduino is installed, let’s move on to install the ESP boards manager.Install ESP boards in Arduino
NodeMCU is based on the ESP8266 WiFi module. Hence, to program NodeMCU in the Arduino IDE, we need to install the ESP board manager.
- Open Arduino IDE
- Go to File -> Preferences

- Now on Preference window, Enter below link in Additional Boards Manager URLs:
http://arduino.esp8266.com/stable/package_esp8266com_index.json

- Now close Preference window and go to Tools -> Board -> Boards Manager

- In Boards Manager window, type “esp” in the search box, esp8266 will be listed there below. Now select latest version of board and click on install.


- Once installation is complete, you can see the “Installed” as shown below:

It’s now time to test the board.Testing the NodeMCU installation

- Click on Upload
If the program uploads successfully, it means that the NodeMCU is installed properly. The program won’t do anything as we have not written any instructions. We are just checking the installation.
Once installed successfully, you might be interested in learning and trying out few NodeMCU projectsHow to Connect NodeMCU to AWS IoT Core – NerdyElectronicshttps://nerdyelectronics.com/esp8266-spiffs-file-system/

Vivek Bhageria — Lead Firmware R&D Engineer, 12+ years. Ex-Bosch (automotive powertrain), MusicTribe (real-time audio), medical devices. M.Tech BITS Pilani. I write at NerdyElectronics — practical, register-level embedded systems for engineers who want to understand what’s actually happening under the hood.








