Starting up with NodeMCU in Arduino IDE

INTRODUCTION

          Node MCU is an open source Firmware kit which is used to develop IOT projects, which has ESP8266 Wi-Fi as SoC. It is an Arduino like hardware IO, which has GPIO, ADC, PWM and I2c in a single board. Programming of Node MCU is similar to the Arduino, but interactively in Lua script.

          Lu is an Embeddable lightweight scripting language which supports procedural programming. The only difference between Node MCU board and Arduino is pin distribution. Node MCU makes easy to work in IOT technology, especially for Arduino workers.

HARDWARE SETUP

  • Connect Node MCU with PC using Micro USB Cable
  • Go to device manager, locate COM port. If it shows the warning symbol on the COM port, right click on the COM port, click update driver and choose “Search automatically for updated driver software”. Let it to download driver for the Node MCU. If there is no warning symbol on driver, Skip this step.
  • Now driver is successfully installed in that Pc/Laptop

ESP8266 BOARD INSTALLATION FOR ARDUINO IDE

  • Open Arduino IDE
  • Select File and choose Preferences
http://arduino.esp8266.com/stable/package_esp8266com_index.json
(It is the link, which contains esp8266 board packages for Arduino IDE)
  • Copy the above link
  • Paste in Additional Board Manager URLs
  • Click OK
  • Now go to Tools – Board – Board Manager
  • In Board Manager, Scroll down to the end of the window
  • Now esp8266 by ESP8266 Community is available
  • Click that package and click install by selecting latest version
  • Wait for some times; let it to complete the installation
  • Now it shows installed message
  • Now ESP8266 board is successfully installed for Arduino IDE
  • Close this window
  • Go to Tools – Board – select NodeMCU 1.0 (ESP 12E Module) for Programming the Node MCU using Arduino IDE
  • Now select the correct COM port of your NodeMCU, if it shows more COM port in the port category, go to device manager and plug and observe the changes when plugging and unplugging the NodeMCU from PC/laptop or COM Port shows with Silicon Labs
  • Choose that NodeMCU COM port in Port option in Arduino IDE
  • That’s it everything is ready to program Node MCU using Arduino IDE
  • Now type and save the program
  • Compile the program by  clicking Compile option in Arduino IDE
  • Observe Done Compiling message below
  • Before uploading the program, press Reset key and Flash in NodeMCU
  • Now click upload option in Arduino IDE
  • After some time, it can be observed that uploading step by step of Percentage as shown below.
  • Now output can be seen in Hardware
Pantech:
Leave a Comment

This website uses cookies.