Menu Close

NodeMCU Serial Monitor on Arduino IDE

This tutorial of Robo India explains the basics of serial monitor of Arduino IDE for NodeMCU.

1. Introduction:

While developing an application using an Node MCU sometimes the developer is required to look in to the execution of code while the code is being executed.

This is done in the form of input and output taken from the Node MCU. The Node MCU IDE has an inbuilt serial monitor that allows ton take a serial input and output from an Node MCU while the Node MCU is in action.

To perform the example no special hardware and circuit is required except an Node MCU and a USB cable.

2. Building Circuit

As stated above no additional hardware is required other than a USB cable and NodeMCU. Plug the cable to NodeMCU and computer/laptop USB.

3. Programming:

Once the circuit part is done, NodeMCU is needed to be programmed. Here is the code to run this circuit on NodeMCU.

You may download this code (Arduino Sketch) from here.

// Robo India Tutorial 
// Digital Input and Output on LED 
// Hardware: NodeMCU

void setup() {
  Serial.begin(9600);                  
  Serial.print("Hello World");  
}
void loop() {
 }

4. Output

Upload the code open the serial monitor and select 9600 baud rate. As the serial monitor opens “Hello World” will be seen on output panel.

5. Troubleshooting

This example is to give an introduction to serial communication and serial monitor of the Node MCU. No code is written in a loop so the code runs only once.

If you have any query please write us at support@roboindia.com

Thanks and Regards
Content Development Team 
Robo India
https://roboindia.com

Leave a Reply