Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking

Hey folks, welcome to my blog. Before we go ahead let me you guys why I had written a blog on this topic because I felt that there is a huge increase in usage of wireless devices and machines. So, it’s mandatory now to improve our skills in various wireless communication techniques.

As a beginner, we can get started with the ESP8266 NodeMCU WiFi development board. We will also try to perform a small practice of LED blinking on our Node-MCU development board.

Once you observed all the basics, I assured you that you will be more familiar with Arduino software and ESP8266 NodeMCU as well. In the future, you can also try for IoT based projects using this module.

What is ESP8266 NodeMCU?

  • It is a Wi-Fi module with TCP/IP stack and microcontroller capability.
  • It can either be a host of an application or offloading all Wi-Fi networks from another application processor.
  • It can be controlled by any local internet connection.
  • It can be programmed by using Arduino/USB to TTL converter through serial communication pin (Rx/Tx).

ESP8266 NodeMCU PINOUT

Difference between ESP8266 and Node-MCU

ESP8266Node-MCU
This is a micro-controller with wi-fi capability. This module is soldered on the Node MCU development board with some additional requirements of the circuit such as boot configuration, USB connection, etc.This is an open-source firmware. Open source is a term that means codes of this software are available for everyone and also can be re-edited and modified.

Requirements:

  1. Arduino IDE
  2. ESP8266 NodeMCU Development board
  3. Micro USB Cable

Let’s get started and check out the process.

Download Arduino from the link given below and install it on your desktop and launch it.

ESP8266 NodeMCU
Arduino Website

For downloading Arduino IDE:

Click on Download Now Button mention above.

After that Go to software then downloads

ESP8266 NodeMCU pinout

Here, you can choose either windows installer downloads or zip file download

Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking

Click on “Just Download”

Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking

Connect your ESP8266 NodeMCU module to the PC in USB port.

ESP8266 NodeMCU

Open Arduino

ESP8266 NodeMCU

Go to File —> preferences —-> Additional Boards Manager’s URL —> (copy & paste this link there) https://arduino.esp8266.com/stable/package_esp8266com_index.json —> click OK

Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking

Then go to tools—> Boards—> Boards manager—> search ‘ESP8266’—> click on install

Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking

For the selection of ESP8266 board again go to tools—> boards—> ESP8266 Boards—> Generic ESP8266 module

Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking

Then we have to select port for that go to —> tools —> port —> tick the given port

Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking

For Led blink program you will use the program already available in Arduino.

Go to File—> Examples —> Basics—> Blink

ESP8266 NodeMCU

In program we have to replace 13 with 16 because according to the pin diagram of Node-MCU LED is connected on pin no.16 on which output will be seen

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin no 16 of ESP8266 NodeMCU as an output.
  pinMode(16, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(16, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(16, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

Verify your program by clicking on the icon as shown below.

esp8266 node mcu

Upload your program by clicking on icon as shown below.

Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking

Other Useful Links For You

2 thoughts on “Introduction of ESP8266 NodeMCU with Arduino IDE and LED Blinking”

  1. Pingback: Introduction Of ESP8266 NodeMCU With Arduino IDE And LED Blinking | PICTOROBO-Home Automation Brother's Technology

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.