NodeMCU Basic Project-Hello World

About: Osoyoo brand products are mainly focused on STEM education.User experience and customer feeling are always our first priority. Our goal is to create the best designed product to help students and hobbyist to...

Intro: NodeMCU Basic Project-Hello World

This article will introduce how to upload the first sketch to the NodeMCU.

After uploading this sketch and clicking serial monitor button, you will see the serial; monitor output"Hello World" every second.

Step 1: Preparation

Hardware:

NodeMCU x1

USB Cable x 1

PC x1

Software: please refer to our last article:https://www.instructables.com/id/How-to-Program-NodeMCU-on-Arduino-IDE/

Step 2: Code

-Connect your NodeMCU to the PC and put below code to your Arduino IDE .

void setup()
{ Serial.begin(115200);//Set the baudrate to 115200,same as the software settings } void loop() { Serial.println("Hello World!");//Print character string“Hello World!”on the serial delay(5000);// Delay 5 second }

-Choose corresponding board/port for your project,upload the sketch to the board.

-After upload down,click Serial Monitor button, you'll see the serial monitor output every 5 second.

Note: Make sure the baudrate is same as your sketch setting.

Share

Recommendations

  • Audio Contest 2018

    Audio Contest 2018
  • Optics Contest

    Optics Contest
  • Electronics Tips & Tricks Challenge

    Electronics Tips & Tricks Challenge

Discussions