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.

Hardware Used In This Tutorial

1×ESP-WROOM-32 Dev Module
1×USB Cable Type-C
1×(Optional) DC Power Jack
1×Breadboard
1×Jumper Wires
1×(Recommended) ESP32 Screw Terminal Adapter

Or you can buy the following sensor kits:

1×DIYables Sensor Kit (30 sensors/displays)
1×DIYables Sensor Kit (18 sensors/displays)
Disclosure: some of these links are affiliate links. We may earn a commission on your purchase at no extra cost to you. We appreciate it.

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::
COM6
Send
Hello World! Hello World! Hello World! Hello World!
Autoscroll Show timestamp
Clear output
9600 baud  
Newline  

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:
COM6
Send
Hello esp32io.com Hello esp32io.com Hello esp32io.com Hello esp32io.com
Autoscroll Show timestamp
Clear output
9600 baud  
Newline  

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