Welcome to the first Tutorial of NodeMcu. In this tutorial, we will learn about NodeMcu board.Why we use the NodeMcu. How to use NodeMcu and installation of NodeMcu with Arduino IDE. We will see some projects with NodeMcu after first 10 basic Tutorials.
So here are the Contents for today:
Contents
- Introduction to NodeMcu
- Why use NodeMcu
- Pinout Configuration of NodeMcu
- Board Specification
- Installation of NodeMcu with Arduino IDE
- Code testing
Introduction to NodeMcu
This cheap wifi module can be utilized in many interesting projects.We will see some of the great projects with NodeMcu in coming posts.
Why to Use NodeMcu
NodeMcu esp 8266 -12 is an Arduino Compatible platform. The module is usually used for Wifi based applications. This cheap wifi module is also used as an open source hardware. The module can be programmed with Arduino IDE.The Module is useful in many ways we can control many things using wifi communication.the module has few pins for output connections. The module is suitable for the bread board and easily programmable.
Pinout Configuration of NodeMcu
Specification
- Wi-Fi Module – ESP-12E module
- USB-TTL included plug&play
- 10 GPIO, every GPIO can be PWM, I2C, 1-wire
- GPIOs, SPI, UART, ADC, and power pins
- PCB antenna
Installation of NodeMcu in Arduino IDE
Follow the steps to install the NodeMcu setup in Arduino IDE:
Step # 01:
File tab and then click on Preferences:
Boards Manager URLs add the following link :
http://arduino.esp8266.com/stable/package_esp8266com_index.json
Step # 02:
Tools > Boards > Boards Manager
Now in the search field type :
esp8266 > click the link esp8266 by ESP8266 Community > Click Install
Final Step:
Now Go to the Boards and in the list select the NodeMCU 1.0 the (ESP-12E Module).
Now that’s it! We have installed the setup for NodeMcu. Select the NodeMcu board same as we select for Arduino boards like nano, Uno or Mega. Select Esp-12E module this time.
If the Arduino IDE doesn’t recognize the port for NodeMcu update the drivers from the Device manager.
Circuit Diagram:
For the testing the board Go to the examples and Run a simple Blink Code :
Code for NodeMcu
....... void setup() { ....... // digital pin 13 as an output. ........... pinMode(13, OUTPUT); } ....... void loop() { ........ digitalWrite(13, HIGH); //HIGH is the voltage level ........... delay(1000); // wait for a second ........... digitalWrite(13, LOW); // voltage LOW ........... delay(1000); }
So here is the Basic Tutorial about NodeMcu. This is the basic setup that we need before moving towards the next tutorials.In the coming tutorials, we will see some of the great projects with NodeMcu. Stay connected with us and Subscribe to our YouTube Channel.
Stay Happy and Stay Motivated.