ESP32 - Hello World

This tutorial instructs you how to write the first program on ESP32. You will learn how to make ESP32 print Hello World to Serial.

Quick Instructions

How to select ESP32 board on Arduino IDE
  • Select ESP32 serial port (number may be different)
How to select COM port on Arduino IDE
  • Type the following code
void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: Serial.println("Hello World!"); delay(500); }
  • Compile and upload code to ESP32 board by clicking Upload button on Arduino IDE
How to upload ESP32 code on Arduino IDE
  • Open Serial Monitor on Arduino IDE
How to open serial monitor on Arduino IDE
  • See the result on Serial Monitor. It looks like the below::
Newbiely | Arduino IDE 2.3.8
──
File
Edit
Sketch
Tools
Help
ESP32 Dev Module
Newbiely.ino
···
8 Serial.println("Hello World!");
Output
Serial Monitor
Message (Enter to send message to 'ESP32 Dev Module' on 'COM15')
New Line
9600 baud
Hello World! Hello World! Hello World! Hello World!
Ln 11, Col 1
ESP32 Dev Module on COM15
2

Modifying ESP32 Code

  • Replace “Hello World!” by any text, for example, “Hello esp32io.com”.
  • Compile and upload code to ESP32 board by clicking Upload button on Arduino IDE
  • See the result on Serial Monitor. It looks like the below:
Newbiely | Arduino IDE 2.3.8
──
File
Edit
Sketch
Tools
Help
ESP32 Dev Module
Newbiely.ino
···
8 Serial.println("Hello World!");
Output
Serial Monitor
Message (Enter to send message to 'ESP32 Dev Module' on 'COM15')
New Line
9600 baud
Hello esp32io.com Hello esp32io.com Hello esp32io.com Hello esp32io.com
Ln 11, Col 1
ESP32 Dev Module on COM15
2

Video Tutorial

Making video is a time-consuming work. If the video tutorial is necessary for your learning, please let us know by subscribing to our YouTube channel , If the demand for video is high, we will make the video tutorial.

Language References

Congratulations!
The first step ⇒ simple but very important. Go ahead!

※ OUR MESSAGES