Installing IDE for Arduino Projects - RoboRaceOrg/Autonomous-Racing-Robot GitHub Wiki

Installing the AVR core

The classic Arduino boards, including the favorites UNO, Nano and Mega, requires the AVR core to be installed to compile and upload sketches to your board.

Fortunately, the classic IDE (Legacy) comes with the AVR core already pre-installed. This means that we only need to download and install the editor to start using our Arduino products.

In this tutorial, we will simply show how to select the right board, choose the right port, and how to upload the classic blink example to our board, a simple program that makes your LED blink every second.

You can download the editor from Arduino's software page.

Boards using the AVR core Arduino UNO R3 Arduino Mega2560 Arduino Nano (classic) Arduino Micro Arduino Leonardo UNO Mini LE Retired boards using the AVR core There are several retired boards that uses the AVR core, but are no longer available from our store. You can see all of them in the list of boards in the editor.

List of all boards using the AVR core. List of all boards using the AVR core.

Downloading and installing

First, we need to download the Arduino IDE, which can be done from the software page.

Install the Arduino IDE on your local machine.

Open the Arduino IDE.

Layout of Arduino IDE 1.8.x

Arduino-IDE-Interface

Choosing the board

First, we need to select the right core & board. This is done by navigating to Tools > Board > Arduino AVR Boards > Board. Make sure you select the board that you are using. In this case, we are using an Arduino UNO.

Arduino-IDE-Board-Manager

Select the board.

Selecting the port

Now, let's make sure that our board is found by our computer, by selecting the port. Regardless what kind of program we are uploading to the board, we always need to choose the port for the board we are using. This is simply done by navigating to Tools > Port, where you select your board from the list.

Arduino-Serial-Port

Selecting the right board and port.

This will look different depending on what kind of operative system you are using.

For Windows users, it could look like this: (Arduino Uno)

For MAC users, it could look like this: /dev/cu.usbmodem14112 (Arduino Uno)

Uploading a simple example

You are now ready to start using your board! The easiest way to check that everything is working, is to upload just a simple blink example to your board. This is done by navigating to File > Examples > 01.Basics > Blink.

Arduino-Example-Code

Selecting the blink example.

To upload the sketch, simply click on the arrow in the top left corner. This process takes a few seconds, and it is important to not disconnect the board during this process.

Arduino-LED-Blink-Code

Uploading the sketch.

When the code is uploaded, the text "Done uploading." is visible in the bottom left corner.

Uploading-Code-on-Arduino

If you look closely at your board, you will notice an orange LED blink with an interval of one second. This means you have successfully uploaded a program to your board.

⚠️ **GitHub.com Fallback** ⚠️