Getting Started with NodeMCU (ESP8266) on Arduino IDE

Getting Started with NodeMCU (ESP8266) on Arduino IDE © CC BY

A tutorial by Arduino User Group Gujarat for getting started with the NodeMCU (ESP8266) on Arduino IDE.

  • 16,753 views
  • 3 comments
  • 9 respects

Components and supplies

Apps and online services

About this project

Many people asked me to programme NodeMCU with Arduino IDE so I decided to write this guide.

Installing the NodeMCU Support for the Arduino

  • First open the Arduino IDE
  • Go to files and click on the preference in the Arduino IDE

  • Paste below URL in the Additional boards Manager

http://arduino.esp8266.com/stable/package_esp8266com_index.json

  • click OK, It will close the preference Tab.
  • Now, Go to Tools and board, and then select board Manager

  • Navigate to ESP8266 by ESP8266 community and install the software.
  • Once all the above process is completed we are ready to program our NodeMCU with Arduino IDE.
  • Now, go to Tools, board and select the type of NodeMCU you have

  • Then select the correct COM port to upload the program on your NodeMCU
  • Now Copy Paste the below programme and upload it.
  • If you did everything correctly then, your led should blink continuously.

If you have any query or issue please comment below.

Code

Blink Inbuilt LED of NODEMCUC/C++
Example code for Blinking Inbuilt LED of NODEMCU
void setup() {   
  // initialize inbuilt LED pin as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on by making the pin 13 HIGH
  delay(500);              // wait for a 0.5 second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the pin 13 LOW
  delay(500);              // wait for a 0.5 second
}

Comments

Similar projects you might like

Mozilla IoT WoT Gateway and ESP8266

Project tutorial by Giovanni Gentile

  • 7,054 views
  • 1 comment
  • 9 respects

Serial Communication between NodeMCU and Arduino

Project showcase by Pawan Kumar

  • 111,937 views
  • 13 comments
  • 38 respects

ESP8266 ESP-01 Webserver

by Robin Kanattu Thomas

  • 157,618 views
  • 25 comments
  • 181 respects
Add projectSign up / Login