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×Micro USB Cable
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

  • If this is the first time you use ESP32, see how to setup environment for ESP32 on Arduino IDE.
  • Do the wiring as above image.
  • Connect the ESP32 board to your PC via a micro USB cable.
  • Open Arduino IDE.
  • Select ESP32 board
  • 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); Serial.println("Hello World!"); } void loop() { // put your main code here, to run repeatedly: }
  • 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!
    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
    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!

※ NOTICES