Skip to main content

Working with Arduino

This chapter contains the following sections. Please read as needed:

Arduino Getting Started

New to Arduino ESP32 development and looking for a quick start? We have prepared a comprehensive Getting Started Tutorial for you.

Note: This tutorial uses the ESP32-S3-Zero as a reference example, and all hardware code is based on its pinout. Before you start, we recommend checking the pinout of your development board to ensure the pin configuration is correct.

Setting Up the Development Environment

1. Installing and Configuring the Arduino IDE

Please refer to the tutorial Installing and Configuring Arduino IDE to download and install the Arduino IDE and add ESP32 support.

2. Additional Tips

  1. The ESP32-C6-Zero supports direct model selection in the Arduino IDE. Choose "Waveshare ESP32-C6-Zero".

    Select ESP32-C6-Zero in Arduino IDE
  2. The ESP32-C6-Zero uses the ESP32-C6 native USB port instead of UART to USB. For serial communication:

    • The printf() function can be used directly;

    • To use the Serial.println() function, the USB CDC feature must be enabled. Please follow the steps below to verify your environment is configured correctly:

      1. Update the ESP32 Libraries: It is recommended to update the ESP32 board libraries in Arduino IDE to version 3.3.5 or later. Newer versions of the core have USB CDC enabled by default for this board.

      2. Check Configuration Options: In the Arduino IDE "Tools" menu, check and confirm that the "USB CDC On Boot" option is set to "Enabled".

        note

        As shown in the image below, the "USB CDC On Boot" option should be set to Enabled when correctly configured.

        Enable USBCDC