NodeMCU Development Board is not a plug-and-play device, so we need to install the driver on the computer before it can be used.
Preparing to Install the Driver
Before installing the ESP8266-NodeMCU driver, please ensure that your computer is connected to the internet. Also, prepare the NodeMCU and USB data cable for installation.
 Open the Driver Installation Program
Open the Driver Installation Program



 The Driver Installation is Complete
The Driver Installation is Complete

 Connect the ESP8266-NodeMCU Development Board to the Computer
Connect the ESP8266-NodeMCU Development Board to the Computer
 
 
 Open the Device Manager
Open the Device Manager
 
 
 Check the NodeMCU connection port
Check the NodeMCU connection port
 
 
To use the Arduino IDE with the NodeMCU development board, you first need to configure the Arduino IDE.The following will introduce the configuration process and test whether the built-in blink example program is successful.
Preparation WorkBefore installation, please ensure that you have completed the following preparation work:
1. Use USB data cable to connect NodeMCU to the computer.
2. The NodeMCU driver has been successfully installed and can be found in the computer’s “Device Manager”.
3. The computer is connected to the internet.
4. The Arduino IDE is installed on the computer.
Open the Arduino IDE, go to File – Preferences
 
 
In the “Preferences” dialog of the Arduino IDE, find “Additional Board Manager URLs”

 
 
Open the Arduino IDE’s “Board Manager”

In the “Board Manager” search for “ESP8266”.
Install the “ESP8266” board package.
After installation, you can find the “NodeMCU” board in the Arduino IDE’s board menu.

 Configure the NodeMCU Board in the Arduino IDE
Configure the NodeMCU Board in the Arduino IDE
 
 
 Open the Blink Example Program
Open the Blink Example Program
 
 
Upload the Blink Example Program to the NodeMCU

Confirm that the LED on the NodeMCU is blinking
The upload is complete. If you see the LED on the NodeMCU blinking, it means the driver installation was successful. You can now start programming the NodeMCU with the Arduino IDE.

3γExample Program
Blink Example: A LED Blinking

Digital Read Serial Example: Check the status of the button connected to Digital I/O pin 2 in the serial monitor
