Lucy Archive

Arduino Environment Setup #1. Installing Arduino IDE and Running Blink Example

Created: 2024-06-11

Created: 2024-06-11 00:56

Installing the Arduino IDE and Running an Example

Summary

This post guides you through setting up the environment for Arduino programming and verifies a successful program download by utilizing an example provided by Arduino. The details are as follows:

  • Recommended Installation Method for Arduino IDE
    • Installing using the Windows Installer is recommended.
  • Running the Arduino Blink Example
    • Required Materials for Running the Example
    • Arduino IDE Environment Setup: Selecting Board and Port
    • Loading and Running the Blink Example
    • Execution Results

Installing the Arduino IDE

Arduino Download Path -> Link

This explanation is based on Windows. There are three ways to install the Arduino IDE on Windows. While personal preferences may vary, I recommend the Installer method. While you can utilize other editors (e.g., Visual Studio Code, Sublime Text, Vim, Atom) for Arduino programming instead of the Arduino IDE later, installing using the Windows Installer makes the environment setup most convenient.

The installation process is straightforward and thus omitted.


Running the Blink Example

Let's run the Blink example. The steps to run the Blink example are as follows:

1. Required Materials
2. Connecting Arduino Uno to PC
3. Launching Arduino IDE
4. Selecting Board and Port in Arduino IDE
5. Loading the Blink Example
6. Downloading the Blink Example to the Board
7. Verifying Execution

Required Materials

We will use the Arduino Uno board for this demonstration. Please refer to the following required materials.

  • PC or Laptop
  • Arduino Uno
  • USB A/B Cable
Arduino Uno, USB A/B Cable

Arduino Uno, USB A/B Cable

Connecting Arduino Uno to PC

Connect the prepared Arduino Uno to the PC using a USB A/B cable.

Arduino Uno Connected to PC

Arduino Uno Connected to PC

Arduino IDE Setup: Selecting Board and Port

Once the Arduino installation is complete, launch the Arduino IDE. Typically, the Arduino shortcut icon below is created on the desktop during the installation process.

Arduino IDE Initial Screen

Arduino IDE Initial Screen


To download the program you write in the Arduino IDE to the board for execution, you need to configure the board and port settings. If you are testing with a board other than Arduino Uno, select the corresponding board.

  • Board Selection: Menu Bar > Tools > Board > Select Arduino/Genuino Uno
  • Port Selection: Menu Bar > Tools > Port > Select the COM port where Arduino/Genuino Uno is connected
Arduino Board and Port Settings

Arduino Board and Port Settings

Loading and Running the Blink Example

Arduino offers a variety of built-in examples. In addition to general examples, examples specific to the selected board are also categorized and provided. Here, we will load and run the Blink example to control the built-in LED on the Arduino Uno board, making it blink.

  • Loading the Example: Menu Bar > File > Examples > 01.Basic > Blink
  • Downloading: Click the Upload button in the Tool Bar
(Left) Loading Blink Example (Center) Example Screen and Upload Button (Right) Upload Confirmation

(Left) Loading Blink Example (Center) Example Screen and Upload Button (Right) Upload Confirmation

Execution Results

The Blink example makes the LED on the Arduino Uno board blink at 1-second intervals. If the upload is successful, you will see the board's LED blinking as shown below. This step verifies the Arduino programming environment configuration, and the code explanation will be provided in a future post.

Blink Example Execution Result

Blink Example Execution Result


Conclusion

We have installed the Arduino IDE, loaded the Blink example provided by Arduino, and downloaded and executed the program on the Arduino Uno board. The next post will focus on setting up the Arduino IDE environment to enhance productivity before we delve into Arduino programming.

Thank you for reading!^^

Comments0