Example Code for Arduino - Getting Started

ESP32 configuration in Arduino IDE involves adding the board, selecting development settings, and burning code. Learn first-time setup, including serial port configuration and troubleshooting for optimal performance.

Tutorial - First Time Use

Arduino IDE Configuration

When you use the ESP32 for the first time, you need to know the following steps:

  1. Add the ESP32 development board in Arduino IDE (How to add the ESP32 board to Arduino IDE?)
  2. Select the development board and serial port
  3. Burn the program

Select Development Board

  1. Click Tools->Board, select "DFRobot Romeo ESP32-S3".
    set board

  2. The development board needs to be set before burning the code:

  • USB CDC On Boot:
  • Enabled: Print serial port data through the USB interface
  • Disabled: Print serial port data through TX and RX
  • Partition Scheme: Disk partitioning scheme. Please select the appropriate storage space according to the Flash of the development board.
  • Port: Development board port (Just make sure the COM number is correct, which has nothing to do with the subsequent chip model.)
    Select Development Board

Serial print

  • Copy the code into the window and click "Upload" to upload the code.
void setup() {
  Serial.begin(115200);
}

void loop() {
  Serial.println("Hello World");
  delay(1000);
}

Serial print

  • Wait for the programming to complete. Open the serial monitor; you should see "Hello world" output from the serial port.
    • If there is no serial output, please reset the development board.
    • If programming fails, please refer to the FAQ.

Was this article helpful?

TOP