Sub topic 2
Installing the Arduino IDE
This chapter assumes you can install desktop software on Windows, macOS, or Linux and understand that a program is a sequence of instructions. You also need a supported Arduino board, such as an Uno, and a USB data cable. The Arduino Integrated Development Environment (IDE) is the application used to write, check, and upload Arduino programs.
Choose the right Arduino IDE
Arduino provides two main IDE generations:
- Arduino IDE 2.x is the current desktop application. It includes an editor, compiler controls, board and port menus, a serial monitor, and code assistance.
- Arduino IDE 1.8.x is the older application. Some older tutorials still show it, but its layout and features differ.
Use the current IDE 2.x unless a project specifically requires the older release. Download it from the official Arduino website rather than from a third-party software site.
| Operating system | Typical installer | Important detail |
|---|---|---|
| Windows | Installer or portable package | Allow the installer to add required USB device support |
| macOS | Disk image or application package | Move the application to Applications if prompted |
| Linux | Distribution package or compressed archive | Follow the package's permission and desktop-integration steps |
Install on your operating system
Windows
- Download the Windows installer that matches your computer's architecture.
- Run the installer.
- Accept the license and choose the default installation location unless you have a reason to change it.
- Approve driver installation if Windows requests it.
- Start Arduino IDE from the Start menu.
The driver allows Windows to communicate with some Arduino USB interfaces. The board may still need a different driver if it uses a third-party USB-to-serial chip.
macOS
- Download the macOS package for your processor type, such as Apple silicon or Intel.
- Open the downloaded package.
- Drag Arduino IDE to the Applications folder.
- Open it from Applications.
- If macOS shows a security prompt, confirm that you obtained the application from the official Arduino download.
Do not use a charge-only USB cable later. The IDE can open without the board, but uploading requires a cable that carries data.
Linux
- Download the package for your distribution or the official compressed archive.
- Install it using your distribution's normal software process, when available.
- If you use the archive, extract it and follow its included installation instructions.
- Start the IDE from the applications menu or its installation directory.
Linux systems commonly restrict access to serial devices. If the board appears but uploads fail with a permission error, add your user to the serial-device group used by your distribution, then sign out and back in. The exact group name varies, so use your distribution's documentation.
Confirm that the installation works
Open Arduino IDE and create or open a blank sketch. Confirm that the application starts without an error about missing files or unavailable permissions. At this stage, you do not need to compile or upload anything.
The first launch may take longer because the IDE creates configuration files and checks its installed components. Keep the default settings initially. You can change editor preferences later without reinstalling the IDE.
The installation does not automatically make every Arduino-compatible board available. A board package is a collection of files that tells the IDE how to compile and upload code for a particular board family. Official Arduino boards are often available immediately, while third-party boards may require a package installed through Boards Manager. That topic is covered separately.
Initial checks
If the IDE will not start, check these items:
- Download a package for the correct operating system and processor architecture.
- Reinstall only after closing any running IDE process.
- Check whether antivirus or operating-system security software blocked the application.
- On Linux, check executable permissions and user access to installed files.
- Keep the installer log or error message. It identifies whether the failure occurred during installation or first launch.
Exercise
Why can the Arduino IDE start successfully even when an Arduino board is not connected?
Show answer
The IDE is desktop software. It can edit sketches and manage settings without a board. A board and data-capable USB connection are required only for communication tasks such as uploading a sketch.