Arduino Nano ESP32 - Hello World

This tutorial provides instructions on how to write the first program on Arduino Nano ESP32. You will learn how to make Arduino Nano ESP32 print Hello World to Serial.

Hardware Preparation

1×Arduino Nano ESP32
1×USB Cable Type-C
1×(Optional) DC Power Jack
1×Breadboard
1×Jumper Wires
1×(Recommended) Screw Terminal Expansion Board for Arduino Nano
1×(Recommended) Breakout Expansion Board for Arduino Nano
1×(Recommended) Power Splitter For Arduino Nano ESP32

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 the links provided in this section are Amazon affiliate links. We may receive a commission for any purchases made through these links at no additional cost to you.
Additionally, some of these links are for products from our own brand, DIYables.

Detailed Instructions

How to select Arduino Nano ESP32 board on Arduino IDE
  • Select Arduino Nano 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 Arduino Nano ESP32 board by clicking Upload button on Arduino IDE
How to upload Arduino Nano ESP32 code on Arduino IDE
  • Open Serial Monitor on Arduino IDE
How to open serial monitor on Arduino IDE
  • Check out the result on the 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 Arduino Nano ESP32 Code

  • Replace “Hello World!” by any text, for example, “Hello newbiely.com”.
  • Compile and upload code to Arduino Nano ESP32 board by clicking Upload button on Arduino IDE
  • Check out the result on the Serial Monitor. It looks like the below:
COM6
Send
Hello newbiely.com Hello newbiely.com Hello newbiely.com Hello newbiely.com
Autoscroll Show timestamp
Clear output
9600 baud  
Newline  

Video Tutorial

Language References

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

※ OUR MESSAGES

  • As freelancers, We are AVAILABLE for HIRE. See how to outsource your project to us
  • Please feel free to share the link of this tutorial. However, Please do not use our content on any other websites. We invested a lot of effort and time to create the content, please respect our work!