Skip to content
Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Steps for Setting Up ESP32 Development with Arduino IDE 2.0 and Visual Studio Code (VS Code)

Follow these steps to set up Arduino IDE 2.0 and Visual Studio Code (VS Code) for ESP32 development. Learn how to configure your environment for efficient coding, debugging, and deploying IoT applications.

1. Install Arduino IDE 2.0

Download Arduino IDE 2.0: Visit the [official Arduino website](https://www.arduino.cc/en/software) and download the latest version of Arduino IDE 2.0 compatible with your operating system.
Install the IDE: Follow the installation prompts. Once installed, launch the IDE to begin configuring it for ESP32 development.

2. Configure Arduino IDE 2.0 for ESP32

Add ESP32 Board Support: Open Arduino IDE 2.0, go to File > Preferences,  and in the “Additional Board Manager URLs” field, add the following URL: `https://dl.espressif.com/dl/package_esp32_index.json`.
Install ESP32 Board: Go to Tools > Board > Board Manager.  Search for “ESP32” and install the ESP32 by Espressif Systems package.

3. Set Up Visual Studio Code (VS Code)

Download VS Code: Download and install [Visual Studio Code](https://code.visualstudio.com/Download) from the official website.
Install PlatformIO Extension: Open VS Code, go to the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window. Search for “PlatformIO” and install the PlatformIO IDE extension.

4. Configure VS Code for ESP32 Development

Initialize PlatformIO Project: Once PlatformIO is installed, click on the PlatformIO Home icon, select New Project, choose the ESP32 board from the dropdown menu, and set up your project location.
Install ESP-IDF: If you are using the Espressif IoT Development Framework (ESP-IDF), PlatformIO will guide you through installing the necessary tools and dependencies for ESP32.

5. Write and Upload Code

Arduino IDE 2.0: Write your code in the Arduino IDE, and use the Upload button to flash the code to your ESP32 device. The built-in debugger can help troubleshoot any issues.
VS Code: In VS Code, write your code within the PlatformIO project. Use the Build and Uploadcommands available in PlatformIO to compile and flash your code.

6. Debugging and Serial Monitoring

Arduino IDE 2.0: Utilize the Serial Monitor for real-time debugging and monitoring of your ESP32.
VS Code: VS Code’s PlatformIO extension offers advanced debugging tools. Use the Debugger tab to set breakpoints and step through your code.


By following these steps, you’ll have a fully configured development environment using Arduino IDE 2.0 and VS Code, enabling you to create and deploy sophisticated IoT applications on the ESP32 platform. These tools streamline the development process, offering powerful features that enhance productivity and project management.


For further details and resources, visit Arduino’s official website at https://www.arduino.cc/en/softwareand PlatformIO documentation at https://docs.platformio.org/en/latest/platforms/espressif32.html