Setup NodeMCU Board on Arduino IDE
Step 1: Parts & Tools
Parts
NodeMCU
USB cable
Tools
Arduino IDE
If you don't download Arduino IDE First download it from the following link according to your OS from the following link--
https://www.arduino.cc/en/Main/Donate
Step 2: Setup Arduino IDE for NodeMCU
1.Open it & click on
2. File--> preference( Figure-1)
3. After click on preference window will appear
4. In this window in additional board manager URLs(Figure2- Figure-3 )
5. Copy this link
http://arduino.esp8266.com/stable/package_esp8266com_index.json
6. And click on OK.
7. Go to
Tools--> Board--> BoardManager( Figure 4)
8. In this window in search box type ESP8266(Figure-5 )
9. And install it
10. After installing go to
11. Tools--> Board-->NodeMCU 1.0 12E(Figure -6 )
Step 3: Check Your NodeMCU
For Check the NodeMCU
Connect your NodeMCu with laptop or PC via USB cable
Open your ArduinoIDE
Go To
Tools-->port
And select the port
Step 4: Code(Upload the Following for Check the NodeMCU With Blinking of Inbuilt LED on D0)
( See in Figure-8)
int LED = D0;
void setup(){
Serial.begin(115200);
pinMode(LED,OUTPUT);
}
void loop(){
digitalWrite(LED,HIGH);
delay(1000);
digitalWrite(LED,LOW);
delay(800);
digitalWrite(LED,HIGH);
delay(600);
digitalWrite(LED,LOW);
delay(400);
digitalWrite(LED,HIGH);
delay(200);
digitalWrite(LED,LOW);
}
figure 1
figure 2
figure 3
figure 4
figure 5
Figure 6
figure 7
fidure 8