Introduction: NODE MCU-BASIC(Testing the Wi-Fi Module)
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.
Step 1: Components Required:
- Node MCU ESP8266 IoT micro-controller
- Arduino IDE
- 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)
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:
Follow the steps below:
open the Arduino IDE and choose File -> Preferences
Copy and paste the below URL in " Additional boards manager URLs: "
click " OK " and close that preferences window.
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):
(follow this method if you cannot add the library using method 1)
click the link -> https://github.com/esp8266/Arduino/archive/master...
open Sketch ->Libraries ->Add zip library
a new window will popup
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
-> Tools -> Boards -> NodeMCU 1.0(ESP-12E Module)
Download and open the code I have attached.
-> Tools -> Port-> select corresponding port
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.
Just turn ON your hot spot in your mobile phone and see the WiFi networks that are available nearby.
Open serial monitor (Magnifier button in top right corner in Arduino IDE)
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.