Friday, October 21, 2016
How to program Nodemcu with Arduino IDE
How to program Nodemcu with Arduino IDE
Hello friends , today we are going to see how to use Arduino IDE to program NodeMCU it is very intresting , let us see...
In order to use this Nodemcu with Arduino IDE you should install Arduino IDE from the Website Arduino.cc
Firstly open the Arduino IDE
Go to files and click on the preference in the Arduino IDE
Go to files and click on the preference in the Arduino IDE
copy the below code in the Additional boards Manager
http://arduino.esp8266.com/stable/package_esp8266c...
click OK to close the preference Tab.
http://arduino.esp8266.com/stable/package_esp8266c...
click OK to close the preference Tab.
After completing the above steps , go to Tools and board, and then select board Manager
Navigate to esp8266 by esp8266 community and install the software for Arduino.
Once all the above process been completed we are read to program our esp8266 with Arduino IDE.
Once all the above process been completed we are read to program our esp8266 with Arduino IDE.
For this example I have used NodeMCU esp8266 and if you are using any other vendor wifi chips or generic wifi module please check with the esp8266 Pin mapping which is very essential to make things works.
The reason why I used D7 pin for this example is , I uploaded the basic blink program that comes with the examples program in the arduino IDE which is connected with 13 pin of arduino. The 13th pin is mapped into D7 pin of NodeMCU.
go to board and select the type of esp8266 you are using. and select the correct COM port to run the program on your esp8266 device.
The reason why I used D7 pin for this example is , I uploaded the basic blink program that comes with the examples program in the arduino IDE which is connected with 13 pin of arduino. The 13th pin is mapped into D7 pin of NodeMCU.
go to board and select the type of esp8266 you are using. and select the correct COM port to run the program on your esp8266 device.
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
upload the program and see the results....
Welldone... its the time to play with it... carry on...
Available link for download