Introduction: NODE MCU-BASIC(Testing the Wi-Fi Module)

About: The lost creator

Hi guys,
In this instructable, lets do the initial setup of the Node MCU-ESP8266.
This is a 32-Bit micro controller having 4 MB of flash memory and clock speed of 80 MHz.

CLICK HERE TO VIEW THE COMPLETE DATASHEET AND SPECIFICATIONS OF NODE MCU

Step 1: Components Required:

  1. Node MCU ESP8266 IoT micro-controller
  2. Arduino IDE
  3. Micro-USB cable (the normal one)


if you don't have ARDUINO IDE
download if from the below links corresponding to the OS you use:-

-> WINDOWS ZIP VERSION (Recomended)

->WINDOWS STORE VERSION (for 8.1 and UP)
->MAC VERSION
->LINUX 32 BIT VERSION
->LINUX 64 BIT VERSION
->LINUX ARM 32 BIT VERSION
->LINUX ARM 64 BIT VERSION

CHECK OUT OUR BLOG ON "HOW TO INSTALL KALI LINUX ON WINDOWS DEVICE" (in case if you are interested in Linux)

Step 2: Installing the Necessary Library (method 1):

In order to use Arduino IDE to program the NodeMCU , we have to add a library to the Arduino IDE

There are Two methods to do this:


METHOD 1:
Follow the steps below:

Step 1:
open the Arduino IDE and choose File -> Preferences

Step 2:

Copy and paste the below URL in " Additional boards manager URLs: "

http://arduino.esp8266.com/stable/package_esp8266...

click " OK " and close that preferences window.

Step 3:
Open:- Tools-> Boards -> Boards Manager -> click Install -> Close.

Now you can see Node MCU in the Boards menu.

Step 3: Installing the Necessary Library (method 2):

METHOD 2:

(follow this method if you cannot add the library using method 1)

Step 1:

click the link -> https://github.com/esp8266/Arduino/archive/master...

a zip file will be downloaded.

Step 2:

open Sketch ->Libraries ->Add zip library

a new window will popup

Step 3:
search for the downloaded library and click open.
The library will be added.

Step 4: Getting Started

Plug in the NodeMCU to your PC using the Cable.
Open Arduino IDE
Step 1:

Go to:-

-> Tools -> Boards -> NodeMCU 1.0(ESP-12E Module)

Step 2:

Download and open the code I have attached.

Step 3:

Go to:-

-> Tools -> Port-> select corresponding port

Step 4:

Click the upload button(Right side pointing arrow on top left corner).

Wait for the code to Compile and upload to your board.

Step 5: See It Work

So.. the code I have attached is used to scan all the WiFi hot-spots around you.

Step 1:

Just turn ON your hot spot in your mobile phone and see the WiFi networks that are available nearby.

Step 2:

Open serial monitor (Magnifier button in top right corner in Arduino IDE)

Step 3:

Select baud rate as 115200 from the drop down box below.(Do it if it is not set automatically)

(NOTE:use this Baud rate of 115200 only for this program, Baud rate depends on the nature of device you use or the rate you define in the 'void setup()' section of your code )

Now you will be able to see the available WiFi networks.
That's It 💥

you can refer to File-> Examples in Arduino IDE for more examples codes and check using your board.