Getting Started with Arduino IDE 2.0

An introductory guide to the Arduino IDE 2.0.

Makers, students & professionals have been using the classic Arduino IDE (Integrated Development Environment) ever since Arduino was born.

The Arduino IDE 2.0 is an improvement of the classic IDE, with increased performance, improved user interface and many new features, such as autocompletion, a built-in debugger and syncing sketches with Arduino Cloud.

In this guide, we will cover the basics of the Arduino IDE 2.0, where you will find links to more detailed resources on how to use specific features!

You can download the IDE 2.0 from the Arduino Software page.

You can also follow the downloading and installing the Arduino IDE 2.0 tutorial for more detailed guide on how to install the editor.

Requirements

Overview

The Arduino IDE 2.0 features a new sidebar, making the most commonly used tools more accessible.

Arduino IDE 2.0
Arduino IDE 2.0

  • Verify / Upload - compile and upload your code to your Arduino Board.
  • Select Board & Port - detected Arduino boards automatically show up here, along with the port number.
  • Sketchbook - here you will find all of your sketches locally stored on your computer. Additionally, you can sync with the Arduino Cloud, and also obtain your sketches from the online environment.
  • Boards Manager - browse through Arduino & third party packages that can be installed. For example, using a MKR WiFi 1010 board requires the
    Arduino SAMD Boards
    package installed.
  • Library Manager - browse through thousands of Arduino libraries, made by Arduino & its community.
  • Debugger - test and debug programs in real time.
  • Search - search for keywords in your code.
  • Open Serial Monitor - opens the Serial Monitor tool, as a new tab in the console.

Features

The Arduino IDE 2.0 is a versatile editor with many features. You can install libraries directly, sync your sketches with Arduino Cloud, debug your sketches and much more. In this section, some of the core features are listed, along with a link to a more detailed article.

Sketchbook

Arduino Sketchbook.
Arduino Sketchbook.

Your sketchbook is where your code files are stored. Arduino sketches are saved as

.ino
files, and must be stored in a folder of the exact name. For example, a sketch named
my_sketch.ino
must be stored in a folder named
my_sketch
.

Typically, your sketches are saved in a folder named

Arduino
in your
Documents
folder.

To access your sketchbook, click on the folder icon located in the sidebar.

Boards Manager

Boards Manager.
Boards Manager.

With the Boards Manager, you can browse and install packages, or "cores" for your boards. A board package is always required when compiling and uploading code for your board.

There are several Arduino board packages available, such as avr, samd, megaavr and more.

To learn more about the Boards Manager, visit the Installing new boards tutorial.

Library Manager

Library Manager.
Library Manager.

With the library manager you can browse and install thousands of libraries. Libraries are extensions of the Arduino API, and makes it easier to for example control a servo motor, read specific sensors, or use a Wi-Fi module.

To learn more about the library manager, visit the Installing libraries tutorial.

Serial Monitor

Serial Monitor.
Serial Monitor.

The Serial Monitor is a tool that allows you to view data streaming from your board, via for example the

Serial.print()
command.

Historically, this tool has been located in a separate window, but is now integrated with the editor. This makes it easy to have multiple instances running at the same time on your computer.

To learn more about the Serial Monitor, visit the Serial Monitor tutorial.

Serial Plotter

Serial Plotter.

The Serial Plotter tool is great for visualizing data using graphs, and to monitor for example peaks in voltage.

You can monitor several variables simultaneously, with options to enable only certain types.

To learn more about the Serial Plotter, visit the Serial Plotter tutorial.

Debugging

Debugger tool.

The debugger tool is used to test and debug programs, hence the name. It can be used to navigate through a program's execution in a controlled manner.

To learn more about the debugger tool, visit the Debugging tutorial.

Autocompletion

Autocompletion tool.
Autocompletion tool.

Autocompletion is a must-have for code editors, and the 2.0 version comes well equipped. When writing code, this is useful to understand more about the elements of the Arduino API.

Note that you always need to select your board for autocompletion to work.

To learn more about the Autocompletion tool, visit the Autocompletion tutorial.

Remote Sketchbook

Push and pull your sketches.

The Remote Sketchbook feature lets you sync sketches from your Arduino Cloud sketchbook with your local computer. To enable this feature, you will need to login to your Arduino Cloud account.

To learn more about the Remote Sketchbook feature, visit the Synchronizing Sketches tutorial.

Firmware & Certificate Uploader

Firmware & Certificate Uploader.
Firmware & Certificate Uploader.

You can upgrade and downgrade the firmware version for your Wi-Fi boards (with a NINA module), and upload SSL Root Certificates directly in the IDE.

To learn more, visit the Firmware & Certificate Uploader tutorial.

Contribute

The Arduino IDE 2.0 is an open-source project that is free for anyone to download. You can contribute to the project through donations, or by reporting issues at our GitHub repository.

Conclusion

In this guide, we have presented a series of features & more detailed articles to follow, so that you can enjoy each and every one of the features included in the IDE 2.0.

Contribute to Arduino

Join the community and suggest improvements to this article via GitHub. Make sure to read out contribution policy before making your pull request.

Missing something?

Check out our store and get what you need to follow this tutorial.

Suggest Changes

The content on docs.arduino.cc is facilitated through a public GitHub repository. You can read more on how to contribute in the contribution policy.